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

The RNG for the RandContext

For deterministic RNGs

For deterministic RNGs

The current context state

Methods

impl RandContext
[src]

Gets the seed for the RandContext

Gets the RNG of the RandContext

Trait Implementations

impl Default for RandContext
[src]

Returns the "default value" for a type. Read more

impl Drop for RandContext
[src]

A method called when the value goes out of scope. Read more