Skip to content

Commit 4c213f1

Browse files
povilasbguedou
authored andcommitted
Add hybrid PQC KEM groups
1 parent 0085cd2 commit 4c213f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scapy/layers/tls/crypto/groups.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,19 @@ class ffdhe8192(_FFDHParams): # From RFC 7919
408408
0xff01: "arbitrary_explicit_prime_curves",
409409
0xff02: "arbitrary_explicit_char2_curves"}
410410

411+
_tls_post_quantum_hybrid = {
412+
# https://www.ietf.org/archive/id/draft-kwiatkowski-tls-ecdhe-mlkem-02.html#name-secp256r1mlkem768
413+
0x11EB: "SecP256r1MLKEM768",
414+
# https://www.ietf.org/archive/id/draft-kwiatkowski-tls-ecdhe-mlkem-02.html#name-x25519mlkem768
415+
0x11EC: "X25519MLKEM768",
416+
# https://www.ietf.org/archive/id/draft-tls-westerbaan-xyber768d00-03.html#name-iana-considerations
417+
0x6399: "X25519Kyber768Draft00",
418+
}
419+
411420
_tls_named_groups = {}
412421
_tls_named_groups.update(_tls_named_ffdh_groups)
413422
_tls_named_groups.update(_tls_named_curves)
423+
_tls_named_groups.update(_tls_post_quantum_hybrid)
414424

415425

416426
def _tls_named_groups_import(group, pubbytes):

0 commit comments

Comments
 (0)