summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-08-29 12:19:59 +0200
committerSander Vrijders <sander@ouroboros.rocks>2026-08-31 08:31:46 +0200
commit11026b06dca0fc886d20e79eff0162b42fec3f8f (patch)
tree86962f65634a4ebe20822cf8c4ef659f5d0005a4 /include
parent0719ed46d29b0e57cb9128f5396ff894b7456766 (diff)
downloadouroboros-11026b06dca0fc886d20e79eff0162b42fec3f8f.tar.gz
ouroboros-11026b06dca0fc886d20e79eff0162b42fec3f8f.zip
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 <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/crypt.h4
1 files changed, 3 insertions, 1 deletions
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