From: Dmitry Belyavskiy Date: Fri, 21 Aug 2015 16:25:50 +0000 (+0300) Subject: Bugfix. X-Git-Tag: v1.1.0.2~52 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=ce40d60;p=openssl-gost%2Fengine.git Bugfix. --- 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;