diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-13 10:09:38 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-13 10:09:38 -0400 |
commit | d4fe483efd3e0062f12430efe9deb66d43d914d7 (patch) | |
tree | e6aa9ac716ae82cdb15c6e6cb5d9d1d9d29f053b /nacl/tests/hash4.cpp | |
parent | 835ef0320d47372eac14bef31c979b8217d04498 (diff) |
NaCl moved to other repo.
Diffstat (limited to 'nacl/tests/hash4.cpp')
-rw-r--r-- | nacl/tests/hash4.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/nacl/tests/hash4.cpp b/nacl/tests/hash4.cpp deleted file mode 100644 index 1d0a3f37..00000000 --- a/nacl/tests/hash4.cpp +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | #include <iostream> | ||
2 | #include <string> | ||
3 | using std::string; | ||
4 | using std::cout; | ||
5 | using std::hex; | ||
6 | #include "crypto_hash_sha512.h" | ||
7 | |||
8 | int main() | ||
9 | { | ||
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]); | ||
15 | } | ||
16 | cout << "\n"; | ||
17 | return 0; | ||
18 | } | ||