mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-11 16:46:41 +00:00
Generate SEIPD v2 flag instead of AEAD flag
The AEAD Encrypted Data packet has been removed from the draft in favor of version 2 of the Sym. Encrypted Integrity Protected Data packet. It also has a new feature flag to match.
This commit is contained in:
parent
bafdab20cf
commit
5078b8a66d
@ -462,7 +462,8 @@ export default {
|
||||
aead: 2,
|
||||
/** 0x04 - Version 5 Public-Key Packet format and corresponding new
|
||||
* fingerprint format */
|
||||
v5Keys: 4
|
||||
v5Keys: 4,
|
||||
seipdv2: 8
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -221,7 +221,7 @@ async function wrapKeyObject(secretKeyPacket, secretSubkeyPackets, options, conf
|
||||
signatureProperties.features = [0];
|
||||
signatureProperties.features[0] |= enums.features.modificationDetection;
|
||||
if (config.aeadProtect) {
|
||||
signatureProperties.features[0] |= enums.features.aead;
|
||||
signatureProperties.features[0] |= enums.features.seipdv2;
|
||||
}
|
||||
if (options.keyExpirationTime > 0) {
|
||||
signatureProperties.keyExpirationTime = options.keyExpirationTime;
|
||||
|
Loading…
x
Reference in New Issue
Block a user