Home
last modified time | relevance | path

Searched refs:known_answer (Results 1 – 2 of 2) sorted by relevance

/openssl/demos/digest/
H A DEVP_MD_demo.c68 static const unsigned char known_answer[] = { variable
154 if ((size_t)digest_length != sizeof(known_answer)) { in demonstrate_digest()
156 digest_length, sizeof(known_answer)); in demonstrate_digest()
157 } else if (memcmp(digest_value, known_answer, digest_length) != 0) { in demonstrate_digest()
158 for (j=0; j<sizeof(known_answer); j++) { in demonstrate_digest()
159 fprintf(stdout, "%02x", known_answer[j] ); in demonstrate_digest()
H A DEVP_MD_xof.c33 static const unsigned char known_answer[] = { variable
119 if (CRYPTO_memcmp(digest, known_answer, sizeof(known_answer)) != 0) { in main()

Completed in 12 milliseconds