Skip to content
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

fw: Add randomness to memory #162

Open
mchack-work opened this issue Mar 5, 2024 · 1 comment · May be fixed by #201
Open

fw: Add randomness to memory #162

mchack-work opened this issue Mar 5, 2024 · 1 comment · May be fixed by #201
Labels
enhancement New feature or request fw Related to firmware

Comments

@mchack-work
Copy link
Member

mchack-work commented Mar 5, 2024

At start the firmware first does a complete wipe of the memory in the crt0.S in assembly, then in scramble_ram() it turns on the RAM address and memory scrambling so an outside observer has to do more work to get at the content. Then it also fills the entire memory with data. The data is derived by (once) generating a random word, that is incremented for each word with another (once) generated word.

It would probably be better to randomize the entire RAM content. However, the TRNG is slow, so we need some other way of doing this. Perhaps by using our blake2s() and hashing over something like something from the TRNG and something, like the address?

@secworks
Copy link
Contributor

PR #201 adds randomness.

@dehanj dehanj added enhancement New feature or request fw Related to firmware labels Apr 24, 2024
@mchack-work mchack-work linked a pull request Apr 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fw Related to firmware
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants