[−][src]Trait crypto_api::rng::SecKeyGen
A algorithm specific key generator to generate a (secret) key
Required methods
fn new_sec_key(
&self,
buf: &mut [u8],
rng: &mut dyn SecureRng
) -> Result<usize, Box<dyn Error + 'static>>
&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