diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2019-07-11 21:43:12 +0300 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2019-09-15 10:09:16 +0200 |
commit | 9826eed6b23296eac9e496232ba1b74c1d205694 (patch) | |
tree | a98cc76853465cf6abd9f49843985c076b8d6156 /gost28147.h | |
parent | 1d7bce28f88b493854810ce21468a996b4d857f1 (diff) | |
download | nettle-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 'gost28147.h')
-rw-r--r-- | gost28147.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gost28147.h b/gost28147.h index d403c432..32e7d5e8 100644 --- a/gost28147.h +++ b/gost28147.h @@ -41,6 +41,7 @@ extern "C" { #endif #define gost28147_param_test_3411 nettle_gost28147_param_test_3411 +#define gost28147_param_CryptoPro_3411 nettle_gost28147_param_CryptoPro_3411 struct gost28147_param { @@ -48,6 +49,7 @@ struct gost28147_param }; extern const struct gost28147_param gost28147_param_test_3411; +extern const struct gost28147_param gost28147_param_CryptoPro_3411; #ifdef __cplusplus } |