Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

RNG using cpu timing jitter #53

Open
r4gus opened this issue May 7, 2023 · 0 comments
Open

RNG using cpu timing jitter #53

r4gus opened this issue May 7, 2023 · 0 comments

Comments

@r4gus
Copy link
Contributor

r4gus commented May 7, 2023

The randomness provided by the RANDOM_BIT register doesn't look that good and it depends on the clock being generated by XIP and/or PLLs.

I recently talked to somebody who maintains a library for generating random numbers using the cpu timing jitter (https://github.com/smuellerDD/jitterentropy-library). We could extract the code relevant for bare metal applications and port it to Zig. Probably requires some work but could be worth it.

Things to consider are:

  1. The rng code must not be optimized
  2. It depends on memory access
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant