mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-22 14:32:25 +00:00
bf9710fd5a
This only affects build_android, if nacl-gcc-prep is run then build/`uname -s` will be created.
19 lines
352 B
C++
19 lines
352 B
C++
#include <iostream>
|
|
#include <string>
|
|
using std::string;
|
|
using std::cout;
|
|
using std::hex;
|
|
#include "crypto_hash_sha512.h"
|
|
|
|
int main()
|
|
{
|
|
string x = "testing\n";
|
|
string h = crypto_hash_sha512(x);
|
|
for (int i = 0;i < h.size();++i) {
|
|
cout << hex << (15 & (int) (h[i] >> 4));
|
|
cout << hex << (15 & (int) h[i]);
|
|
}
|
|
cout << "\n";
|
|
return 0;
|
|
}
|