diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/generation/type/KeyType.java b/pgpainless-core/src/main/java/org/pgpainless/key/generation/type/KeyType.java index 7daa87f1..3fd45558 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/generation/type/KeyType.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/generation/type/KeyType.java @@ -25,6 +25,8 @@ import org.pgpainless.key.generation.type.eddsa.EdDSA; import org.pgpainless.key.generation.type.eddsa.EdDSACurve; import org.pgpainless.key.generation.type.rsa.RsaLength; import org.pgpainless.key.generation.type.rsa.RSA; +import org.pgpainless.key.generation.type.xdh.XDH; +import org.pgpainless.key.generation.type.xdh.XDHCurve; public interface KeyType { @@ -72,4 +74,8 @@ public interface KeyType { static KeyType EDDSA(EdDSACurve curve) { return EdDSA.fromCurve(curve); } + + static KeyType XDH(XDHCurve curve) { + return XDH.fromCurve(curve); + } }