aboutsummaryrefslogtreecommitdiff
path: root/gost_grasshopper_cipher.h
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2018-07-23 03:35:13 +0300
committerVitaly Chikunov <vt@altlinux.org>2018-07-23 03:35:13 +0300
commit1e15537d7583cdd5a4b003b5efb92f0b6e1fdcc6 (patch)
tree49cbfa4be4f3d2b90f19c6b62d87a7b75a691ca4 /gost_grasshopper_cipher.h
parentd40efde88e6c6589d9d4f5128ec92178776c518a (diff)
downloadgost-engine-1e15537d7583cdd5a4b003b5efb92f0b6e1fdcc6.zip
gost-engine-1e15537d7583cdd5a4b003b5efb92f0b6e1fdcc6.tar.gz
gost-engine-1e15537d7583cdd5a4b003b5efb92f0b6e1fdcc6.tar.bz2
grasshopper: Fix OFB implementation.
Previous implementation was not OFB at all, and fail tests. Note: This implementation is for fixed width 128-bit IV which makes shift regiser redundant.
Diffstat (limited to 'gost_grasshopper_cipher.h')
-rw-r--r--gost_grasshopper_cipher.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gost_grasshopper_cipher.h b/gost_grasshopper_cipher.h
index 08aac05..2486e61 100644
--- a/gost_grasshopper_cipher.h
+++ b/gost_grasshopper_cipher.h
@@ -27,8 +27,6 @@ typedef struct {
typedef struct {
gost_grasshopper_cipher_ctx c;
grasshopper_w128_t buffer1;
- uint32_t g;
- uint32_t go;
} gost_grasshopper_cipher_ctx_ofb;
typedef struct {