Skip to content

Commit

Permalink
New codepoint for MLDSA
Browse files Browse the repository at this point in the history
  • Loading branch information
anhu committed Jan 29, 2025
1 parent 45b385a commit 6f6cc6d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions wolfssl/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -1829,18 +1829,20 @@ enum Misc {

PQC_SA_MAJOR = 0xFE,/* Most significant byte used with PQC sig algs */

/* These values for falcon and dilithium match what OQS has defined. */
/* These values for falcon match what OQS has defined. */
FALCON_LEVEL1_SA_MAJOR = 0xFE,
FALCON_LEVEL1_SA_MINOR = 0xAE,
FALCON_LEVEL5_SA_MAJOR = 0xFE,
FALCON_LEVEL5_SA_MINOR = 0xB1,

DILITHIUM_LEVEL2_SA_MAJOR = 0xFE,
DILITHIUM_LEVEL2_SA_MINOR = 0xD0,
DILITHIUM_LEVEL3_SA_MAJOR = 0xFE,
DILITHIUM_LEVEL3_SA_MINOR = 0xD1,
DILITHIUM_LEVEL5_SA_MAJOR = 0xFE,
DILITHIUM_LEVEL5_SA_MINOR = 0xD2,
/* these values for MLDSA (Dilithium) correspond to what is proposed in the
* IETF. */
DILITHIUM_LEVEL2_SA_MAJOR = 0x09,
DILITHIUM_LEVEL2_SA_MINOR = 0x04,
DILITHIUM_LEVEL3_SA_MAJOR = 0x09,
DILITHIUM_LEVEL3_SA_MINOR = 0x05,
DILITHIUM_LEVEL5_SA_MAJOR = 0x09,
DILITHIUM_LEVEL5_SA_MINOR = 0x06,

MIN_RSA_SHA512_PSS_BITS = 512 * 2 + 8 * 8, /* Min key size */
MIN_RSA_SHA384_PSS_BITS = 384 * 2 + 8 * 8, /* Min key size */
Expand Down

0 comments on commit 6f6cc6d

Please sign in to comment.