SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
SHA/MD5 polling mode: Figure 7-109 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.
SHA/MD5 interrupt mode: the procedure in Table 7-139 configures the SHA/MD5 module to work in interrupt-based mode. (For the interrupt subroutine, see Section 3.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-140 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 | – |