summaryrefslogtreecommitdiffstats
path: root/engines/ccgost/gost2001.c
diff options
context:
space:
mode:
Diffstat (limited to 'engines/ccgost/gost2001.c')
-rw-r--r--engines/ccgost/gost2001.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/ccgost/gost2001.c b/engines/ccgost/gost2001.c
index e0d685f754..e3354549e1 100644
--- a/engines/ccgost/gost2001.c
+++ b/engines/ccgost/gost2001.c
@@ -205,7 +205,7 @@ int gost2001_do_verify(const unsigned char *dgst,int dgst_len,
if (BN_is_zero(sig->s) || BN_is_zero(sig->r) ||
(BN_cmp(sig->s,order)>=1) || (BN_cmp(sig->r,order)>=1))
{
- GOSTerr(GOST_F_GOST_DO_VERIFY,GOST_R_SIGNATURE_PARTS_GREATER_THAN_Q);
+ GOSTerr(GOST_F_GOST2001_DO_VERIFY,GOST_R_SIGNATURE_PARTS_GREATER_THAN_Q);
goto err;
}
@@ -325,7 +325,7 @@ int gost2001_keygen(EC_KEY *ec)
{
if (!BN_rand_range(d,order))
{
- GOSTerr(GOST_F_GOST2001_DO_SIGN,GOST_R_RANDOM_NUMBER_GENERATOR_FAILED);
+ GOSTerr(GOST_F_GOST2001_KEYGEN,GOST_R_RANDOM_NUMBER_GENERATOR_FAILED);
BN_free(d);
BN_free(order);
return 0;