Skip to main content

NonceSource

Trait NonceSource 

Source
pub trait NonceSource: MaybeSend + MaybeSync {
    // Required method
    fn fill(&self, nonce: &mut [u8; 32]) -> bool;
}
Expand description

The source of the fresh 32-byte nonce every attempt carries.

Required Methods§

Source

fn fill(&self, nonce: &mut [u8; 32]) -> bool

Fill nonce with 32 fresh random bytes; false on failure.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§