Struct ntru::rand::RandContext
[−]
[src]
#[repr(C)]pub struct RandContext { pub rand_gen: *const RandGen, pub seed: *const uint8_t, pub seed_len: uint16_t, pub state: *const c_void, }
A random context for key generation and encryption
Fields
rand_gen: *const RandGen
The RNG for the RandContext
seed: *const uint8_t
For deterministic RNGs
seed_len: uint16_t
For deterministic RNGs
state: *const c_void
The current context state
Methods
impl RandContext
[src]
fn get_seed(&self) -> &[u8]
Gets the seed for the RandContext
fn get_rng(&self) -> &RandGen
Gets the RNG of the RandContext
Trait Implementations
impl Default for RandContext
[src]
fn default() -> RandContext
Returns the "default value" for a type. Read more