Changes to update Tomato RAF.
[tomato.git] / release / src / router / dnscrypt / src / libnacl / tests / hash4.cpp
blob1d0a3f37d3714be2e69be6caffaf7033862e8d43
1 #include <iostream>
2 #include <string>
3 using std::string;
4 using std::cout;
5 using std::hex;
6 #include "crypto_hash_sha512.h"
8 int main()
10 string x = "testing\n";
11 string h = crypto_hash_sha512(x);
12 for (int i = 0;i < h.size();++i) {
13 cout << hex << (15 & (int) (h[i] >> 4));
14 cout << hex << (15 & (int) h[i]);
16 cout << "\n";
17 return 0;