Home
last modified time | relevance | path

Searched refs:hCryptProv (Results 1 – 8 of 8) 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/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/python/cryptography/src/_cffi_src/openssl/src/
Dosrandom_engine.c27 static HCRYPTPROV hCryptProv = 0; variable
30 if (hCryptProv != 0) { in osrandom_init()
33 if (CryptAcquireContext(&hCryptProv, NULL, NULL, in osrandom_init()
47 if (hCryptProv == 0) { in osrandom_rand_bytes()
51 if (!CryptGenRandom(hCryptProv, (DWORD)size, buffer)) { in osrandom_rand_bytes()
63 if (CryptReleaseContext(hCryptProv, 0)) { in osrandom_finish()
64 hCryptProv = 0; in osrandom_finish()
77 return hCryptProv != 0; in osrandom_rand_status()
/external/curl/src/
Dtool_metalink.c75 HCRYPTPROV hCryptProv; member
333 if(ctx->hCryptProv) in win32_crypto_final()
334 CryptReleaseContext(ctx->hCryptProv, 0); in win32_crypto_final()
339 if(CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in MD5_Init()
341 CryptCreateHash(ctx->hCryptProv, CALG_MD5, 0, 0, &ctx->hHash); in MD5_Init()
360 if(CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in SHA1_Init()
362 CryptCreateHash(ctx->hCryptProv, CALG_SHA1, 0, 0, &ctx->hHash); in SHA1_Init()
381 if(CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_AES, in SHA256_Init()
383 CryptCreateHash(ctx->hCryptProv, CALG_SHA_256, 0, 0, &ctx->hHash); in SHA256_Init()
/external/curl/lib/
Dsha256.c200 HCRYPTPROV hCryptProv; member
211 if(CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_AES, in SHA256_Init()
213 CryptCreateHash(ctx->hCryptProv, CALG_SHA_256, 0, 0, &ctx->hHash); in SHA256_Init()
235 if(ctx->hCryptProv) in SHA256_Final()
236 CryptReleaseContext(ctx->hCryptProv, 0); in SHA256_Final()
Dmd4.c145 HCRYPTPROV hCryptProv; member
152 ctx->hCryptProv = 0; in MD4_Init()
155 if(CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in MD4_Init()
157 CryptCreateHash(ctx->hCryptProv, CALG_MD4, 0, 0, &ctx->hHash); in MD4_Init()
177 if(ctx->hCryptProv) in MD4_Final()
178 CryptReleaseContext(ctx->hCryptProv, 0); in MD4_Final()
Dmd5.c185 HCRYPTPROV hCryptProv; member
192 if(CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in MD5_Init()
194 CryptCreateHash(ctx->hCryptProv, CALG_MD5, 0, 0, &ctx->hHash); in MD5_Init()
213 if(ctx->hCryptProv) in MD5_Final()
214 CryptReleaseContext(ctx->hCryptProv, 0); in MD5_Final()
/external/curl/lib/vtls/
Dschannel.c2255 HCRYPTPROV hCryptProv = 0; in Curl_schannel_random() local
2259 if(!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, in Curl_schannel_random()
2263 if(!CryptGenRandom(hCryptProv, (DWORD)length, entropy)) { in Curl_schannel_random()
2264 CryptReleaseContext(hCryptProv, 0UL); in Curl_schannel_random()
2268 CryptReleaseContext(hCryptProv, 0UL); in Curl_schannel_random()