Lines Matching refs:digest
19 uint8_t *digest, in vb2_digest() argument
33 return vb2_digest_finalize(&dc, digest, digest_size); in vb2_digest()
38 uint8_t digest[VB2_SHA1_DIGEST_SIZE]; in sha1_tests() local
49 VB2_HASH_SHA1, digest, sizeof(digest)), in sha1_tests()
51 TEST_EQ(memcmp(digest, sha1_results[i], sizeof(digest)), in sha1_tests()
56 VB2_HASH_SHA1, digest, sizeof(digest) - 1), in sha1_tests()
62 uint8_t digest[VB2_SHA256_DIGEST_SIZE]; in sha256_tests() local
73 VB2_HASH_SHA256, digest, sizeof(digest)), in sha256_tests()
75 TEST_EQ(memcmp(digest, sha256_results[i], sizeof(digest)), in sha256_tests()
80 VB2_HASH_SHA256, digest, sizeof(digest) - 1), in sha256_tests()
86 uint8_t digest[VB2_SHA512_DIGEST_SIZE]; in sha512_tests() local
97 VB2_HASH_SHA512, digest, in sha512_tests()
98 sizeof(digest)), in sha512_tests()
100 TEST_EQ(memcmp(digest, sha512_results[i], sizeof(digest)), in sha512_tests()
105 VB2_HASH_SHA512, digest, sizeof(digest) - 1), in sha512_tests()
111 uint8_t digest[VB2_SHA512_DIGEST_SIZE]; in misc_tests() local
130 VB2_HASH_INVALID, digest, sizeof(digest)), in misc_tests()
137 TEST_EQ(vb2_digest_extend(&dc, digest, sizeof(digest)), in misc_tests()
140 TEST_EQ(vb2_digest_finalize(&dc, digest, sizeof(digest)), in misc_tests()