-
Notifications
You must be signed in to change notification settings - Fork 905
Encrypted improvements #619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
4b2f32f
to
6ca5a1c
Compare
Update CMake tooling to use 128 byte key files (a 4-way share of the 32 byte key). Also temporarily update the enc_bootloader to deshare this key - the actual fix will need to be in aes.S.
Add data_max_size to prevent overwriting the bootloader with data from flash
Also shrink the space allocated for the bootloader to 32K (plus 8K scratch)
Also switch to random default key
This is not necessary anymore, now picotool writes the AES key to otp json files Fixes #613
CK_JITTER is removed as the enc_bootloader runs from XOSC not ROSC
This includes the changes from #553
This is useful for testing decryption with large files
6ca5a1c
to
bde13d6
Compare
Add self check (1 == 1), which is only performed on first boot
if (1 == 1) { | ||
printf("passed\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s a fake example of a self check - on an actual board, you might be checking you can still communicate with an I2C device, or connect to wifi, before buying the newly uploaded code.
…e examples compilation passes
This adds a self-decrypting binary to demonstrate raspberrypi/pico-sdk#2315 and raspberrypi/picotool#207 - it requires both of those and raspberrypi/pico-sdk#2182 so should only be merged once those have been merged
Also fixes #613 in passing, as that is now handled by picotool.