Home
last modified time | relevance | path

Searched refs:hHash (Results 1 – 4 of 4) sorted by relevance

/curl/lib/
H A Dsha256.c215 HCRYPTHASH hHash; member
230 if(!CryptCreateHash(ctx->hCryptProv, CALG_SHA_256, 0, 0, &ctx->hHash)) { in my_sha256_init()
244 CryptHashData(ctx->hHash, (unsigned char *) data, length, 0); in my_sha256_update()
252 CryptGetHashParam(ctx->hHash, HP_HASHVAL, NULL, &length, 0); in my_sha256_final()
254 CryptGetHashParam(ctx->hHash, HP_HASHVAL, digest, &length, 0); in my_sha256_final()
256 if(ctx->hHash) in my_sha256_final()
257 CryptDestroyHash(ctx->hHash); in my_sha256_final()
H A Dmd4.c142 HCRYPTHASH hHash; member
149 ctx->hHash = 0; in MD4_Init()
155 if(!CryptCreateHash(ctx->hCryptProv, CALG_MD4, 0, 0, &ctx->hHash)) { in MD4_Init()
166 CryptHashData(ctx->hHash, (BYTE *)data, (unsigned int) size, 0); in MD4_Update()
173 CryptGetHashParam(ctx->hHash, HP_HASHVAL, NULL, &length, 0); in MD4_Final()
175 CryptGetHashParam(ctx->hHash, HP_HASHVAL, result, &length, 0); in MD4_Final()
177 if(ctx->hHash) in MD4_Final()
178 CryptDestroyHash(ctx->hHash); in MD4_Final()
H A Dmd5.c205 HCRYPTHASH hHash; member
216 if(!CryptCreateHash(ctx->hCryptProv, CALG_MD5, 0, 0, &ctx->hHash)) { in my_md5_init()
230 CryptHashData(ctx->hHash, (unsigned char *)input, inputLen, 0); in my_md5_update()
237 CryptGetHashParam(ctx->hHash, HP_HASHVAL, NULL, &length, 0); in my_md5_final()
239 CryptGetHashParam(ctx->hHash, HP_HASHVAL, digest, &length, 0); in my_md5_final()
240 if(ctx->hHash) in my_md5_final()
241 CryptDestroyHash(ctx->hHash); in my_md5_final()
/curl/lib/vtls/
H A Dschannel.c2577 HCRYPTHASH hHash = 0; in schannel_checksum()
2592 if(!CryptCreateHash(hProv, algId, 0, 0, &hHash)) in schannel_checksum()
2595 if(!CryptHashData(hHash, input, (DWORD)inputlen, 0)) in schannel_checksum()
2599 if(!CryptGetHashParam(hHash, HP_HASHSIZE, (BYTE *)&cbHashSize, in schannel_checksum()
2607 if(CryptGetHashParam(hHash, HP_HASHVAL, checksum, &dwChecksumLen, 0)) in schannel_checksum()
2611 if(hHash) in schannel_checksum()
2612 CryptDestroyHash(hHash); in schannel_checksum()

Completed in 23 milliseconds