diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2018-09-21 22:08:44 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-06-07 00:58:59 +0300 |
commit | b8884d64c4ceb5dd493ace0d047c31cb49f08197 (patch) | |
tree | a85684e401ff78837122a88bfd2067db615a689e | |
parent | 937503066168296d0ef04538dc1ab648b2fedbe2 (diff) | |
download | gnutls-b8884d64c4ceb5dd493ace0d047c31cb49f08197.tar.gz |
nettle/gost: export gost28147_decrypt_simple for magma cipher
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
-rw-r--r-- | lib/nettle/gost/gost28147.c | 4 | ||||
-rw-r--r-- | lib/nettle/gost/gost28147.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/nettle/gost/gost28147.c b/lib/nettle/gost/gost28147.c index 8d648c1045..67e820fef7 100644 --- a/lib/nettle/gost/gost28147.c +++ b/lib/nettle/gost/gost28147.c @@ -2219,8 +2219,8 @@ void gost28147_encrypt_simple (const uint32_t *key, const uint32_t *sbox, *out = l, *(out + 1) = r; } -static void gost28147_decrypt_simple (const uint32_t *key, const uint32_t *sbox, - const uint32_t *in, uint32_t *out) +void gost28147_decrypt_simple (const uint32_t *key, const uint32_t *sbox, + const uint32_t *in, uint32_t *out) { uint32_t l, r, tmp; diff --git a/lib/nettle/gost/gost28147.h b/lib/nettle/gost/gost28147.h index 14c865e6e6..a514ff42dd 100644 --- a/lib/nettle/gost/gost28147.h +++ b/lib/nettle/gost/gost28147.h @@ -57,6 +57,7 @@ extern "C" { /* Private */ #define gost28147_encrypt_simple _gnutls_gost28147_encrypt_simple +#define gost28147_decrypt_simple _gnutls_gost28147_decrypt_simple /* Public functions */ #define gost28147_set_key _gnutls_gost28147_set_key @@ -108,6 +109,8 @@ extern const struct gost28147_param gost28147_param_TC26_Z; /* Internal interface for use by GOST R 34.11-94 */ void gost28147_encrypt_simple (const uint32_t *key, const uint32_t *sbox, const uint32_t *in, uint32_t *out); +void gost28147_decrypt_simple (const uint32_t *key, const uint32_t *sbox, + const uint32_t *in, uint32_t *out); void gost28147_set_key(struct gost28147_ctx *ctx, const uint8_t *key); |