Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Store_keys.bat « Keys « CKS_Crypt « CKS « Applications « P-NUCLEO-WB55.Nucleo « Projects - github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d17dea8af2b7a23f1ce3f39e02edae5812b21a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
echo off
REM Set CubeProgrammer path release 2.1 and above
SET PROG="C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer2\bin\STM32_Programmer_CLI.exe"

REM Next commands use bootloader with USB connection
REM Store 128 bits key in clear format
%PROG% -c port=usb1 -wusrkey Simple_128.bin

REM Store 256 bits key in clear format
%PROG% -c port=usb1 -wusrkey Simple_256.bin

REM Store 128 bits master key in clear format
REM Index reported is 0x0: OK or 0xFF: Master key already here
%PROG% -c port=usb1 -wusrkey Master.bin

REM Store 128 bits key encrypted with master key
%PROG% -c port=usb1 -wusrkey Encrypted_128.bin

REM Store 128 bits key encrypted with master key
%PROG% -c port=usb1 -wusrkey Encrypted_256.bin
pause