My Project
Loading...
Searching...
No Matches
wolfcrypt.hashes._Hash Class Reference
Inheritance diagram for wolfcrypt.hashes._Hash:
wolfcrypt.hashes.Sha wolfcrypt.hashes.Sha256 wolfcrypt.hashes.Sha384 wolfcrypt.hashes.Sha512 wolfcrypt.hashes._Hmac wolfcrypt.hashes.HmacSha wolfcrypt.hashes.HmacSha256 wolfcrypt.hashes.HmacSha384 wolfcrypt.hashes.HmacSha512

Public Member Functions

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

Protected Attributes

 _native_object = _ffi.new(self._native_type)
 
 _native_size
 

Detailed Description

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

Member Function Documentation

◆ copy()

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()

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()

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()

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.

Reimplemented in wolfcrypt.hashes._Hmac.

◆ update()

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.