summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-07-11 21:43:12 +0300
committerNiels Möller <nisse@lysator.liu.se>2019-09-15 10:09:16 +0200
commit9826eed6b23296eac9e496232ba1b74c1d205694 (patch)
treea98cc76853465cf6abd9f49843985c076b8d6156 /examples
parent1d7bce28f88b493854810ce21468a996b4d857f1 (diff)
downloadnettle-9826eed6b23296eac9e496232ba1b74c1d205694.tar.gz
Add support for GOSTHASH94CP: GOST R 34.11-94 hash with CryptoPro S-box
Hash gosthash94 implements GOST R 34.11-94 standard using S-Box defined in the standard 'for testing purposes only'. RFC 4357 defines S-Box (CryptoPro one) for GOST R 34.11-94 hash function that is widely used in applications. Add separate hash function algorithm (gosthash94cp) implementing GOST R 34.11-94 hashing using that S-Box. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/nettle-benchmark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/nettle-benchmark.c b/examples/nettle-benchmark.c
index 6e0f560b..5d0e649e 100644
--- a/examples/nettle-benchmark.c
+++ b/examples/nettle-benchmark.c
@@ -918,6 +918,7 @@ main(int argc, char **argv)
&nettle_sha3_224, &nettle_sha3_256,
&nettle_sha3_384, &nettle_sha3_512,
&nettle_ripemd160, &nettle_gosthash94,
+ &nettle_gosthash94cp,
NULL
};