Searched refs:hCryptProv (Results 1 - 5 of 5) sorted by relevance
/third_party/pulseaudio/src/pulsecore/ |
H A D | random.c | 50 HCRYPTPROV hCryptProv = 0; in random_proper() local 55 if (CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) { in random_proper() 56 if (CryptGenRandom(hCryptProv, length, ret_data)) in random_proper() 58 CryptReleaseContext(hCryptProv, 0); in random_proper()
|
/third_party/curl/lib/ |
H A D | rand.c | 82 HCRYPTPROV hCryptProv = 0; in Curl_win32_random() 84 if(!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, in Curl_win32_random() 88 if(!CryptGenRandom(hCryptProv, (DWORD)length, entropy)) { in Curl_win32_random() 89 CryptReleaseContext(hCryptProv, 0UL); in Curl_win32_random() 93 CryptReleaseContext(hCryptProv, 0UL); in Curl_win32_random()
|
H A D | sha256.c | 214 HCRYPTPROV hCryptProv; member 225 if(!CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_AES, in my_sha256_init() 229 if(!CryptCreateHash(ctx->hCryptProv, CALG_SHA_256, 0, 0, &ctx->hHash)) { in my_sha256_init() 230 CryptReleaseContext(ctx->hCryptProv, 0); in my_sha256_init() 231 ctx->hCryptProv = 0; in my_sha256_init() 256 if(ctx->hCryptProv) in my_sha256_final() 257 CryptReleaseContext(ctx->hCryptProv, 0); in my_sha256_final()
|
H A D | md4.c | 136 HCRYPTPROV hCryptProv; member 143 ctx->hCryptProv = 0; in MD4_Init() 146 if(!CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in MD4_Init() 150 if(!CryptCreateHash(ctx->hCryptProv, CALG_MD4, 0, 0, &ctx->hHash)) { in MD4_Init() 151 CryptReleaseContext(ctx->hCryptProv, 0); in MD4_Init() 152 ctx->hCryptProv = 0; in MD4_Init() 175 if(ctx->hCryptProv) in MD4_Final() 176 CryptReleaseContext(ctx->hCryptProv, 0); in MD4_Final()
|
H A D | md5.c | 204 HCRYPTPROV hCryptProv; member 211 if(!CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in my_md5_init() 215 if(!CryptCreateHash(ctx->hCryptProv, CALG_MD5, 0, 0, &ctx->hHash)) { in my_md5_init() 216 CryptReleaseContext(ctx->hCryptProv, 0); in my_md5_init() 217 ctx->hCryptProv = 0; in my_md5_init() 239 if(ctx->hCryptProv) in my_md5_final() 240 CryptReleaseContext(ctx->hCryptProv, 0); in my_md5_final()
|
Completed in 3 milliseconds