2 ms·
> I wonder if it can be used for things like better random number generation... Too slow to be useful, and the BCM283x SoC already has an internal RNG: https:
by duskwuff 5y ago
> I wonder if it can be used for things like better random number generation...
Too slow to be useful, and the BCM283x SoC already has an internal RNG:
https://github.com/torvalds/linux/blob/master/drivers/char/hw_random/bcm2835-rng.c https://github.com/torvalds/linux/blob/master/drivers/char/h...
> ... or hardware-accelerated hashing
The TPM is on a really slow bus (33 MHz, 4 bits, tons of wait states). Even without any hardware acceleration, hashing on the CPU is much faster.
- staticassertion 5y agoYou wouldn't hit a TPM every time you wanted a random number. Your OS would just use it when it wanted to seed its entropy pool. This is particularly useful at boot when entropy is very low.