libsodium 1.0.8
[tomato.git] / release / src / router / libsodium / test / default / hash3.c
bloba15167b1ce88f8ff2fb4ba252d235388f2457ac9
2 #define TEST_NAME "hash3"
3 #include "cmptest.h"
5 static unsigned char x[] = "testing\n";
6 static unsigned char h[crypto_hash_BYTES];
8 int main(void)
10 size_t i;
12 crypto_hash(h, x, sizeof x - 1U);
13 for (i = 0; i < crypto_hash_BYTES; ++i) {
14 printf("%02x", (unsigned int)h[i]);
16 printf("\n");
18 return 0;