Public Member Functions
wolfcrypt.hashes._Hash Class Reference
Inheritance diagram for wolfcrypt.hashes._Hash:
wolfcrypt.hashes._Hmac wolfcrypt.hashes.Sha wolfcrypt.hashes.Sha256 wolfcrypt.hashes.Sha384 wolfcrypt.hashes.Sha512 wolfcrypt.hashes.HmacSha wolfcrypt.hashes.HmacSha256 wolfcrypt.hashes.HmacSha384 wolfcrypt.hashes.HmacSha512

Public Member Functions

def __init__ (self, string=None)
 
def new (cls, string=None)
 
def copy (self)
 
def update (self, string)
 
def digest (self)
 
def hexdigest (self)
 

Detailed Description

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

Member Function Documentation

◆ copy()

def wolfcrypt.hashes._Hash.copy (   self)
Returns a separate copy of this hashing object. An update
to this copy won't affect the original object.

◆ digest()

def wolfcrypt.hashes._Hash.digest (   self)
Returns the hash value of this hashing object as a string
containing 8-bit data. The object is not altered in any
way by this function; you can continue updating the object
after calling this function.

◆ hexdigest()

def wolfcrypt.hashes._Hash.hexdigest (   self)
Returns the hash value of this hashing object as a string
containing hexadecimal digits. Lowercase letters are used
for the digits 'a' through 'f'. Like the .digest() method,
this method doesn't alter the object.

◆ new()

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

◆ update()

def wolfcrypt.hashes._Hash.update (   self,
  string 
)
Hashes **string** into the current state of the hashing
object. update() can be called any number of times during
a hashing object's lifetime.