]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
magma consts changed
authorAleksey Terentyev <terentjew.alexey@ya.ru>
Fri, 11 Dec 2020 14:19:37 +0000 (17:19 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Fri, 11 Dec 2020 15:10:25 +0000 (16:10 +0100)
gost_crypt.c

index cb3cdb342e72b4a04b677cbb8004625fe686d7c0..66a09a9aa502a590ff0f70fc2fa5b1ee31dd7c59 100644 (file)
@@ -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;