Changes

325 bytes added ,  09:53, 20 April 2015
AES_KEY register note
Line 198: Line 198:  
This register specifies the message authentication code (MAC) for use in CCM mode.
 
This register specifies the message authentication code (MAC) for use in CCM mode.
    +
== AES_KEY0/1/2/3 ==
 +
{| class="wikitable" border="1"
 +
!  Byte
 +
!  Description
 +
|-
 +
| 0-15
 +
| Normalkey
 +
|-
 +
| 16-31
 +
| KeyX
 +
|-
 +
| 32-47
 +
| KeyY
 +
|-}
 +
 +
These registers are the same as they were on TWL, and are likely preserved for compatibility reasons. Writing the final word of the normalkey or keyY will update the keyslot's contents.
 
== Endianness and word order ==
 
== Endianness and word order ==
 
When writing to the AES_CTR or AES_MAC register, the hardware will process the written data according to the current input endianness specified in AES_CNT. However, the current specified input word order will not be honored for this register, and always defaults to reversed word order. Therefore, for normal word order, the reversal must be carried out manually if required.
 
When writing to the AES_CTR or AES_MAC register, the hardware will process the written data according to the current input endianness specified in AES_CNT. However, the current specified input word order will not be honored for this register, and always defaults to reversed word order. Therefore, for normal word order, the reversal must be carried out manually if required.
96

edits