42.6.3.1.1 Hashkey Generation
- Configure CTRLA register as follows:
- CTRLA.STARTMODE as Manual (Auto for DMAC)
- CTRLA.CIPHER as Encryption
- CTRLA.KEYSIZE as per the key used
- CTRLA.AESMODE as ECB
- CTRLA.CTYPE as per the countermeasures required.
- Set CTRLA.ENABLE
- Write zero to CIPLEN reg.
- Write the key in KEYWORD register
- Write the zeros to INDATA reg
- Set CTRLB.Start.
- Wait for INTFLAG.ENCCMP to be set
- AES Hardware generates Hash Subkey in HASHKEY register.