![Texas Instruments SimpleLink Ethernet MSP432E401Y Скачать руководство пользователя страница 1597](http://html1.mh-extra.com/html/texas-instruments/simplelink-ethernet-msp432e401y/simplelink-ethernet-msp432e401y_technical-reference-manual_10955781597.webp)
START
Write the next 64-byte data block
SHA_S_DA TA_i_IN[31:0] = 0x-
END
No
Yes
No
Is the input buffer ready
to receive the next 64-byte data block?
SHA_S_IRQSTATUS[1] INPUT_READY
== 1
Yes
Intermediate result ready?
SHA_S_IRQSTATUS[0]
OUTPUT_READY == 1
Are there more 64-byte
data blocks to be processed?
SHA_S_DIGEST_COUNT[31:0] COUNT
< SHA_S_LENGTH[31:0] LENGTH
Read the result
result = SHA_S_DIGEST_A to
SHA_S_DIGEST_E (for SHA-1)
No
Yes
SHA/MD5 Functional Description
1597
SLAU723A – October 2017 – Revised October 2018
Copyright © 2017–2018, Texas Instruments Incorporated
SHA/MD5 Accelerator
25.1.7.1.3 Operational Modes Configuration
25.1.7.1.3.1 SHA/MD5 Polling Mode
shows the SHA/MD5 polling mode. SHA/MD5 polling mode uses the following registers.
•
SHA_IRQSTATUS
•
SHA_DATA_n_IN
•
SHA_ODIGEST_A
•
SHA_DIGEST_COUNT
•
SHA_LENGTH
Figure 25-2. SHA/MD5 Polling Mode
25.1.7.1.3.2 SHA/MD5 Interrupt Mode
The following procedure is used to configure the SHA/MD5 module to work in the interrupt-based mode
(see
). For the interrupt subroutine, see
.
Table 25-10. Interrupt Mode
Step
Register / Bit Field / Programming
Model
Value
Enable the interrupt request to the Cortex-A8 MPU INTC.
SHA_SYSCONFIG[2] IT_EN
0x1
Load the message length; this is the trigger to start processing.
SHA_LENGTH[31:0] LENGTH
-