My Project
Loading...
Searching...
No Matches
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

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

Static Public Attributes

 digest_size = None
 

Protected Member Functions

 _init (self, type, key)
 
 _update (self, data)
 
 _final (self, obj, ret)
 

Protected Attributes

 _native_object = _ffi.new(self._native_type)
 
- Protected Attributes inherited from wolfcrypt.hashes._Hash
 _native_object = _ffi.new(self._native_type)
 
 _native_size
 

Static Protected Attributes

str _native_type = "Hmac *"
 
 _native_size = _ffi.sizeof("Hmac")
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

wolfcrypt.hashes._Hmac.__init__ ( self,
key,
string = None )

Reimplemented from wolfcrypt.hashes._Hash.

Member Function Documentation

◆ new()

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.

Reimplemented from wolfcrypt.hashes._Hash.