Skip to content

How to identify AEAD-enabled messages using PGPainless #440

Answered by vanitasvitae
msfjarvis asked this question in Q&A
Discussion options

You must be logged in to vote

The AEAD feature is denoted by the Features subpacket.
You could probably search the latest direct-key signature and primary user-id binding signature for the features subpacket and check, if SignatureSubpacketsUtil.parseFeatures(signature).contains(Feature.MODIFICATION_DETECTION_2)

Edit: I will soon work on adding OpenPGP v6 features to BC, so stay tuned for native support :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@msfjarvis
Comment options

@vanitasvitae
Comment options

Answer selected by msfjarvis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants