repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Changes to update Tomato RAF.
[tomato.git]
/
release
/
src
/
router
/
dnscrypt
/
src
/
libnacl
/
tests
/
hash4.cpp
blob
1d0a3f37d3714be2e69be6caffaf7033862e8d43
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
}