Maxim-Integrated /max32520 /CTB /HASH_CTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as HASH_CTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (nop)INIT 0 (dis)XOR 0 (dis)HASH0 (noEffect)LAST

XOR=dis, HASH=dis, INIT=nop, LAST=noEffect

Description

HASH Control Register.

Fields

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.

Links

()