DocID018909 Rev 11
749/1731
RM0090
Cryptographic processor (CRYP)
757
23.6.10 CRYP key registers (CRYP_K0...3(L/R)R)
Address offset: 0x20 to 0x3C
Reset value: 0x0000 0000
These registers contain the cryptographic keys.
In the TDES mode, keys are 64-bit binary values (number from left to right, that is the
leftmost bit is bit 1), named K1, K2 and K3 (K0 is not used), each key consists of 56
information bits and 8 parity bits. The parity bits are reserved for error detection purposes
and are not used by the current block. Thus, bits 8, 16, 24, 32, 40, 48, 56 and 64 of each 64-
bit key value Kx[1:64] are not used.
In the AES mode, the key is considered as a single 128-, 192- or 256-bit long bit sequence,
k
0
k
1
k
2
...k
127/191/255
(k
0
being the leftmost bit). The AES key is entered into the registers as
follows:
•
for AES-128: k
0
..k
127
corresponds to b
127
..b
0
(b
255
..b
128
are not used),
•
for AES-192: k
0
..k
191
corresponds to b
191
..b
0
(b
255
..b
192
are not used),
•
for AES-256: k
0
..k
255
corresponds to b
255
..b
0
.
In any case b
0
is the rightmost bit.
CRYP_K0LR (address offset: 0x20)
CRYP_K0RR (address offset: 0x24)
Bits 31:2 Reserved, must be kept at reset value
Bit 1
OUTMIS:
Output FIFO service masked interrupt status
Gives the interrupt state after masking of the output FIFO service interrupt.
0: Interrupt not pending
1: Interrupt pending
Bit 0
INMIS:
Input FIFO service masked interrupt status
Gives the interrupt state after masking of the input FIFO service interrupt.
0: Interrupt not pending
1: Interrupt pending when CRYPEN = 1
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
b255
b254
b253
b252
b251
b250
b249
b248
b247
b246
b245
b244
b243
b242
b241
b240
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
b239
b238
b237
b236
b235
b234
b233
b232
b231
b230
b229
b228
b227
b226
b225
b224
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
b223
b222
b221
b220
b219
b218
b217
b216
b215
b214
b213
b212
b211
b210
b209
b208
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
b207
b206
b205
b204
b203
b202
b201
b200
b199
b198
b197
b196
b195
b194
b193
b192
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w