-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
DHardy mentioned some code that was related to the test_chacha_clone_streams() test, and then I realized that the test doesn't actually perform the clone operation because Clone is not implemented for the RNG. To do this, we would have to implement Clone for ChaChaCore<R, V> or implement Clone for ChaChaXCore manually and clone the ChaChaCore struct from there. I have some questions:
- Does implementing
CloneforChaChaCore<R, V>pose any security risks for either the RNG or the cipher? Like if it enabled users to clone the cipher/RNG in a way that is less secure? - Would we prefer to add
impl PartialEqandimpl Eqtorng.rsorlib.rs, ie impl them forChaChaCore<R, V>inlib.rsor only impl them forChaChaXCorein `rng.rs?
Metadata
Metadata
Assignees
Labels
No labels