Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions scapy/layers/tls/crypto/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,19 @@ class ffdhe8192(_FFDHParams): # From RFC 7919
0xff01: "arbitrary_explicit_prime_curves",
0xff02: "arbitrary_explicit_char2_curves"}

_tls_post_quantum_hybrid = {
# https://www.ietf.org/archive/id/draft-kwiatkowski-tls-ecdhe-mlkem-02.html#name-secp256r1mlkem768
0x11EB: "SecP256r1MLKEM768",
# https://www.ietf.org/archive/id/draft-kwiatkowski-tls-ecdhe-mlkem-02.html#name-x25519mlkem768
0x11EC: "X25519MLKEM768",
# https://www.ietf.org/archive/id/draft-tls-westerbaan-xyber768d00-03.html#name-iana-considerations
0x6399: "X25519Kyber768Draft00",
}

_tls_named_groups = {}
_tls_named_groups.update(_tls_named_ffdh_groups)
_tls_named_groups.update(_tls_named_curves)
_tls_named_groups.update(_tls_post_quantum_hybrid)


def _tls_named_groups_import(group, pubbytes):
Expand Down
Loading