From 1b91d428f07aa3dc873e3aae41a00ac6f6c78d58 Mon Sep 17 00:00:00 2001 From: Roman Zechmeister Date: Mon, 11 May 2020 21:45:04 +0200 Subject: [PATCH] Also create issuer fingerprint subpacket for v4 keys (#1097) Do not limit creation of signatures with issuer fingerprint subpacket to v5 keys. --- src/packet/signature.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/packet/signature.js b/src/packet/signature.js index 69263f1f..68b436cc 100644 --- a/src/packet/signature.js +++ b/src/packet/signature.js @@ -163,13 +163,8 @@ Signature.prototype.sign = async function (key, data, detached = false, streamin } const arr = [new Uint8Array([this.version, signatureType, publicKeyAlgorithm, hashAlgorithm])]; - if (key.version === 5) { - // We could also generate this subpacket for version 4 keys, but for - // now we don't. - this.issuerKeyVersion = key.version; - this.issuerFingerprint = key.getFingerprintBytes(); - } - + this.issuerKeyVersion = key.version; + this.issuerFingerprint = key.getFingerprintBytes(); this.issuerKeyId = key.getKeyId(); // Add hashed subpackets