Skip to content

Commit

Permalink
Correct encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-hansen committed Sep 9, 2024
1 parent 94b9a79 commit 21f42ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crypto/fipsmodule/kem/kem.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
#include "internal.h"

// 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};
// 2.16.840.1.101.3.4.4.1
static const uint8_t kOIDMLKEM512[] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x04, 0x01};
// 2.16.840.1.101.3.4.4.2
static const uint8_t kOIDMLKEM768[] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x04, 0x02};
// 2.16.840.1.101.3.4.4.3
static const uint8_t kOIDMLKEM1024[] = {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x04, 0x03};

static int ml_kem_1024_keygen_deterministic(uint8_t *public_key,
uint8_t *secret_key,
Expand Down

0 comments on commit 21f42ea

Please sign in to comment.