Lines Matching refs:digest
148 digest2string(const uint8_t *digest, char *string, size_t len) in digest2string() argument
151 if (*digest / 16 < 10) in digest2string()
152 *string++ = '0' + *digest / 16; in digest2string()
154 *string++ = 'a' + *digest / 16 - 10; in digest2string()
155 if (*digest % 16 < 10) in digest2string()
156 *string++ = '0' + *digest % 16; in digest2string()
158 *string++ = 'a' + *digest % 16 - 10; in digest2string()
159 ++digest; in digest2string()
175 unsigned char digest[8 + SHA256_DIGEST_LENGTH]; in ATF_TC_BODY() local
184 SHA256_Final(digest + j, &ctx); in ATF_TC_BODY()
185 digest2string(digest + j, output, SHA256_DIGEST_LENGTH); in ATF_TC_BODY()
202 unsigned char digest[8 + SHA384_DIGEST_LENGTH]; in ATF_TC_BODY() local
211 SHA384_Final(digest + j, &ctx); in ATF_TC_BODY()
212 digest2string(digest + j, output, SHA384_DIGEST_LENGTH); in ATF_TC_BODY()
229 unsigned char digest[8 + SHA512_DIGEST_LENGTH]; in ATF_TC_BODY() local
238 SHA512_Final(digest + j, &ctx); in ATF_TC_BODY()
239 digest2string(digest + j, output, SHA512_DIGEST_LENGTH); in ATF_TC_BODY()