1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-22 12:22:06 +01:00

Add PublicKeyAlgorithm entries for X25519, X448, Ed25519, Ed448

This commit is contained in:
Paul Schaub 2024-06-21 14:12:54 +02:00
parent 0378145b21
commit 6f46f75602
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -61,6 +61,18 @@ enum class PublicKeyAlgorithm(
/** Digital Signature Algorithm based on twisted Edwards Curves. */ /** Digital Signature Algorithm based on twisted Edwards Curves. */
EDDSA_LEGACY(22, true, false), EDDSA_LEGACY(22, true, false),
/** X25519 encryption algorithm. */
X25519(25, false, true),
/** X448 encryption algorithm. */
X448(26, false, true),
/** Ed25519 signature algorithm. */
ED25519(27, true, false),
/** Ed448 signature algorithm. */
ED448(28, true, false),
; ;
fun isSigningCapable(): Boolean = signingCapable fun isSigningCapable(): Boolean = signingCapable