![Texas Instruments SimpleLink Ethernet MSP432E401Y Скачать руководство пользователя страница 1606](http://html1.mh-extra.com/html/texas-instruments/simplelink-ethernet-msp432e401y/simplelink-ethernet-msp432e401y_technical-reference-manual_10955781606.webp)
SHA/MD5 Registers
1606
SLAU723A – October 2017 – Revised October 2018
Copyright © 2017–2018, Texas Instruments Incorporated
SHA/MD5 Accelerator
Table 25-17. SHA_MODE Register Field Descriptions (continued)
Bit
Field
Type
Reset
Description
4
CLOSE_HASH
R/W
0x0
Performs the padding, the Hash/HMAC will be 'closed' at the end of
the block, as per MD5/SHA-1/SHA-2 specification (that is,
appropriate padding is added), or no padding is done, allowing the
hash to be continued later.
However, if the Hash/HMAC is not closed, then the Block Length
must be a multiple of 64 bytes to ensure correct operation.
Auto cleared internally when hash closed.
0x0 = No padding, hash computation can be continued.
0x1 = Last packet will be padded.
3
ALGO_CONSTANT
R/W
0x0
The initial digest register will be overwritten with the algorithm
constants for the selected algorithm when hashing and the initial
digest count register will be reset to 0.
This will start a normal hash operation.
When continuing an existing hash or when performing an HMAC
operation, this register must be set to 0 and the intermediate/inner
digest or HMAC key and digest count need to be written to the
context input registers prior to writing SHA_MODE.
Auto cleared internally after first block processed.
0x0 = Use precalculated digest (from another operation)
0x1 = Use constants of the selected algorithm
2-0
ALGO
R/W
0x0
Hash Algorithm
0x0 = MD5
0x1 = reserved
0x2 = SHA-1
0x3 = reserved
0x4 = SHA-224
0x5 = reserved
0x6 = SHA-256
0x7 = reserved