Changes to update Tomato RAF.
[tomato.git] / release / src / router / dnscrypt / src / libnacl / tests / hash3.c
blob10b89b90a0b3b5997dd1c8a19f996d9728b60b92
1 #include <stdio.h>
2 #include "crypto_hash_sha512.h"
4 unsigned char x[8] = "testing\n";
5 unsigned char h[crypto_hash_sha512_BYTES];
7 int main()
9 int i;
10 crypto_hash_sha512(h,x,sizeof x);
11 for (i = 0;i < crypto_hash_sha512_BYTES;++i) printf("%02x",(unsigned int) h[i]);
12 printf("\n");
13 return 0;