forked from linux4sam/at91bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.in.secure
163 lines (127 loc) · 3.26 KB
/
Config.in.secure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# Copyright (C) 2006 Microchip Technology Inc. and its subsidiaries
#
# SPDX-License-Identifier: MIT
config SECURE
bool "Secure Mode support"
default n
depends on CPU_HAS_AES
select AES
help
Decrypt and check the signature of the application file
menu "Secure Mode Options"
depends on SECURE
choice
prompt "Key Size"
default AES_KEY_SIZE_256
help
Select the length of the cipher and CMAC keys
config AES_KEY_SIZE_128
bool "AES-128"
config AES_KEY_SIZE_192
bool "AES-192"
config AES_KEY_SIZE_256
bool "AES-256"
endchoice
comment "Big-endian order: Word0 is the most significant word"
config AES_CIPHER_KEY_WORD0
hex "Cipher Key Word0"
default "0x00000000"
config AES_CIPHER_KEY_WORD1
hex "Cipher Key Word1"
default "0x00000000"
config AES_CIPHER_KEY_WORD2
hex "Cipher Key Word2"
default "0x00000000"
config AES_CIPHER_KEY_WORD3
hex "Cipher Key Word3"
default "0x00000000"
config AES_CIPHER_KEY_WORD4
hex "Cipher Key Word4"
default "0x00000000"
depends on (AES_KEY_SIZE_192 || AES_KEY_SIZE_256)
config AES_CIPHER_KEY_WORD5
hex "Cipher Key Word5"
default "0x00000000"
depends on (AES_KEY_SIZE_192 || AES_KEY_SIZE_256)
config AES_CIPHER_KEY_WORD6
hex "Cipher Key Word6"
default "0x00000000"
depends on AES_KEY_SIZE_256
config AES_CIPHER_KEY_WORD7
hex "Cipher Key Word7"
default "0x00000000"
depends on AES_KEY_SIZE_256
config AES_IV_WORD0
hex "Initialization Vector Word0"
default "0x00000000"
config AES_IV_WORD1
hex "Initialization Vector Word1"
default "0x00000000"
config AES_IV_WORD2
hex "Initialization Vector Word2"
default "0x00000000"
config AES_IV_WORD3
hex "Initialization Vector Word3"
default "0x00000000"
config AES_CMAC_KEY_WORD0
hex "CMAC Key Word0"
default "0x00000000"
config AES_CMAC_KEY_WORD1
hex "CMAC Key Word1"
default "0x00000000"
config AES_CMAC_KEY_WORD2
hex "CMAC Key Word2"
default "0x00000000"
config AES_CMAC_KEY_WORD3
hex "CMAC Key Word3"
default "0x00000000"
config AES_CMAC_KEY_WORD4
hex "CMAC Key Word4"
default "0x00000000"
depends on (AES_KEY_SIZE_192 || AES_KEY_SIZE_256)
config AES_CMAC_KEY_WORD5
hex "CMAC Key Word5"
default "0x00000000"
depends on (AES_KEY_SIZE_192 || AES_KEY_SIZE_256)
config AES_CMAC_KEY_WORD6
hex "CMAC Key Word6"
default "0x00000000"
depends on AES_KEY_SIZE_256
config AES_CMAC_KEY_WORD7
hex "CMAC Key Word7"
default "0x00000000"
depends on AES_KEY_SIZE_256
config CPU_HAS_OCMS
bool
default n
choice
prompt "Off-Chip Memory Scrambling (OCMS) support"
depends on CPU_HAS_OCMS
depends on DDRC
default OCMS_OFF
config OCMS_OFF
bool "OFF"
help
No scrambling of the the data bus to external memories.
Data exchanged between the CPU and an off-chip memory can be
recovered by analyzing the package pin levels.
config OCMS_STATIC
bool "ON - compile-time key"
help
Singe key passed to the bootstrap during compilation.
Complements the secure mode features.
Should be used only in secure mode, when the bootstrap is encrypted.
endchoice
config OCMS_KEY1
depends on OCMS_STATIC
hex "OCMS Key 1"
default "0x00000000"
help
First 32 bits of the OCMS key, written into MPDDRC_OCMS_KEY1 reg.
config OCMS_KEY2
depends on OCMS_STATIC
hex "OCMS Key 2"
default "0x00000000"
help
Second 32 bits of the OCMS key, written into MPDDRC_OCMS_KEY2 reg.
endmenu