diff options
author | NIIBE Yutaka <[email protected]> | 2023-03-03 11:44:24 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-03-03 11:44:24 +0000 |
commit | aa8c5d12efc9a673723a1a17308b92c4ff3cac83 (patch) | |
tree | 5cb061d57f99f8b0645e8999dc16a3f0e15eb82b | |
parent | Fix listing keys. (diff) | |
download | gnupg-aa8c5d12efc9a673723a1a17308b92c4ff3cac83.tar.gz gnupg-aa8c5d12efc9a673723a1a17308b92c4ff3cac83.zip |
Fix keygrip computation.
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | tkd/pkcs11.c | 2 |
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; } |