Skip to content

Commit

Permalink
adding missing KE_QKD enum and proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
fj-blanco committed Oct 31, 2024
1 parent 8dc3e23 commit 227aad9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/libstrongswan/crypto/key_exchange.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ ENUM_NEXT(key_exchange_method_names, KE_KYBER_L1, KE_HQC_L5, MODP_NULL,
"HQC_L1",
"HQC_L3",
"HQC_L5");
ENUM_NEXT(key_exchange_method_names, MODP_CUSTOM, MODP_CUSTOM, KE_HQC_L5,
ENUM_NEXT(key_exchange_method_names, KE_QKD, KE_QKD, KE_HQC_L5,
"QKD");
ENUM_NEXT(key_exchange_method_names, MODP_CUSTOM, MODP_CUSTOM, KE_QKD,
"MODP_CUSTOM");
ENUM_END(key_exchange_method_names, MODP_CUSTOM);

Expand Down Expand Up @@ -116,7 +118,9 @@ ENUM_NEXT(key_exchange_method_names_short, KE_KYBER_L1, KE_HQC_L5, MODP_NULL,
"hqc1",
"hqc3",
"hqc5");
ENUM_NEXT(key_exchange_method_names_short, MODP_CUSTOM, MODP_CUSTOM, KE_HQC_L5,
ENUM_NEXT(key_exchange_method_names_short, KE_QKD, KE_QKD, KE_HQC_L5,
"qkd");
ENUM_NEXT(key_exchange_method_names_short, MODP_CUSTOM, MODP_CUSTOM, KE_QKD,
"modpcustom");
ENUM_END(key_exchange_method_names_short, MODP_CUSTOM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,6 @@ bike5, KEY_EXCHANGE_METHOD, KE_BIKE_L5, 0
hqc1, KEY_EXCHANGE_METHOD, KE_HQC_L1, 0
hqc3, KEY_EXCHANGE_METHOD, KE_HQC_L3, 0
hqc5, KEY_EXCHANGE_METHOD, KE_HQC_L5, 0
qkd, KEY_EXCHANGE_METHOD, KE_QKD, 0
noesn, EXTENDED_SEQUENCE_NUMBERS, NO_EXT_SEQ_NUMBERS, 0
esn, EXTENDED_SEQUENCE_NUMBERS, EXT_SEQ_NUMBERS, 0

0 comments on commit 227aad9

Please sign in to comment.