scapy.layers.tls.crypto.hash

Hash classes.

class scapy.layers.tls.crypto.hash.Hash_MD4[source]

Bases: _GenericHash

digest(tbd)[source]
hash_cls[source]

alias of MD4

hash_len = 16
name = 'md4'
class scapy.layers.tls.crypto.hash.Hash_MD5[source]

Bases: _GenericHash

hash_cls[source]

alias of MD5

hash_len = 16
name = 'md5'
class scapy.layers.tls.crypto.hash.Hash_MD5SHA1[source]

Bases: _GenericHash

hash_cls[source]

alias of MD5_SHA1

hash_len = 36
name = 'md5sha1'
class scapy.layers.tls.crypto.hash.Hash_NULL[source]

Bases: _GenericHash

digest(tbd)[source]
hash_len = 0
name = 'null'
class scapy.layers.tls.crypto.hash.Hash_SHA[source]

Bases: _GenericHash

hash_cls[source]

alias of SHA1

hash_len = 20
name = 'sha'
class scapy.layers.tls.crypto.hash.Hash_SHA224[source]

Bases: _GenericHash

hash_cls[source]

alias of SHA224

hash_len = 28
name = 'sha224'
class scapy.layers.tls.crypto.hash.Hash_SHA256[source]

Bases: _GenericHash

hash_cls[source]

alias of SHA256

hash_len = 32
name = 'sha256'
class scapy.layers.tls.crypto.hash.Hash_SHA384[source]

Bases: _GenericHash

hash_cls[source]

alias of SHA384

hash_len = 48
name = 'sha384'
class scapy.layers.tls.crypto.hash.Hash_SHA512[source]

Bases: _GenericHash

hash_cls[source]

alias of SHA512

hash_len = 64
name = 'sha512'
class scapy.layers.tls.crypto.hash.Hash_SHAKE256(digest_size: int)[source]

Bases: _GenericHash

digest(tbd)[source]
hash_cls[source]

alias of SHAKE256

name = 'shake256'
class scapy.layers.tls.crypto.hash.MD5_SHA1[source]

Bases: HashAlgorithm

block_size = 64
digest_size = 36
name = 'md5-sha1'