From 11026b06dca0fc886d20e79eff0162b42fec3f8f Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 29 Aug 2026 12:19:59 +0200 Subject: lib: Add support for NIST curve hybrid KEMs OpenSSL 3.5 supports SecP256r1MLKEM768 and SecP384r1MLKEM1024 pairing ML-KEM with a NIST curve. These were not supported yet by O7s. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/crypt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ouroboros/crypt.h b/include/ouroboros/crypt.h index dd0c2853..b567bf8d 100644 --- a/include/ouroboros/crypt.h +++ b/include/ouroboros/crypt.h @@ -69,8 +69,10 @@ /* Hybrid KEM NIDs: project-assigned range, OpenSSL defines none */ #define NID_X25519MLKEM768 2053 #define NID_X448MLKEM1024 2054 +#define NID_SecP256r1MLKEM768 2055 +#define NID_SecP384r1MLKEM1024 2056 #define NID_HYBRID_KEM_MIN NID_X25519MLKEM768 -#define NID_HYBRID_KEM_MAX NID_X448MLKEM1024 +#define NID_HYBRID_KEM_MAX NID_SecP384r1MLKEM1024 /* KDF NIDs (match OpenSSL values) */ #define NID_hkdf 1036 -- cgit v1.2.3