mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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>
This commit is contained in:
parent
f541e1d95a
commit
17a25c14f1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user