
|
My Project
|
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 | |
A **PEP 247: Cryptographic Hash Functions** compliant **Hash Function Interface**.
| wolfcrypt.hashes._Hash.copy | ( | self | ) |
Returns a separate copy of this hashing object. An update to this copy won't affect the original object.
| 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.
| 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.
| 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.
| 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.