exaexa / codecrypt

Post-quantum cryptography tool (THIS REPOSITORY IS ONLY A MIRROR OF THE MAIN ONE, PLEASE DO NOT FILE BUGS HERE)
https://gitea.blesmrt.net/exa/codecrypt
GNU Lesser General Public License v3.0
308 stars 40 forks source link

A Question regarding HWRNG #24

Closed ghost closed 7 years ago

ghost commented 7 years ago

Can we use a HWRNG that seeds directly to /dev/random like OneRNG with Codecrypt. Suppose if the user wants to add the support of an external TRNG with Codecrypt .

exaexa commented 7 years ago

If a hardware RNG already seeds the /dev/random, why not just use the default /dev/random?

Anyway, I don't have any hwrng device handy. Is there any reason why export CCR_RANDOM_SEED=/dev/hwrng wouldn't work? (use latest git btw, I added that yesterday.)

Also, make sure you read the relevant documentation (in the man page).

ghost commented 7 years ago

Yeah export CCR_RANDOM_SEED=/dev/hwrng worked perfectly thanks for the information . Actually I don't trust Intel's RDRAND and I thought it might be useful to xor two streams together that is /dev/random and /dev/hwrng for paranoid security 😁

exaexa commented 7 years ago

It's not paranoia if they really are after you. Glad it works.