summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-06-25 08:57:33 +0200
committerWerner Koch <wk@gnupg.org>2020-06-25 08:57:33 +0200
commit17a25c14f1ed1199898ad618c17204eafd5524c1 (patch)
tree0c5fb33d470c2436d880a767ed901cde683c860a
parentagent: separate out daemon handling infrastructure for reuse (diff)
downloadgnupg2-17a25c14f1ed1199898ad618c17204eafd5524c1.tar.xz
gnupg2-17a25c14f1ed1199898ad618c17204eafd5524c1.zip
sm: Fix support verification of nistp521 signatures.
* sm/certcheck.c (do_encode_md): Fix obvious bug. -- Fixes-commit: 596212e71abf33b30608348b782c093dace83110 Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--sm/certcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/certcheck.c b/sm/certcheck.c
index cf9495a58..d04a86588 100644
--- a/sm/certcheck.c
+++ b/sm/certcheck.c
@@ -82,7 +82,7 @@ do_encode_md (gcry_md_hd_t md, int algo, int pkalgo, unsigned int nbits,
if ( pkalgo == GCRY_PK_ECC )
{
qbits0 = gcry_pk_get_nbits (pkey);
- qbits = qbits0 == 521? 512 : qbits;
+ qbits = qbits0 == 521? 512 : qbits0;
}
else
qbits0 = qbits = get_dsa_qbits (pkey);