diffie-hellman: Classify x25519 and x448 as ECDH methods
authorTobias Brunner <tobias@strongswan.org>
Thu, 11 Feb 2021 16:00:05 +0000 (17:00 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2021 13:35:23 +0000 (14:35 +0100)
src/libstrongswan/crypto/diffie_hellman.c

index 173882b..c6c3bc6 100644 (file)
@@ -532,6 +532,8 @@ bool diffie_hellman_group_is_ec(diffie_hellman_group_t group)
                case ECP_256_BP:
                case ECP_384_BP:
                case ECP_512_BP:
+               case CURVE_25519:
+               case CURVE_448:
                        return TRUE;
                default:
                        return FALSE;