Lines Matching refs:digest
136 static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) in MD5_Final()
138 md5_digest(ctx, 16, digest); in MD5_Final()
154 static void SHA1_Final(unsigned char digest[20], SHA_CTX *ctx) in SHA1_Final()
156 sha1_digest(ctx, 20, digest); in SHA1_Final()
172 static void SHA256_Final(unsigned char digest[32], SHA256_CTX *ctx) in SHA256_Final()
174 sha256_digest(ctx, 32, digest); in SHA256_Final()
192 static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) in MD5_Final()
194 memcpy(digest, gcry_md_read(*ctx, 0), 16); in MD5_Final()
211 static void SHA1_Final(unsigned char digest[20], SHA_CTX *ctx) in SHA1_Final()
213 memcpy(digest, gcry_md_read(*ctx, 0), 20); in SHA1_Final()
230 static void SHA256_Final(unsigned char digest[32], SHA256_CTX *ctx) in SHA256_Final()
232 memcpy(digest, gcry_md_read(*ctx, 0), 32); in SHA256_Final()
284 static void MD5_Final(unsigned char digest[16], MD5_CTX *pctx) in MD5_Final()
286 nss_hash_final(pctx, digest, 16); in MD5_Final()
301 static void SHA1_Final(unsigned char digest[20], SHA_CTX *pctx) in SHA1_Final()
303 nss_hash_final(pctx, digest, 20); in SHA1_Final()
318 static void SHA256_Final(unsigned char digest[32], SHA256_CTX *pctx) in SHA256_Final()
320 nss_hash_final(pctx, digest, 32); in SHA256_Final()
338 static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) in MD5_Final()
340 md5_finish(ctx, digest); in MD5_Final()
356 static void SHA1_Final(unsigned char digest[20], SHA_CTX *ctx) in SHA1_Final()
358 sha1_finish(ctx, digest); in SHA1_Final()
374 static void SHA256_Final(unsigned char digest[32], SHA256_CTX *ctx) in SHA256_Final()
376 sha256_finish(ctx, digest); in SHA256_Final()
382 unsigned char *digest, in win32_crypto_final() argument
388 CryptGetHashParam(ctx->hHash, HP_HASHVAL, digest, &length, 0); in win32_crypto_final()
411 static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx) in MD5_Final()
413 win32_crypto_final(ctx, digest, 16); in MD5_Final()
432 static void SHA1_Final(unsigned char digest[20], SHA_CTX *ctx) in SHA1_Final()
434 win32_crypto_final(ctx, digest, 20); in SHA1_Final()
453 static void SHA256_Final(unsigned char digest[32], SHA256_CTX *ctx) in SHA256_Final()
455 win32_crypto_final(ctx, digest, 32); in SHA256_Final()
596 const unsigned char *digest, FILE *error) in check_hash() argument
644 check_ok = memcmp(result, digest, in check_hash()
671 mlfile->checksum->digest, config->errors); in metalink_check_hash()
679 unsigned char *digest; in new_metalink_checksum_from_hex_digest() local
682 digest = malloc(len/2); in new_metalink_checksum_from_hex_digest()
683 if(!digest) in new_metalink_checksum_from_hex_digest()
687 digest[i/2] = hex_to_uint(hex_digest+i); in new_metalink_checksum_from_hex_digest()
692 chksum->digest = digest; in new_metalink_checksum_from_hex_digest()
932 Curl_safefree(chksum->digest); in delete_metalink_checksum()