Cosmian / crypto_core

Other
1 stars 1 forks source link

Features/use chacha12rng #18

Closed tbrezot closed 2 years ago

tbrezot commented 2 years ago

Use ChaCha with 12 rounds instead of Hc128, since this is really really fast (~ -80%) and secure !

BREAKING CHANGE: remove the CsRng custom interface, the way to instantiate the new CsRng is to use SeedableRng::from_entropy(), the way to generate bytes is to use RngCore::fill_bytes().

Note: No version bump, this will be added to the major release v4.0 from #17