INIT=nop, XOR=dis, LAST=noEffect, HASH=dis
HASH Control Register.
INIT | Initialize. Initializes hash registers with standard constants. 0 (nop): No operation/complete. 1 (start): Start operation. |
XOR | XOR data with IV from cipher block. Useful when calculating HMAC to XOR the input pad and output pad. 0 (dis): Disable. 1 (en): Enable. |
HASH | Hash function selection. 0 (dis): Disabled. 1 (sha1): SHA-1. 2 (sha224): SHA 224. 3 (sha256): SHA 256. 4 (sha384): SHA 384. 5 (sha512): SHA 512. |
LAST | Last Message Bit. This bit shall be set along with the HASH_MSG_SZ register prior to hashing the last 512 or 1024-bit block of the message data. It will allow automatic preprocessing of the last message padding, which includes the trailing bit 1, followed by the respective number of zero bits for the last block size and finally the message length represented in bytes. The bit will be automatically cleared at the same time the HASH DONE is set, designating the completion of the last message hash. 0 (noEffect): No Effect. 1 (lastMsgData): Last Message Data. |