
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) |
A **PEP 247: Cryptographic Hash Functions** compliant **Hash Function Interface**.
| 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.
| 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.
| 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.
| 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.
| 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.