From 94b9a79600d9e6c222782676b2f4b321bf627c5f Mon Sep 17 00:00:00 2001 From: Torben Hansen <50673096+torben-hansen@users.noreply.github.com> Date: Mon, 9 Sep 2024 08:02:59 -0700 Subject: [PATCH] OIDs --- crypto/fipsmodule/kem/kem.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crypto/fipsmodule/kem/kem.c b/crypto/fipsmodule/kem/kem.c index 2b81935b1e2..b0a7f5ab7c7 100644 --- a/crypto/fipsmodule/kem/kem.c +++ b/crypto/fipsmodule/kem/kem.c @@ -8,9 +8,10 @@ #include "../ml_kem/ml_kem.h" #include "internal.h" -static const uint8_t kOIDMLKEM512[] = {0xff, 0xff, 0xff, 0xff}; -static const uint8_t kOIDMLKEM768[] = {0xff, 0xff, 0xff, 0xff}; -static const uint8_t kOIDMLKEM1024[] = {0xff, 0xff, 0xff, 0xff}; +// https://csrc.nist.gov/projects/computer-security-objects-register/algorithm-registration +static const uint8_t kOIDMLKEM512[] = {0x60, 0x81, 0x34, 0x01, 0x65, 0x03, 0x04, 0x04, 0x01}; +static const uint8_t kOIDMLKEM768[] = {0x60, 0x81, 0x34, 0x01, 0x65, 0x03, 0x04, 0x04, 0x02}; +static const uint8_t kOIDMLKEM1024[] = {0x60, 0x81, 0x34, 0x01, 0x65, 0x03, 0x04, 0x04, 0x03}; static int ml_kem_1024_keygen_deterministic(uint8_t *public_key, uint8_t *secret_key,