aboutsummaryrefslogtreecommitdiff
path: root/gost_ameth.c
diff options
context:
space:
mode:
authorboggard <varyanik2@gmail.com>2017-07-12 21:01:56 +0300
committerboggard <varyanik2@gmail.com>2017-07-12 21:01:56 +0300
commit82d1ac30943cbe9223f024466404e7be720379b6 (patch)
treea6baa7ff8bb8187a41866de762beef27b00ba5b8 /gost_ameth.c
parentf8a4b31268d06d4deea274a7d3e644cf4f84e386 (diff)
downloadgost-engine-82d1ac30943cbe9223f024466404e7be720379b6.zip
gost-engine-82d1ac30943cbe9223f024466404e7be720379b6.tar.gz
gost-engine-82d1ac30943cbe9223f024466404e7be720379b6.tar.bz2
Variable has renamed and documentation has changed
Diffstat (limited to 'gost_ameth.c')
-rw-r--r--gost_ameth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gost_ameth.c b/gost_ameth.c
index b2d6aba..437362c 100644
--- a/gost_ameth.c
+++ b/gost_ameth.c
@@ -19,7 +19,7 @@
#include "gost_lcl.h"
#include "e_gost_err.h"
-#define PK_UNMASK_PARAM "UNMASK"
+#define PK_WRAP_PARAM "LEGACY_PK_WRAP"
/*
* Pack bignum into byte buffer of given size, filling all leading bytes by
@@ -443,7 +443,7 @@ static int priv_encode_gost(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk)
/* unmasked private key */
const char *pk_param = get_gost_engine_param(GOST_PARAM_PK_PARAMS);
- if(pk_param != NULL && strcmp(pk_param, PK_UNMASK_PARAM) == 0) {
+ if(pk_param != NULL && strcmp(pk_param, PK_WRAP_PARAM) == 0) {
ASN1_STRING *octet = NULL;
int priv_len = 0;
unsigned char *priv_buf = NULL;