SPRUJB6B November 2024 – May 2025 AM2612
SHA/MD5 polling mode: Figure 7-121 shows the SHA/MD5 polling mode. SHA/MD5 polling mode uses the following registers: S_IRQSTATUS, S_DATAn_IN, S_ODIGEST_A, S_DIGEST_COUNT, and S_LENGTH.
Figure 7-121 SHA/MD5 Polling ModeSHA/MD5 interrupt mode: the procedure in Table 7-156 configures the SHA/MD5 module to work in interrupt-based mode. (For the interrupt subroutine, see Section 4.4.5.1.4.1.5.1.)
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Enable the interrupt request to the processor. | S_SYSCONFIG[2] PIT_EN | 0x1 |
| Load the message length; this is the trigger to start processing. | S_LENGTH[31:0] LENGTH | – |
SHA/MD5 DMA mode: the procedure in Table 7-157 configures the SHA/MD5 module to work in DMA-based mode.
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Enable the DMA request to the CDMA controller. | S_SYSCONFIG[3] PDMA_EN | 0x1 |
| Load the message length; this is the trigger to start processing. | S_LENGTH[31:0] LENGTH | – |