Home
last modified time | relevance | path

Searched refs:hAlg (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/libarchive/libarchive/
H A Darchive_cryptor.c71 BCRYPT_ALG_HANDLE hAlg; in pbkdf2_sha1() local
73 status = BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_SHA1_ALGORITHM, in pbkdf2_sha1()
78 status = BCryptDeriveKeyPBKDF2(hAlg, in pbkdf2_sha1()
83 BCryptCloseAlgorithmProvider(hAlg, 0); in pbkdf2_sha1()
205 BCRYPT_ALG_HANDLE hAlg; in aes_ctr_init() local
213 ctx->hAlg = NULL; in aes_ctr_init()
222 status = BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_AES_ALGORITHM, in aes_ctr_init()
226 status = BCryptGetProperty(hAlg, BCRYPT_KEY_LENGTHS, (PUCHAR)&key_lengths, in aes_ctr_init()
229 BCryptCloseAlgorithmProvider(hAlg, 0); in aes_ctr_init()
234 BCryptCloseAlgorithmProvider(hAlg, 0); in aes_ctr_init()
[all …]
H A Darchive_hmac.c89 BCRYPT_ALG_HANDLE hAlg; in __hmac_sha1_init() local
96 ctx->hAlg = NULL; in __hmac_sha1_init()
97 status = BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_SHA1_ALGORITHM, in __hmac_sha1_init()
101 status = BCryptGetProperty(hAlg, BCRYPT_HASH_LENGTH, (PUCHAR)&hash_len, in __hmac_sha1_init()
104 BCryptCloseAlgorithmProvider(hAlg, 0); in __hmac_sha1_init()
109 BCryptCloseAlgorithmProvider(hAlg, 0); in __hmac_sha1_init()
112 status = BCryptCreateHash(hAlg, &hHash, NULL, 0, in __hmac_sha1_init()
115 BCryptCloseAlgorithmProvider(hAlg, 0); in __hmac_sha1_init()
120 ctx->hAlg = hAlg; in __hmac_sha1_init()
146 if (ctx->hAlg != NULL) { in __hmac_sha1_cleanup()
[all …]
H A Darchive_random.c90 BCRYPT_ALG_HANDLE hAlg; in archive_random()
92 status = BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_RNG_ALGORITHM, NULL, 0); in archive_random()
95 status = BCryptGenRandom(hAlg, buf, (ULONG)nbytes, 0); in archive_random()
96 BCryptCloseAlgorithmProvider(hAlg, 0); in archive_random()
91 BCRYPT_ALG_HANDLE hAlg; archive_random() local
H A Darchive_util.c252 BCRYPT_ALG_HANDLE hAlg = NULL; in __archive_mktempx() local
330 if (!BCRYPT_SUCCESS(BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_RNG_ALGORITHM, in __archive_mktempx()
353 if (!BCRYPT_SUCCESS(BCryptGenRandom(hAlg, (PUCHAR)p, in __archive_mktempx()
419 if (hAlg != NULL) in __archive_mktempx()
420 BCryptCloseAlgorithmProvider(hAlg, 0); in __archive_mktempx()
H A Darchive_hmac_private.h59 BCRYPT_ALG_HANDLE hAlg; member
H A Darchive_digest.c63 status = BCryptOpenAlgorithmProvider(&ctx->hAlg, algo, NULL, 0); in win_crypto_init()
66 status = BCryptCreateHash(ctx->hAlg, &ctx->hHash, NULL, 0, NULL, 0, 0); in win_crypto_init()
68 BCryptCloseAlgorithmProvider(ctx->hAlg, 0); in win_crypto_init()
135 BCryptCloseAlgorithmProvider(ctx->hAlg, 0); in win_crypto_Final()
H A Darchive_cryptor_private.h76 BCRYPT_ALG_HANDLE hAlg; member
H A Darchive_digest_private.h172 BCRYPT_ALG_HANDLE hAlg; member