1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Fix keygrip computation.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-03-03 20:44:24 +09:00
parent 395bcbc0ff
commit aa8c5d12ef
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -350,7 +350,7 @@ examine_public_key (struct token *token, struct key *k, unsigned long keytype,
k->flags &= ~KEY_FLAGS_NO_PUBKEY;
if ((modulus[0] & 0x80))
{
memmove (modulus+1, modulus, templ[1].ulValueLen);
memmove (modulus+1, modulus, templ[0].ulValueLen);
templ[0].ulValueLen++;
modulus[0] = 0;
}