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

Entropy ? #23

Closed ghost closed 7 years ago

ghost commented 7 years ago

Where does your program collect the required entropy to generate the key from ( /dev/random) ? Is there any possibility to include an external source of entropy to generate the keys ?

exaexa commented 7 years ago

Please do not mistake collecting entropy with seeding PRNG. Source of seed is /dev/urandom for nonces and similar stuff, and /dev/random for long-term keys, see src/generator.cpp. Please, always use a system with suitable random and urandom.

exaexa commented 7 years ago

Anyway, it is sometimes useful to play with other seed sources (although certainly not very wise for practical applications). I've added a patch that fixes ccr's behavior on seeding errors and allows the user to choose a different source (see manual).

ghost commented 7 years ago

Thank you very much for adding the oppurtunity to seed from other sources , Excited :-)