You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lpc55-rng: Include 32 bytes from the last PRNG instance when reseeding.
where:
- N > 0
- `HRNG_N(count)` represents count bytes taken from the hardware RNG
- `PRNG_N(count)` represents count bytes taken from the Nth generation
of the PRNG
This commit changes our algorithm for constructing the seed `SEED_N` for
the PRNG instance `PRNG_N` from:
```
SEED_N = HRNG(32)
```
to:
```
SEED_N = sha3_256(PRNG_N-1(32) | HRNG(32))
```
We use `sha3_256` as a mixing function to combine these two components
of the seed though the implementation is generic over the digest w/
constraints on the length.
0 commit comments