mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-04 13:16:42 +00:00
Properly set one-pass signture packet flag
This commit is contained in:
parent
e84276eefa
commit
e9940eb100
@ -321,6 +321,9 @@ Message.prototype.sign = function(privateKeys) {
|
||||
}
|
||||
onePassSig.publicKeyAlgorithm = signingKeyPacket.algorithm;
|
||||
onePassSig.signingKeyId = signingKeyPacket.getKeyId();
|
||||
if (i === privateKeys.length - 1) {
|
||||
onePassSig.flags = 1;
|
||||
}
|
||||
packetlist.push(onePassSig);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user