summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/backend/nettle.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-01-13 12:35:07 +0100
committerJustus Winter <justus@sequoia-pgp.org>2023-01-13 12:35:07 +0100
commitc96e976d0faed03bb29f459cd2879ff96ac7f316 (patch)
treecb530e79f29cec410b4f7caf15a170afbdcf8d70 /openpgp/src/crypto/backend/nettle.rs
parent92e8b887662cdbc251722438c8195b8e40f4fc2f (diff)
parente9906e642a674598785523128503cc8a1a45ff96 (diff)
Merge branch 'justus/openpgp-next-cv448' into justus/openpgp-nextjustus/openpgp-next
Diffstat (limited to 'openpgp/src/crypto/backend/nettle.rs')
-rw-r--r--openpgp/src/crypto/backend/nettle.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/crypto/backend/nettle.rs b/openpgp/src/crypto/backend/nettle.rs
index ef68cc35..c64bb41a 100644
--- a/openpgp/src/crypto/backend/nettle.rs
+++ b/openpgp/src/crypto/backend/nettle.rs
@@ -70,6 +70,10 @@ impl Curve {
match &self {
NistP256 | NistP384 | NistP521 | Ed25519 | Cv25519
=> true,
+ Ed448
+ => nettle::ed448::IS_SUPPORTED,
+ Cv448
+ => nettle::curve448::IS_SUPPORTED,
BrainpoolP256 | BrainpoolP512 | Unknown(_)
=> false,
}