Home | History | Annotate | Download | only in cryptolib

Lines Matching refs:digest

5  * Utility functions for message digest functions.
55 uint8_t* digest = NULL;
59 digest = (uint8_t*) VbExMalloc(SHA1_DIGEST_SIZE);
60 Memcpy(digest, SHA1_final(ctx->sha1_ctx), SHA1_DIGEST_SIZE);
65 digest = (uint8_t*) VbExMalloc(SHA256_DIGEST_SIZE);
66 Memcpy(digest, SHA256_final(ctx->sha256_ctx), SHA256_DIGEST_SIZE);
71 digest = (uint8_t*) VbExMalloc(SHA512_DIGEST_SIZE);
72 Memcpy(digest, SHA512_final(ctx->sha512_ctx), SHA512_DIGEST_SIZE);
77 return digest;
81 /* Allocate enough space for the largest digest */
82 uint8_t* digest = (uint8_t*) VbExMalloc(SHA512_DIGEST_SIZE);
117 return hash[sig_algorithm](buf, len, digest);