Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename config.ignoreMdcError, drop config.integrityProtect and allow V4 keys to be AEAD-encrypted #1261

Merged
merged 5 commits into from
Mar 3, 2021

Conversation

larabr
Copy link
Collaborator

@larabr larabr commented Mar 3, 2021

Changes:

  • rename config.ignoreMdcError to config.allowUnauthenticatedMessages
  • remove config.integrityProtect: it is no longer possible to create messages without integrity protection
  • config.aeadProtect is now used when selecting the encryption mechanism of keys (previously, only v5 keys were encrypted using AEAD)

}
// integrity protection always enabled
signaturePacket.features = [0];
signaturePacket.features[0] |= enums.features.modificationDetection;
if (config.aeadProtect) {
signaturePacket.features || (signaturePacket.features = [0]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very nitpicky but you can remove this line now (also the one in the next if)

@twiss twiss merged commit 6e2a787 into openpgpjs:master Mar 3, 2021
@larabr larabr deleted the config-changes branch June 10, 2021 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants