scapy.layers.tls.crypto.hash

Hash classes.

class scapy.layers.tls.crypto.hash.Hash_MD5

Bases: scapy.layers.tls.crypto.hash._GenericHash

hash_cls()

Returns a md5 hash object; optionally initialized with a string

hash_len = 16
name = 'MD5'
class scapy.layers.tls.crypto.hash.Hash_NULL

Bases: scapy.layers.tls.crypto.hash._GenericHash

digest(tbd)
hash_len = 0
name = 'NULL'
class scapy.layers.tls.crypto.hash.Hash_SHA

Bases: scapy.layers.tls.crypto.hash._GenericHash

hash_cls()

Returns a sha1 hash object; optionally initialized with a string

hash_len = 20
name = 'SHA'
class scapy.layers.tls.crypto.hash.Hash_SHA224

Bases: scapy.layers.tls.crypto.hash._GenericHash

hash_cls()

Returns a sha224 hash object; optionally initialized with a string

hash_len = 28
name = 'SHA224'
class scapy.layers.tls.crypto.hash.Hash_SHA256

Bases: scapy.layers.tls.crypto.hash._GenericHash

hash_cls()

Returns a sha256 hash object; optionally initialized with a string

hash_len = 32
name = 'SHA256'
class scapy.layers.tls.crypto.hash.Hash_SHA384

Bases: scapy.layers.tls.crypto.hash._GenericHash

hash_cls()

Returns a sha384 hash object; optionally initialized with a string

hash_len = 48
name = 'SHA384'
class scapy.layers.tls.crypto.hash.Hash_SHA512

Bases: scapy.layers.tls.crypto.hash._GenericHash

hash_cls()

Returns a sha512 hash object; optionally initialized with a string

hash_len = 64
name = 'SHA512'