
uses the source values from registers CA0 and CA1 for the key addition operation. The
KSx field specifies the shift for the key schedule operation to update the values in CA0
and CA1. The following table defines the specific shift function performed based on the
KSx field.
Table 15-6. Key shift function codes
KSx code
KSx define
Shift function
0
KSL1
Left 1
1
KSL2
Left 2
2
KSR1
Right 1
3
KSR2
Right 2
15.6.3.18 DES Key setup (DESK)
The DESK command performs the initial key transformation, permuted choice 1, defined
by the DES algorithm on CA0 and CA1 with CA0 containing bits 1–32 of the key and
CA1 containing bits 33–64 of the key
. If the DC bit is set, no shift operation performs
and the values C
0
and D
0
store back to CA0 and CA1, respectively. The DC bit must be
set for decrypt operations. If the DC bit is not set, a left shift by one also occurs and the
values C
1
and D
1
store back to CA0 and CA1, respectively. The DC bit should be cleared
for encrypt operations. If the CP bit is set and a key parity error is detected, CASR[DPE]
bit is set; otherwise, it is cleared.
15.6.3.19 Hash Function (HASH)
The HASH command performs a hashing operation on a set of registers and adds that
result to the value in CAA and stores the result in CAA. The specific hash function
performed is based on the HFx field as defined in the table below.
This table uses the following terms:
• ROTR
n
(CAx): rotate CAx register right n times
• SHR
n
(CAx): shift CAx register right n times
Table 15-7. Hash Function codes
HFx code
HFx define
Hash Function
Hash logic
0
HFF
MD5 F()
(CA1 & CA2) | (CA1 & CA3)
1
HFG
MD5 G()
(CA1 & CA3) | (CA2 & CA3)
Table continues on the next page...
1. The DES algorithm numbers the most significant bit of a block as bit 1 and the least significant as bit 64.
Chapter 15 Cryptographic Acceleration Unit (CAU)
K32 L2A Reference Manual, Rev. 2, 01/2020
NXP Semiconductors
339
Содержание K32 L2A Series
Страница 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Страница 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Страница 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Страница 146: ...Module operation in low power modes K32 L2A Reference Manual Rev 2 01 2020 146 NXP Semiconductors...
Страница 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Страница 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Страница 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Страница 322: ...Kinetis Bootloader Status Error Codes K32 L2A Reference Manual Rev 2 01 2020 322 NXP Semiconductors...
Страница 344: ...Application initialization information K32 L2A Reference Manual Rev 2 01 2020 344 NXP Semiconductors...
Страница 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Страница 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Страница 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Страница 602: ...Initialization and application information K32 L2A Reference Manual Rev 2 01 2020 602 NXP Semiconductors...
Страница 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Страница 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Страница 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Страница 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Страница 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Страница 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Страница 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Страница 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Страница 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Страница 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Страница 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Страница 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...
Страница 1344: ...USB Voltage Regulator Module Signal Descriptions K32 L2A Reference Manual Rev 2 01 2020 1344 NXP Semiconductors...
Страница 1356: ...Initialization Application Information K32 L2A Reference Manual Rev 2 01 2020 1356 NXP Semiconductors...