Public Member Functions | Static Public Attributes
wolfcrypt.hashes._Hmac Class Reference
Inheritance diagram for wolfcrypt.hashes._Hmac:
wolfcrypt.hashes._Hash wolfcrypt.hashes.HmacSha wolfcrypt.hashes.HmacSha256 wolfcrypt.hashes.HmacSha384 wolfcrypt.hashes.HmacSha512

Public Member Functions

def __init__ (self, key, string=None)
 
def new (cls, key, string=None)
 
- Public Member Functions inherited from wolfcrypt.hashes._Hash
def __init__ (self, string=None)
 
def new (cls, string=None)
 
def copy (self)
 
def update (self, string)
 
def digest (self)
 
def hexdigest (self)
 

Static Public Attributes

 digest_size = None
 

Detailed Description

A **PEP 247: Cryptographic Hash Functions** compliant
**Keyed Hash Function Interface**.

Member Function Documentation

◆ new()

def wolfcrypt.hashes._Hmac.new (   cls,
  key,
  string = None 
)
Creates a new hashing object and returns it. **key** is
a required parameter containing a string giving the key
to use. The optional **string** parameter, if supplied,
will be immediately hashed into the object's starting
state, as if obj.update(string) was called.