Skip to content

Commit

Permalink
Hacked hybrid logic to work with new name X25519MLKEM768
Browse files Browse the repository at this point in the history
Signed-off-by: Pravek Sharma <[email protected]>
  • Loading branch information
praveksharma committed Sep 20, 2024
1 parent 806eb59 commit e255f59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oqsprov/oqsprov_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,10 @@ static const OQSX_EVP_INFO nids_ecp[] = {

// These two array need to stay synced:
// note only leading 4 chars of alg name are checked
static const char *OQSX_ECX_NAMES[] = {"x25519", "x448", 0};
static const char *OQSX_ECX_NAMES[] = {"x25519", "x448", "X25519", "X448", 0};
static const OQSX_EVP_INFO nids_ecx[] = {
{EVP_PKEY_X25519, 0, 1, 32, 32, 32, 0}, // 128 bit
{EVP_PKEY_X448, 0, 1, 56, 56, 56, 0}, // 192 bit
{EVP_PKEY_X25519, 0, 1, 32, 32, 32, 0}, // 128 bit
{EVP_PKEY_X448, 0, 1, 56, 56, 56, 0}, // 192 bit
{0, 0, 0, 0, 0, 0, 0} // 256 bit
Expand Down

0 comments on commit e255f59

Please sign in to comment.