Cryp Key Registers (Cryp_K0 - ST STM32F40 Series Reference Manual

Hide thumbs Also See for STM32F40 Series:
Table of Contents

Advertisement

RM0090
20.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
k
k
...k
0
1
2
follows:
for AES-128: k
for AES-192: k
for AES-256: k
In any case b
CRYP_K0LR (address offset: 0x20)
31
30
29
b255
b254
b253
b252
w
w
w
15
14
13
b239
b238
b237
b236
w
w
w
CRYP_K0RR (address offset: 0x24)
31
30
29
b223
b222
b221
b220
w
w
w
15
14
13
b207
b206
b205
b204
w
w
w
CRYP_K1LR (address offset: 0x28)
31
30
29
k1.1
k1.2
k1.3
b191
b190
b189
b188
w
w
w
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
(k
being the leftmost bit). The AES key is entered into the registers as
127/191/255
0
..k
corresponds to b
0
127
..k
corresponds to b
0
191
..k
corresponds to b
0
255
is the rightmost bit.
0
28
27
26
25
b251
b250
b249
w
w
w
w
12
11
10
9
b235
b234
b233
w
w
w
w
28
27
26
25
b219
b218
b217
w
w
w
w
12
11
10
9
b203
b202
b201
w
w
w
w
28
27
26
25
k1.4
k1.5
k1.6
k1.7
b187
b186
b185
w
w
w
w
Doc ID 018909 Rev 4
..b
(b
..b
127
0
255
..b
(b
..b
191
0
255
..b
.
255
0
24
23
22
21
b248
b247
b246
b245
w
w
w
w
8
7
6
5
b232
b231
b230
b229
w
w
w
w
24
23
22
21
b216
b215
b214
b213
w
w
w
w
8
7
6
5
b200
b199
b198
b197
w
w
w
w
24
23
22
21
k1.8
k1.9
k1.10
k1.11
b184
b183
b182
b181
w
w
w
w
Cryptographic processor (CRYP)
are not used),
128
are not used),
192
20
19
18
b244
b243
b242
w
w
w
4
3
2
b228
b227
b226
w
w
w
20
19
18
b212
b211
b210
w
w
w
4
3
2
b196
b195
b194
w
w
w
20
19
18
k1.12
k1.13
k1.14
b180
b179
b178
w
w
w
17
16
b241
b240
w
w
1
0
b225
b224
w
w
17
16
b209
b208
w
w
1
0
b193
b192
w
w
17
16
k1.15
k1.16
b177
b176
w
w
586/1422

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F40 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Stm32f41 seriesStm32f42 seriesStm32f43 seriesRm0090

Table of Contents

Save PDF