Re: [PATCH v2 0/6] Add meta interface for MAC algorithms

2019-09-16 Thread Daiki Ueno
Hello, ni...@lysator.liu.se (Niels Möller) writes: > Dmitry Eremin-Solenikov writes: > >> There will be a nonce for GMAC. > > Ok. If we keep set_nonce, we have to clarify what it means. There are a > couple of cases, where the first two are relatively easy. > > nonce_size == 0, set_nonce ==

Re: [PATCH v2 0/6] Add meta interface for MAC algorithms

2019-09-16 Thread Dmitry Eremin-Solenikov
вс, 15 сент. 2019 г. в 10:28, Niels Möller : > > Dmitry Eremin-Solenikov writes: > > > There will be a nonce for GMAC. > > Ok. If we keep set_nonce, we have to clarify what it means. There are a > couple of cases, where the first two are relatively easy. > > nonce_size == 0, set_nonce == NULL: >

[PATCH 0/5] GOST 28147-89 support

2019-09-16 Thread dbaryshkov
GOST 28147-89 is the data encryption standard for Russia (old, but still used). English translation is provided in RFC 5830. It defines a 64-bit cipher, ECB, CFB and counter (CNT) modes on top of it and a special mode of basic transformation that is used for MAC construction called "Imitovstavka"

[PATCH 3/5] Add CFB mode support for GOST 28147-89

2019-09-16 Thread dbaryshkov
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- gost28147.c| 85 +++--- gost28147.h| 8 +++ testsuite/gost28147-test.c | 143 + 3 files changed, 228 insertions(+), 8 deletions(-)

[PATCH 1/5] Add GOST 28147-89 ECB encryption and decryption support

2019-09-16 Thread dbaryshkov
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- Makefile.in | 3 +- gost28147-internal.h | 3 + gost28147-meta.c | 49 +++ gost28147.c | 85 + gost28147.h |

[PATCH 5/5] Add GOST 28147-89 IMIT support

2019-09-16 Thread dbaryshkov
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- gost28147.c| 107 +++-- gost28147.h| 47 testsuite/gost28147-test.c | 102 +++ 3 files changed, 253

[PATCH 2/5] Add the rest of sboxes for GOST 28147

2019-09-16 Thread dbaryshkov
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- gost28147.c | 1602 +++ gost28147.h | 13 + 2 files changed, 1615 insertions(+) diff --git a/gost28147.c b/gost28147.c index 6ccdcb6a353c..9fe31043a3ff 100644 ---

[PATCH 4/5] Add special CNT mode for GOST 28147-89 cipher

2019-09-16 Thread dbaryshkov
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- gost28147.c| 86 gost28147.h| 24 ++ testsuite/gost28147-test.c | 161 + 3 files changed, 271 insertions(+) diff --git