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
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 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
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()
/curl/
H A Dacinclude.m41446 HCRYPTPROV hCryptProv;
1447 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
1449 CryptReleaseContext(hCryptProv, 0);

Completed in 18 milliseconds