scapy.layers.tls.crypto.h_mac

HMAC classes.

exception scapy.layers.tls.crypto.h_mac.HMACError

Bases: Exception

Raised when HMAC verification fails.

class scapy.layers.tls.crypto.h_mac.Hmac_MD5(key=None)

Bases: scapy.layers.tls.crypto.h_mac._GenericHMAC

hash_alg

alias of scapy.layers.tls.crypto.hash.Hash_MD5

hmac_len = 16
key_len = 16
name = 'HMAC-MD5'
class scapy.layers.tls.crypto.h_mac.Hmac_NULL(key=None)

Bases: scapy.layers.tls.crypto.h_mac._GenericHMAC

digest(tbd)
digest_sslv3(tbd)
hash_alg

alias of scapy.layers.tls.crypto.hash.Hash_NULL

hmac_len = 0
key_len = 0
name = 'HMAC-NULL'
class scapy.layers.tls.crypto.h_mac.Hmac_SHA(key=None)

Bases: scapy.layers.tls.crypto.h_mac._GenericHMAC

hash_alg

alias of scapy.layers.tls.crypto.hash.Hash_SHA

hmac_len = 20
key_len = 20
name = 'HMAC-SHA'
class scapy.layers.tls.crypto.h_mac.Hmac_SHA224(key=None)

Bases: scapy.layers.tls.crypto.h_mac._GenericHMAC

hash_alg

alias of scapy.layers.tls.crypto.hash.Hash_SHA224

hmac_len = 28
key_len = 28
name = 'HMAC-SHA224'
class scapy.layers.tls.crypto.h_mac.Hmac_SHA256(key=None)

Bases: scapy.layers.tls.crypto.h_mac._GenericHMAC

hash_alg

alias of scapy.layers.tls.crypto.hash.Hash_SHA256

hmac_len = 32
key_len = 32
name = 'HMAC-SHA256'
class scapy.layers.tls.crypto.h_mac.Hmac_SHA384(key=None)

Bases: scapy.layers.tls.crypto.h_mac._GenericHMAC

hash_alg

alias of scapy.layers.tls.crypto.hash.Hash_SHA384

hmac_len = 48
key_len = 48
name = 'HMAC-SHA384'
class scapy.layers.tls.crypto.h_mac.Hmac_SHA512(key=None)

Bases: scapy.layers.tls.crypto.h_mac._GenericHMAC

hash_alg

alias of scapy.layers.tls.crypto.hash.Hash_SHA512

hmac_len = 64
key_len = 64
name = 'HMAC-SHA512'