aboutsummaryrefslogtreecommitdiff
path: root/gost_pmeth.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-09-11 15:49:59 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-09-11 15:49:59 +0300
commitc62cbdc744945d029bad90eb43cde5449bc1fa48 (patch)
treed26de9bcc285b459b58ad9c28ffc7ac1ac980b40 /gost_pmeth.c
parent23f3265d293c91a80988dadcb4f7e36b60dbef0a (diff)
downloadgost-engine-c62cbdc744945d029bad90eb43cde5449bc1fa48.zip
gost-engine-c62cbdc744945d029bad90eb43cde5449bc1fa48.tar.gz
gost-engine-c62cbdc744945d029bad90eb43cde5449bc1fa48.tar.bz2
Default size of imitovstavka adjusted
Diffstat (limited to 'gost_pmeth.c')
-rw-r--r--gost_pmeth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gost_pmeth.c b/gost_pmeth.c
index 5c07200..2f3d711 100644
--- a/gost_pmeth.c
+++ b/gost_pmeth.c
@@ -521,12 +521,12 @@ static int pkey_gost_omac_init(EVP_PKEY_CTX *ctx, size_t mac_size)
static int pkey_gost_magma_mac_init(EVP_PKEY_CTX *ctx)
{
- return pkey_gost_omac_init(ctx, 4);
+ return pkey_gost_omac_init(ctx, 8);
}
static int pkey_gost_grasshopper_mac_init(EVP_PKEY_CTX *ctx)
{
- return pkey_gost_omac_init(ctx, 8);
+ return pkey_gost_omac_init(ctx, 16);
}
static void pkey_gost_mac_cleanup(EVP_PKEY_CTX *ctx)