aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-03-03 11:44:24 +0000
committerNIIBE Yutaka <[email protected]>2023-03-03 11:44:24 +0000
commitaa8c5d12efc9a673723a1a17308b92c4ff3cac83 (patch)
tree5cb061d57f99f8b0645e8999dc16a3f0e15eb82b
parentFix listing keys. (diff)
downloadgnupg-aa8c5d12efc9a673723a1a17308b92c4ff3cac83.tar.gz
gnupg-aa8c5d12efc9a673723a1a17308b92c4ff3cac83.zip
Fix keygrip computation.
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--tkd/pkcs11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tkd/pkcs11.c b/tkd/pkcs11.c
index 4f00137ee..d5b11b40b 100644
--- a/tkd/pkcs11.c
+++ b/tkd/pkcs11.c
@@ -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;
}