From 5ea8294a6090a583adcfbdaff7537693425b7a38 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Thu, 14 Oct 2021 15:27:01 +0200 Subject: [PATCH] Improve javadoc of Feature class --- .../org/pgpainless/algorithm/Feature.java | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/algorithm/Feature.java b/pgpainless-core/src/main/java/org/pgpainless/algorithm/Feature.java index df6d1de5..27837b09 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/algorithm/Feature.java +++ b/pgpainless-core/src/main/java/org/pgpainless/algorithm/Feature.java @@ -19,13 +19,36 @@ import org.bouncycastle.bcpg.sig.Features; public enum Feature { /** - * Add modification detection package. + * Support for Symmetrically Encrypted Integrity Protected Data Packets using Modification Detection Code Packets. * * @see * RFC-4880 ยง5.14: Modification Detection Code Packet */ MODIFICATION_DETECTION(Features.FEATURE_MODIFICATION_DETECTION), + + /** + * Support for Authenticated Encryption with Additional Data (AEAD). + * If a key announces this feature, it signals support for consuming AEAD Encrypted Data Packets. + * + * NOTE: PGPAINLESS DOES NOT YET SUPPORT THIS FEATURE!!! + * + * @see + * AEAD Encrypted Data Packet + */ AEAD_ENCRYPTED_DATA(Features.FEATURE_AEAD_ENCRYPTED_DATA), + + /** + * If a key announces this feature, it is a version 5 public key. + * The version 5 format is similar to the version 4 format except for the addition of a count for the key material. + * This count helps parsing secret key packets (which are an extension of the public key packet format) in the case + * of an unknown algorithm. + * In addition, fingerprints of version 5 keys are calculated differently from version 4 keys. + * + * NOTE: PGPAINLESS DOES NOT YET SUPPORT THIS FEATURE!!! + * + * @see + * Public-Key Packet Formats + */ VERSION_5_PUBLIC_KEY(Features.FEATURE_VERSION_5_PUBLIC_KEY) ;