Download 88F5182 User Manual - Technologic Systems

Transcript
Cryptographic Engines and Security Accelerator
Cryptographic Engines Operation
8.
Read keys and IV.
It is possible to read the key values and IV value at any time by accessing the appropriate
registers. In chain modes (CBC), the IV register is changed by the machine at the end of every
DES calculation cycle. In this situation, the IV register is loaded with the calculation result, so it
should have the same value as the DES Data Out register (see Table 466 on page 452 and
Table 467 on page 453).
Figure 30 illustrates the typical DES/3DES packet encryption flow.
Figure 30: Typical DES/3DES Packet Encryption Flow
No
Is termination bit set?
Yes
Read engine result
Hi register before Lo
Write Des operation mode
Is
termination bit set
(for pipeline: is
readallow
bit set?)
Write Key0 register (for
3DES Key1 and Key2 are
also recommended)
Write Init Value
(relevant for CBC mode
only)
Yes
No
End of Packet ?
Write Next data block
Write Data Block (64 bits)
or Two Data Blocks
(pipeline mode only)
Read Engine Result
Hi register before Low
No
Is
termination bit set
(for pipeline: is
readallow
bit set?)
Yes
No
Is Alltermination bit set?
Yes
Yes
Write Next data block
Read engine result
Hi register before Lo for
pipeline mode
DES engine finished
11.1.3
AES128 Encryption
The AES128 Encryption engine complies with the AES standard, as described in the FIPS standard.
This engine performs encryption only. Decryption is performed by the AES128 Decryption engine.
Copyright © 2008 Marvell
April 29, 2008, Preliminary
Doc. No. MV-S103345-01 Rev. C
Document Classification: Proprietary Information
Page 143