]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Bugfix.
authorDmitry Belyavskiy <beldmit@gmail.com>
Fri, 21 Aug 2015 16:25:50 +0000 (19:25 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 21 Aug 2015 16:25:50 +0000 (19:25 +0300)
gost_crypt.c
gost_ec_keyx.c

index 0c207cdcbd4eba929d560c85a276f45d7658c37e..668e881be38a1c7be8966336c2653a38c122ddba 100644 (file)
@@ -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) {
index 7a80d232edb0ca52e666d235ec50653ad5792e55..929c7861765e4288906159f9cdc93c9daaf545fb 100644 (file)
@@ -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;