8.2.4.1.5 SHA Algorithms
Hexmate implements secure hash algorithms (SHA). The selector values 10 and 11, select the SHA-2 and SHA-1 algorithms respectively.
The code to implement a SHA is more complex than other algorithms supported by Hexmate. Public-domain implementations of these algorithms are available for download from third-party websites, such as github.com/B-Con/crypto-algorithms.
Hexmate can generate a 160-bit (20 byte) wide SHA-1 hash, or a 256-bit (32 byte) wide version of the SHA-2 hash, referred to as SHA-256.
Here is how Hexmate might be used when, for example, a SHA256 hash value
is to be calculated over the address range 0x0 to 0x1FF. The result will be stored at a
starting address of 0x1000 in little endian
format.
-ck=0-1ff@1000g10w-256