From 28d0c66e225d27b8ec0d8cd357a924f8a7e7c9cb Mon Sep 17 00:00:00 2001 From: Aleksey Terentyev Date: Fri, 11 Dec 2020 17:19:37 +0300 Subject: [PATCH] magma consts changed --- gost_crypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gost_crypt.c b/gost_crypt.c index cb3cdb3..66a09a9 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -477,8 +477,8 @@ static int magma_cipher_init_param(EVP_CIPHER_CTX *ctx, } memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), EVP_CIPHER_CTX_original_iv(ctx), EVP_CIPHER_CTX_iv_length(ctx)); - if (EVP_CIPHER_CTX_nid(ctx) == NID_magma_ctr_acpkm - || EVP_CIPHER_CTX_nid(ctx) == NID_magma_ctr_acpkm_omac) { + if (EVP_CIPHER_CTX_nid(ctx) == NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm + || EVP_CIPHER_CTX_nid(ctx) == NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac) { c->key_meshing = 1024; } else { c->key_meshing = 0; -- 2.39.5