mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-25 22:02:05 +01:00
Add PublicKeyAlgorithm entries for X25519, X448, Ed25519, Ed448
This commit is contained in:
parent
0378145b21
commit
6f46f75602
1 changed files with 12 additions and 0 deletions
|
@ -61,6 +61,18 @@ enum class PublicKeyAlgorithm(
|
|||
|
||||
/** Digital Signature Algorithm based on twisted Edwards Curves. */
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue