Struct sarkara::utils::RngCounter
[−]
[src]
pub struct RngCounter<R> { /* fields omitted */ }
Rng + Counter Nonce Generater.
let mut nonce = RngCounter::new(OsRng::new().unwrap().gen::<ChaChaRng>()); let ciphertext = HHBB::seal_with_nonce(&mut nonce, &key, &plaintext);
Methods
impl<R> RngCounter<R> where R: Rng
[src]
fn new(rng: R) -> RngCounter<R>
Create a new RngCounter.
Trait Implementations
impl<R: Debug> Debug for RngCounter<R>
[src]
impl<R: Clone> Clone for RngCounter<R>
[src]
fn clone(&self) -> RngCounter<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more