From bd79923133e036d37ad5adca67a67188fac97675 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 21 Feb 2024 15:38:40 +0100 Subject: [PATCH] Add new PublicKeyAlgorithms --- .../org/pgpainless/algorithm/PublicKeyAlgorithm.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pgpainless-core/src/main/kotlin/org/pgpainless/algorithm/PublicKeyAlgorithm.kt b/pgpainless-core/src/main/kotlin/org/pgpainless/algorithm/PublicKeyAlgorithm.kt index 8cf03420..24809ee8 100644 --- a/pgpainless-core/src/main/kotlin/org/pgpainless/algorithm/PublicKeyAlgorithm.kt +++ b/pgpainless-core/src/main/kotlin/org/pgpainless/algorithm/PublicKeyAlgorithm.kt @@ -61,6 +61,18 @@ enum class PublicKeyAlgorithm( /** Digital Signature Algorithm based on twisted Edwards Curves. */ EDDSA_LEGACY(22, true, false), + + /** X25519. */ + X25519(25, false, true), + + /** X448. */ + X448(26, false, true), + + /** Ed25519. Note: Legacy OpenPGP uses [EDDSA_LEGACY] instead. */ + Ed25519(27, true, false), + + /** Ed448. */ + Ed448(28, true, false), ; fun isSigningCapable(): Boolean = signingCapable