diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2014-06-06 22:48:29 +0400 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-06-28 10:38:23 +0200 |
commit | 164738a0292b3f32c7747099ad9cadace58e5eda (patch) | |
tree | dd871ff78b408633364d05a5df28f7bffc7bd795 /cipher/gost.h | |
parent | 34a58010000288515636706811c3837f32957b2e (diff) | |
download | libgcrypt-164738a0292b3f32c7747099ad9cadace58e5eda.tar.gz |
cipher/gost28147: generate optimized s-boxes from compact ones
* cipher/gost-s-box.c: New. Outputs optimized expanded representation of
s-boxes (4x256) from compact 16x8 representation.
* cipher/Makefile.am: Add gost-sb.h dependency to gost28147.lo
* cipher/gost.h: Add sbox to the GOST28147_context structure.
* cipher/gost28147.c (gost_setkey): Set default s-box to test s-box from
GOST R 34.11 (this was the only one S-box before).
* cipher/gost28147.c (gost_val): Use sbox from the context.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'cipher/gost.h')
-rw-r--r-- | cipher/gost.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cipher/gost.h b/cipher/gost.h index d058eb22..3fbd9df2 100644 --- a/cipher/gost.h +++ b/cipher/gost.h @@ -22,6 +22,7 @@ typedef struct { u32 key[8]; + const u32 *sbox; } GOST28147_context; /* This is a simple interface that will be used by GOST R 34.11-94 */ |