aboutsummaryrefslogtreecommitdiff
path: root/gost_pmeth.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-06-14 15:12:32 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-06-14 15:12:32 +0300
commitdebbfa1ae38f18ea06750514dd950775ad9889d8 (patch)
treef5b65814603dcad4cdff975821051a650baec3a2 /gost_pmeth.c
parent2810b8ebebeda933e723c33f8c9f893b76f2391a (diff)
downloadgost-engine-debbfa1ae38f18ea06750514dd950775ad9889d8.zip
gost-engine-debbfa1ae38f18ea06750514dd950775ad9889d8.tar.gz
gost-engine-debbfa1ae38f18ea06750514dd950775ad9889d8.tar.bz2
Error codes rebuild
Diffstat (limited to 'gost_pmeth.c')
-rw-r--r--gost_pmeth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gost_pmeth.c b/gost_pmeth.c
index ce162f5..787b480 100644
--- a/gost_pmeth.c
+++ b/gost_pmeth.c
@@ -283,7 +283,7 @@ static int pkey_gost2001_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
EC_KEY *ec = NULL;
if (!data || data->sign_param_nid == NID_undef) {
- GOSTerr(GOST_F_PKEY_GOST01_PARAMGEN, GOST_R_NO_PARAMETERS_SET);
+ GOSTerr(GOST_F_PKEY_GOST2001_PARAMGEN, GOST_R_NO_PARAMETERS_SET);
return 0;
}
@@ -303,7 +303,7 @@ static int pkey_gost2012_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
int result = 0;
if (!data || data->sign_param_nid == NID_undef) {
- GOSTerr(GOST_F_PKEY_GOST12_PARAMGEN, GOST_R_NO_PARAMETERS_SET);
+ GOSTerr(GOST_F_PKEY_GOST2012_PARAMGEN, GOST_R_NO_PARAMETERS_SET);
return 0;
}
@@ -657,7 +657,7 @@ static int pkey_gost_mac_keygen_base(EVP_PKEY_CTX *ctx,
struct gost_mac_pmeth_data *data = EVP_PKEY_CTX_get_data(ctx);
struct gost_mac_key *keydata;
if (!data || !data->key_set) {
- GOSTerr(GOST_F_PKEY_GOST_MAC_KEYGEN, GOST_R_MAC_KEY_NOT_SET);
+ GOSTerr(GOST_F_PKEY_GOST_MAC_KEYGEN_BASE, GOST_R_MAC_KEY_NOT_SET);
return 0;
}
keydata = OPENSSL_malloc(sizeof(struct gost_mac_key));