Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham authored Nov 22, 2024
1 parent 86936fc commit 10361d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bootloaders/encrypted/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ Replace private.pem and privateaes.bin with your own keys - your signing key mus
openssl ecparam -name secp256k1 -genkey -out private.pem
```

The AES key is just a 32 byte binary file - you can create one with
The AES key is just a 32 byte binary file - you can create one with:

```bash
dd if=/dev/urandom of=privateaes.bin bs=1 count=32
```

You will need to program your OTP using the generated `otp.json` file in the build folder. Note that this will enable secure boot on your device, so only signed binaries can run, and will also lock down the OTP page the AES key is stored in. If you wish to test without enabling secure boot then you can load the `otp.json` file in the source folder, which will just program the AES key and lock down that OTP page.
You will need to program your OTP using the generated `otp.json` file generated by the build in your build folder
NOTE: This will enable secure boot on your device, so only correctly signed binaries can then run, and will also lock down the OTP page the AES key is stored in.
If you wish to test without enabling secure boot, you can load the `otp.json` file in the source folder ([otp.json](otp.json)) instead which will just program the AES key and lock down that OTP page.
```bash
picotool otp load otp.json
```
Expand Down

0 comments on commit 10361d7

Please sign in to comment.