Trait SecKeyGen

Source
pub trait SecKeyGen {
    // Required method
    fn new_sec_key(
        &self,
        buf: &mut [u8],
        rng: &mut dyn SecureRng,
    ) -> Result<usize, Box<dyn Error + 'static>>;
}
Expand description

A algorithm specific key generator to generate a (secret) key

Required Methods§

Source

fn new_sec_key( &self, buf: &mut [u8], rng: &mut dyn SecureRng, ) -> Result<usize, Box<dyn Error + 'static>>

Generates a new key into buf using rng and returns the length of the secret key

Implementors§