Home
last modified time | relevance | path

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

/curl/lib/
H A Drand.c83 HCRYPTPROV hCryptProv = 0; in Curl_win32_random() local
85 if(!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, in Curl_win32_random()
89 if(!CryptGenRandom(hCryptProv, (DWORD)length, entropy)) { in Curl_win32_random()
90 CryptReleaseContext(hCryptProv, 0UL); in Curl_win32_random()
94 CryptReleaseContext(hCryptProv, 0UL); in Curl_win32_random()
H A Dsha256.c214 HCRYPTPROV hCryptProv; member
226 if(!CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_AES, in my_sha256_init()
230 if(!CryptCreateHash(ctx->hCryptProv, CALG_SHA_256, 0, 0, &ctx->hHash)) { in my_sha256_init()
231 CryptReleaseContext(ctx->hCryptProv, 0); in my_sha256_init()
232 ctx->hCryptProv = 0; in my_sha256_init()
259 if(ctx->hCryptProv) in my_sha256_final()
260 CryptReleaseContext(ctx->hCryptProv, 0); in my_sha256_final()
H A Dmd4.c141 HCRYPTPROV hCryptProv; member
148 ctx->hCryptProv = 0; in MD4_Init()
151 if(!CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in MD4_Init()
155 if(!CryptCreateHash(ctx->hCryptProv, CALG_MD4, 0, 0, &ctx->hHash)) { in MD4_Init()
156 CryptReleaseContext(ctx->hCryptProv, 0); in MD4_Init()
157 ctx->hCryptProv = 0; in MD4_Init()
180 if(ctx->hCryptProv) in MD4_Final()
181 CryptReleaseContext(ctx->hCryptProv, 0); in MD4_Final()
H A Dmd5.c204 HCRYPTPROV hCryptProv; member
212 if(!CryptAcquireContext(&ctx->hCryptProv, NULL, NULL, PROV_RSA_FULL, in my_md5_init()
216 if(!CryptCreateHash(ctx->hCryptProv, CALG_MD5, 0, 0, &ctx->hHash)) { in my_md5_init()
217 CryptReleaseContext(ctx->hCryptProv, 0); in my_md5_init()
218 ctx->hCryptProv = 0; in my_md5_init()
242 if(ctx->hCryptProv) in my_md5_final()
243 CryptReleaseContext(ctx->hCryptProv, 0); in my_md5_final()
/curl/
H A Dacinclude.m41450 HCRYPTPROV hCryptProv;
1451 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
1453 CryptReleaseContext(hCryptProv, 0);

Completed in 15 milliseconds