sha1 - W55MH32 hardware SHA1 hashing
This module implements the SHA1 algorithm using W55MH32’s hardware hashing.
This module implements binary data hashing algorithms. The exact inventory of available algorithms depends on a board. Among the algorithms which may be implemented:
SHA1 - A previous generation algorithm. Not recommended for new usages, but SHA1 is a part of number of Internet standards and existing applications, so boards targeting network connectivity and interoperability will try to provide this.
Constructors
- class sha1.sha1([data])
Create an SHA1 hasher object and optionally feed
datainto it.
Methods
- hash.update(data)
Feed more binary data into hash.
- hash.digest()
Return hash for all data passed through hash, as a bytes object. After this method is called, more data cannot be fed into the hash any longer.
- hash.hexdigest()
This method is NOT implemented. Use
binascii.hexlify(hash.digest())to achieve a similar effect.