NamedGroup
- class mtf.network_port.tls.tls_dtls_config.NamedGroup
Enum to represent NamedGroup with corresponding Java enum values.
Each NamedGroup enum member contains: - byte_value: A byte representation of the group. - group_name: The name of the group as a string. - group_size: The size of the group, if applicable.
This enum interacts with the de.rub.nds.tlsattacker.core.constants.NamedGroup Java enum via JPype and can dynamically load the Java enum value corresponding to the Python enum member.
- SECT163K1 = (b'\x00\x01', 'sect163k1', 163)
- SECT163R1 = (b'\x00\x02', 'sect163r1', 163)
- SECT163R2 = (b'\x00\x03', 'sect163r2', 163)
- SECT193R1 = (b'\x00\x04', 'sect193r1', 193)
- SECT193R2 = (b'\x00\x05', 'sect193r2', 193)
- SECT233K1 = (b'\x00\x06', 'sect233k1', 233)
- SECT233R1 = (b'\x00\x07', 'sect233r1', 233)
- SECT239K1 = (b'\x00\x08', 'sect239k1', 239)
- SECT283K1 = (b'\x00\t', 'sect283k1', 283)
- SECT283R1 = (b'\x00\n', 'sect283r1', 283)
- SECT409K1 = (b'\x00\x0b', 'sect409k1', 409)
- SECT409R1 = (b'\x00\x0c', 'sect409r1', 409)
- SECT571K1 = (b'\x00\r', 'sect571k1', 571)
- SECT571R1 = (b'\x00\x0e', 'sect571r1', 571)
- SECP160K1 = (b'\x00\x0f', 'secp160k1', 160)
- SECP160R1 = (b'\x00\x10', 'secp160r1', 160)
- SECP160R2 = (b'\x00\x11', 'secp160r2', 160)
- SECP192K1 = (b'\x00\x12', 'secp192k1', 192)
- SECP192R1 = (b'\x00\x13', 'secp192r1', 192)
- SECP224K1 = (b'\x00\x14', 'secp224k1', 224)
- SECP224R1 = (b'\x00\x15', 'secp224r1', 224)
- SECP256K1 = (b'\x00\x16', 'secp256k1', 256)
- SECP256R1 = (b'\x00\x17', 'secp256r1', 256)
- SECP384R1 = (b'\x00\x18', 'secp384r1', 384)
- SECP521R1 = (b'\x00\x19', 'secp521r1', 521)
- BRAINPOOLP256R1 = (b'\x00\x1a', 'brainpoolP256r1', 256)
- BRAINPOOLP384R1 = (b'\x00\x1b', 'brainpoolP384r1', 384)
- BRAINPOOLP512R1 = (b'\x00\x1c', 'brainpoolP512r1', 512)
- ECDH_X25519 = (b'\x00\x1d', 'ecdh_X25519', 256)
- ECDH_X448 = (b'\x00\x1e', 'ecdh_X448', 448)
- CURVE_SM2 = (b'\x00)', 'sm2p256v1', 256)
- FFDHE2048 = (b'\x01\x00', 'FFDHE2048', 2048)
- FFDHE3072 = (b'\x01\x01', 'FFDHE3072', 3072)
- FFDHE4096 = (b'\x01\x02', 'FFDHE4096', 4096)
- FFDHE6144 = (b'\x01\x03', 'FFDHE6144', 6144)
- FFDHE8192 = (b'\x01\x04', 'FFDHE8192', 8192)
- EXPLICIT_PRIME = (b'\xff\x01', 'UNDEFINED', 0)
- EXPLICIT_CHAR2 = (b'\xff\x02', 'UNDEFINED', 0)
- GREASE_00 = (b'\n\n', 'GREASE', None)
- GREASE_01 = (b'\x1a\x1a', 'GREASE', None)
- GREASE_02 = (b'**', 'GREASE', None)
- GREASE_03 = (b'::', 'GREASE', None)
- GREASE_04 = (b'JJ', 'GREASE', None)
- GREASE_05 = (b'ZZ', 'GREASE', None)
- GREASE_06 = (b'jj', 'GREASE', None)
- GREASE_07 = (b'zz', 'GREASE', None)
- GREASE_08 = (b'\x8a\x8a', 'GREASE', None)
- GREASE_09 = (b'\x9a\x9a', 'GREASE', None)
- GREASE_10 = (b'\xaa\xaa', 'GREASE', None)
- GREASE_11 = (b'\xba\xba', 'GREASE', None)
- GREASE_12 = (b'\xca\xca', 'GREASE', None)
- GREASE_13 = (b'\xda\xda', 'GREASE', None)
- GREASE_14 = (b'\xea\xea', 'GREASE', None)
- GREASE_15 = (b'\xfa\xfa', 'GREASE', None)
- __init__(byte_value, group_name, group_size)
Initializes a NamedGroup enum member.
Parameters: - byte_value: Byte representation of the group. - group_name: String name of the group. - group_size: Size of the group (or None for GREASE values).
- load_enum()
Dynamically loads and returns the corresponding Java enum value for the current NamedGroup enum member.
Uses JPype to load the Java class de.rub.nds.tlsattacker.core.constants.NamedGroup and returns the corresponding enum value based on the group_name.
Returns: - The corresponding Java NamedGroup enum value.