From ce40d60dfafceef6b964d741aba51ff068c59213 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Fri, 21 Aug 2015 19:25:50 +0300 Subject: [PATCH] Bugfix. --- gost_crypt.c | 2 +- gost_ec_keyx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gost_crypt.c b/gost_crypt.c index 0c207cd..668e881 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -183,7 +183,7 @@ const struct gost_cipher_info *get_encryption_params(ASN1_OBJECT *obj) if (!obj) { const char *params = get_gost_engine_param(GOST_PARAM_CRYPT_PARAMS); if (!params || !strlen(params)) - return &gost_cipher_list[5]; + return &gost_cipher_list[4]; nid = OBJ_txt2nid(params); if (nid == NID_undef) { diff --git a/gost_ec_keyx.c b/gost_ec_keyx.c index 7a80d23..929c786 100644 --- a/gost_ec_keyx.c +++ b/gost_ec_keyx.c @@ -189,7 +189,7 @@ int pkey_GOST_ECcp_encrypt(EVP_PKEY_CTX *pctx, unsigned char *out, } if (!get_gost_engine_param(GOST_PARAM_CRYPT_PARAMS) && param == gost_cipher_list) { - param = gost_cipher_list + 1; + param = gost_cipher_list; } if (out) { int dgst_nid = NID_undef; -- 2.39.2