Also create issuer fingerprint subpacket for v4 keys (#1097)
Do not limit creation of signatures with issuer fingerprint subpacket to v5 keys.
This commit is contained in:
parent
2c6cbc4cb2
commit
1b91d428f0
|
@ -163,13 +163,8 @@ Signature.prototype.sign = async function (key, data, detached = false, streamin
|
||||||
}
|
}
|
||||||
const arr = [new Uint8Array([this.version, signatureType, publicKeyAlgorithm, hashAlgorithm])];
|
const arr = [new Uint8Array([this.version, signatureType, publicKeyAlgorithm, hashAlgorithm])];
|
||||||
|
|
||||||
if (key.version === 5) {
|
this.issuerKeyVersion = key.version;
|
||||||
// We could also generate this subpacket for version 4 keys, but for
|
this.issuerFingerprint = key.getFingerprintBytes();
|
||||||
// now we don't.
|
|
||||||
this.issuerKeyVersion = key.version;
|
|
||||||
this.issuerFingerprint = key.getFingerprintBytes();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.issuerKeyId = key.getKeyId();
|
this.issuerKeyId = key.getKeyId();
|
||||||
|
|
||||||
// Add hashed subpackets
|
// Add hashed subpackets
|
||||||
|
|
Loading…
Reference in New Issue
Block a user