File tree 2 files changed +36
-1
lines changed
2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
- echo %0 : Generate new secure keys for stm32-secure-patching-bootloader
3
+ echo %0 : Generate new secure keys for stm32-secure-patching-bootloader and Cortex-M0 (V6M) architecture devices
4
4
5
5
set _KEY_TOOL = ..\Tools\prepareimage.py
6
6
set _OUTPUT_DIR = %1
@@ -18,10 +18,14 @@ if NOT EXIST %_KEY_TOOL% (
18
18
19
19
set _CIPHER_KEY = Cipher_Key_AES_CBC.bin
20
20
set _SIGNING_KEY = Signing_PrivKey_ECC.txt
21
+ set _MACHINE_FILE = machine.txt
21
22
22
23
echo Making %_OUTPUT_DIR% /%_CIPHER_KEY%
23
24
python %_KEY_TOOL% keygen -k %_OUTPUT_DIR% \%_CIPHER_KEY% -t aes-cbc
24
25
25
26
echo Making %_OUTPUT_DIR% /%_SIGNING_KEY%
26
27
python %_KEY_TOOL% keygen -k %_OUTPUT_DIR% \%_SIGNING_KEY% -t ecdsa-p256
27
28
29
+ echo Making %_OUTPUT_DIR% /%_MACHINE_FILE%
30
+ echo V6M > %_OUTPUT_DIR% /%_MACHINE_FILE%
31
+
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+
3
+ echo %0 : Generate new secure keys for stm32-secure-patching-bootloader and Cortex-M3/M4/M7 (V7M and later) architecture devices
4
+
5
+ set _KEY_TOOL = ..\Tools\prepareimage.py
6
+ set _OUTPUT_DIR = %1
7
+
8
+ if [%_OUTPUT_DIR% ]== [] (
9
+ echo Please specify destination path to application Keys directory
10
+ goto :eof
11
+ )
12
+
13
+ if NOT EXIST %_KEY_TOOL% (
14
+ echo Key generation tool is not found %_KEY_TOOL%
15
+ goto :eof
16
+ )
17
+
18
+
19
+ set _CIPHER_KEY = Cipher_Key_AES_CBC.bin
20
+ set _SIGNING_KEY = Signing_PrivKey_ECC.txt
21
+ set _MACHINE_FILE = machine.txt
22
+
23
+ echo Making %_OUTPUT_DIR% /%_CIPHER_KEY%
24
+ python %_KEY_TOOL% keygen -k %_OUTPUT_DIR% \%_CIPHER_KEY% -t aes-cbc
25
+
26
+ echo Making %_OUTPUT_DIR% /%_SIGNING_KEY%
27
+ python %_KEY_TOOL% keygen -k %_OUTPUT_DIR% \%_SIGNING_KEY% -t ecdsa-p256
28
+
29
+ echo Making %_OUTPUT_DIR% /%_MACHINE_FILE%
30
+ echo V7M > %_OUTPUT_DIR% /%_MACHINE_FILE%
31
+
You can’t perform that action at this time.
0 commit comments