libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / test / default / hash3.c
bloba5461258aee7221112f1a2745787084245494f0e
1 #include <stdio.h>
3 #define TEST_NAME "hash3"
4 #include "cmptest.h"
6 unsigned char x[] = "testing\n";
7 unsigned char h[crypto_hash_sha512_BYTES];
9 int main(void)
11 size_t i;
12 crypto_hash_sha512(h,x,sizeof x - 1U);
13 for (i = 0;i < crypto_hash_sha512_BYTES;++i) printf("%02x",(unsigned int) h[i]);
14 printf("\n");
15 return 0;