scapy.layers.tls.crypto.compression

TLS compression.

class scapy.layers.tls.crypto.compression.Comp_Deflate

Bases: scapy.layers.tls.crypto.compression._GenericComp

DEFLATE algorithm, specified for TLS by RFC 3749.

compress(s)
decompress(s)
name = 'deflate'
val = 1
class scapy.layers.tls.crypto.compression.Comp_LZS

Bases: scapy.layers.tls.crypto.compression._GenericComp

Lempel-Zic-Stac (LZS) algorithm, specified for TLS by RFC 3943. XXX No support for now.

compress(s)
decompress(s)
name = 'LZS'
val = 64
class scapy.layers.tls.crypto.compression.Comp_NULL

Bases: scapy.layers.tls.crypto.compression._GenericComp

The default and advised compression method for TLS: doing nothing.

compress(s)
decompress(s)
name = 'null'
val = 0