repo.or.cz
/
tomato
/
davidwu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Correct PPTP server firewall rules chain.
[tomato/davidwu.git]
/
release
/
src
/
router
/
nettle
/
testsuite
/
sha3.awk
blob
f7efa609a3c23ec3130085594b7e49d26f8fc9fd
1
#! /usr/bin/awk -f
2
3
/
^Len
/ {
len = $
3
}
4
/
^Msg
/ {
msg = $
3
}
5
/
^MD
/ {
md = $
3
;
6
if
(
len %
8
==
0
)
7
printf
(
"test_hash(&nettle_sha3_xxx, /* %d octets */
\n
SHEX(
\"
%s
\"
),
\n
SHEX(
\"
%s
\"
));
\n
"
,
8
len
/
8
,
len ? msg
:
""
,
md
);
9
}