From: Aleksey Terentyev Date: Fri, 11 Dec 2020 14:19:37 +0000 (+0300) Subject: magma consts changed X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=28d0c66e225d27b8ec0d8cd357a924f8a7e7c9cb;p=openssl-gost%2Fengine.git magma consts changed --- 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;