Lines Matching refs:digest
80 uint8_t* digest = NULL; in CalculateHash() local
85 digest = DigestBuf(data, size, key->algorithm); in CalculateHash()
86 if (!digest) in CalculateHash()
92 free(digest); in CalculateHash()
97 Memcpy(GetSignatureData(sig), digest, digest_size); in CalculateHash()
98 free(digest); in CalculateHash()
107 uint8_t* digest; in CalculateSignature() local
121 digest = DigestBuf(data, size, hash_type_map[key->algorithm]); in CalculateSignature()
122 if (!digest) in CalculateSignature()
128 VbExFree(digest); in CalculateSignature()
132 Memcpy(signature_digest + digestinfo_size, digest, digest_size); in CalculateSignature()
133 VbExFree(digest); in CalculateSignature()
252 uint8_t* digest; in CalculateSignature_external() local
266 digest = DigestBuf(data, size, hash_type_map[key_algorithm]); in CalculateSignature_external()
267 if (!digest) in CalculateSignature_external()
273 free(digest); in CalculateSignature_external()
277 Memcpy(signature_digest + digestinfo_size, digest, digest_size); in CalculateSignature_external()
278 free(digest); in CalculateSignature_external()