Home
last modified time | relevance | path

Searched refs:hCryptProv (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Python/
Drandom.c27 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/
Dosrandom_engine.c30 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/
Dbootstrap_hash.c45 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/
Drand.c87 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()
Dsha256.c212 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()
Dmd4.c133 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()
Dmd5.c201 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/
Dacinclude.m41723 HCRYPTPROV hCryptProv;
1724 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
1726 CryptReleaseContext(hCryptProv, 0);
Dconfigure21478 HCRYPTPROV hCryptProv;
21479 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21481 CryptReleaseContext(hCryptProv, 0);