-
Notifications
You must be signed in to change notification settings - Fork 0
Separate update functionality from state handling and message parsing #8
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
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Both have the same basic functionality: 1. Set the LED 2. Wait for a byte on IO_CDC 3. Write the app name to IO_CDC 4. Wait for a byte on IO_CDC 5. Reset The apps differ in: - App name - LED color
TKey firmware do not erase any data from flash when sys_preload_store is called. Instead the updater is first expected to delete any existing app by calling sys_preload_delete. When sys_preload_delete is called all bits in the flash app slot will be set to 1. When writing, using sys_preload_store, bits can only be set to 0.
Ran make -C test fmt
Adds sys_preload_delete and sys_preload_store_fin to fakesys
d17ff78 to
87da3f7
Compare
Fill in seed_digest with a measurement of our security policy, currently just the vendor public key, and tell firmware about this measurement. The seed_digest will be used by the firmware to mix in to the identity of the app we verified.
Print CDI so we can control it's the same. We want to know what both app_a.bin and app_b.bin get the same CDI after having been verified by verifier.
Member
Author
|
Closing since the majority of this branch is part of #9. The measure/CDI-commits will be moved/reworked into another PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
testapp/app_a.binandtestapp/app_b.bin) which can be used to test update manually usingverifier-client -cmd install -app .... The apps both set the LED color and prints a string to the CDC-port. The LED color and string differ between the two apps.Type of change
Please tick any that are relevant to this PR and remove any that aren't.
Submission checklist