The following list describes the requirements for initializing the SHAMD5 and associated modules:
- Enable the clock to cryptography module (that includes AES) by setting the R0 bit in the CRYPTOCLKEN register in the application reset and clock management module (physical address: 0x4402 50B8)
- Configure the SHA µDMA channels for Context In, Context Out, Data In, or Data Out by programming the appropriate encoding value in the DMA Channel Map Select n (DMA_CHMAPn) register in the µDMA module.
- If the SHA channels are configured in the µDMA, enable the required SHA DMA requests by programming bits [9:5] of the SHAMD5_SYSCONFIG register, in addition to the completion interrupts in the SHA DMA Interrupt Mask (DTHE_SHA_IM) register, CRC, and cryptographic modules offset 0x020.