Skip to content

Commit

Permalink
Add pre-allocated MLKEM768 code points.
Browse files Browse the repository at this point in the history
Reviewed By: zxjtan

Differential Revision: D64722551

fbshipit-source-id: 1d482206fa5cc92085472ff1dddc7acf2e02819a
  • Loading branch information
Kyle Nekritz authored and facebook-github-bot committed Oct 24, 2024
1 parent d757c69 commit 4062bf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fizz/record/Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ std::string toString(NamedGroup group) {
return "secp521r1";
case NamedGroup::x25519:
return "x25519";
case NamedGroup::SecP256r1MLKEM768:
return "SecP256r1MLKEM768";
case NamedGroup::X25519MLKEM768:
return "X25519MLKEM768";
case NamedGroup::secp521r1_x25519:
return "secp521r1_x25519";
case NamedGroup::x25519_kyber512:
Expand Down
2 changes: 2 additions & 0 deletions fizz/record/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ enum class NamedGroup : uint16_t {
secp384r1 = 24,
secp521r1 = 25,
x25519 = 29,
SecP256r1MLKEM768 = 4587,
X25519MLKEM768 = 4588,

/**
* x25519 and secp256r1 hybrids with NIST Round 3 version of Kyber, see
Expand Down

0 comments on commit 4062bf3

Please sign in to comment.