/external/python/cpython2/Python/ |
D | random.c | 27 static HCRYPTPROV hCryptProv = 0; variable 53 if (! pCryptAcquireContext(&hCryptProv, NULL, NULL, in win32_urandom_init() 74 if (hCryptProv == 0) in win32_urandom() 83 if (!pCryptGenRandom(hCryptProv, chunk, buffer)) in win32_urandom() 425 if (hCryptProv) { in _PyRandom_Fini() 426 CryptReleaseContext(hCryptProv, 0); in _PyRandom_Fini() 427 hCryptProv = 0; in _PyRandom_Fini()
|
/external/python/cryptography/src/_cffi_src/openssl/src/ |
D | osrandom_engine.c | 30 static HCRYPTPROV hCryptProv = 0; variable 33 if (hCryptProv != 0) { in osrandom_init() 36 if (CryptAcquireContext(&hCryptProv, NULL, NULL, in osrandom_init() 50 if (hCryptProv == 0) { in osrandom_rand_bytes() 54 if (!CryptGenRandom(hCryptProv, (DWORD)size, buffer)) { in osrandom_rand_bytes() 66 if (CryptReleaseContext(hCryptProv, 0)) { in osrandom_finish() 67 hCryptProv = 0; in osrandom_finish() 80 return hCryptProv != 0; in osrandom_rand_status()
|
/external/python/cpython3/Python/ |
D | bootstrap_hash.c | 45 static HCRYPTPROV hCryptProv = 0; variable 51 if (!CryptAcquireContextW(&hCryptProv, NULL, NULL, in win32_urandom_init() 69 if (hCryptProv == 0) in win32_urandom() 79 if (!CryptGenRandom(hCryptProv, chunk, buffer)) in win32_urandom() 616 if (hCryptProv) { in _Py_HashRandomization_Fini() 617 CryptReleaseContext(hCryptProv, 0); in _Py_HashRandomization_Fini() 618 hCryptProv = 0; in _Py_HashRandomization_Fini()
|
/external/curl/lib/ |
D | rand.c | 87 HCRYPTPROV hCryptProv = 0; in Curl_win32_random() local 89 if(!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, in Curl_win32_random() 93 if(!CryptGenRandom(hCryptProv, (DWORD)length, entropy)) { in Curl_win32_random() 94 CryptReleaseContext(hCryptProv, 0UL); in Curl_win32_random() 98 CryptReleaseContext(hCryptProv, 0UL); in Curl_win32_random()
|
D | sha256.c | 212 HCRYPTPROV hCryptProv; member 223 if(CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_AES, in my_sha256_init() 225 CryptCreateHash(ctx->hCryptProv, CALG_SHA_256, 0, 0, &ctx->hHash); in my_sha256_init() 249 if(ctx->hCryptProv) in my_sha256_final() 250 CryptReleaseContext(ctx->hCryptProv, 0); in my_sha256_final()
|
D | md4.c | 133 HCRYPTPROV hCryptProv; member 140 ctx->hCryptProv = 0; in MD4_Init() 143 if(CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in MD4_Init() 145 CryptCreateHash(ctx->hCryptProv, CALG_MD4, 0, 0, &ctx->hHash); in MD4_Init() 165 if(ctx->hCryptProv) in MD4_Final() 166 CryptReleaseContext(ctx->hCryptProv, 0); in MD4_Final()
|
D | md5.c | 201 HCRYPTPROV hCryptProv; member 208 if(!CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in my_md5_init() 212 if(!CryptCreateHash(ctx->hCryptProv, CALG_MD5, 0, 0, &ctx->hHash)) { in my_md5_init() 213 CryptReleaseContext(ctx->hCryptProv, 0); in my_md5_init() 235 if(ctx->hCryptProv) in my_md5_final() 236 CryptReleaseContext(ctx->hCryptProv, 0); in my_md5_final()
|
/external/curl/ |
D | acinclude.m4 | 1723 HCRYPTPROV hCryptProv; 1724 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, 1726 CryptReleaseContext(hCryptProv, 0);
|
D | configure | 21478 HCRYPTPROV hCryptProv; 21479 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, 21481 CryptReleaseContext(hCryptProv, 0);
|