Skip to content

OpenPGPCertificate: Allow getting encryption keys by purpose#2236

Open
vanitasvitae wants to merge 3 commits intobcgit:mainfrom
pgpainless:getEncryptionKeys
Open

OpenPGPCertificate: Allow getting encryption keys by purpose#2236
vanitasvitae wants to merge 3 commits intobcgit:mainfrom
pgpainless:getEncryptionKeys

Conversation

@vanitasvitae
Copy link
Contributor

The OpenPGP protocol defines two different encryption key flags: ENCRYPT_STORAGE and ENCRYPT_COMMS.

This PR adds methods to select encryption keys of a certificate by passing in key flags as array of masks.
This allows the user to encrypt a message for a specific use-case, such as data in transmission or data at rest.

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.

1 participant