Download MPC185UM: MPC185 Security Co

Transcript
Freescale Semiconductor, Inc.
Advanced Encryption Standard Execution Units (AESU)
IV1 holds the least significant bytes of the initialization vector
(bytes 1-8).
IV2 holds the most significant bytes of the initialization vector
(bytes 9-16).
The IV must be written prior to the message data. If the IV registers are written during
message processing, or the CBC mode bit is not set, a context error will be generated.
Freescale Semiconductor, Inc...
The IV registers may only be read after processing has completed, as indicated by the
assertion of Interrupt_Done DONE in the AESU status register as shown in Section 4.6.6,
“AESU Status Register”. If the IV registers are read prior to assertion of Interrupt_Done,
an early read error will be generated.
The IV registers must be read when changing context and restored to resume processing an
interrupted message (CBC mode only).
4.6.9.3
Context for Counter Mode
In counter mode, a random 128-bit initial counter value is incremented modulo 2n with each
block processed. The modulus size can be set between 28 through 2128, by powers of 8. The
running counter is encrypted and eXclusive-ORed with the plaintext to derive the
ciphertext, or with the ciphertext to recover the plaintext.
In CTR mode, the block counter is incremented modulo 2M. The value of M is specified by
writing to Context Register 3 as described in Table 4-32
Chapter 4. Execution Units
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
For More Information On This Product,
Go to: www.freescale.com