KeyMaterial

Trait KeyMaterial 

Source
pub trait KeyMaterial {
    // Required method
    fn read_okm(&mut self, buf: &mut [u8]);
}
Expand description

A trait for generating raw key material, generally cryptographically random bytes

Required Methods§

Source

fn read_okm(&mut self, buf: &mut [u8])

Read key material from the generator

Implementors§

Source§

impl KeyMaterial for BlsKeyGen<'_>

Available on crate feature bls only.
Source§

impl<C: CryptoRng + RngCore> KeyMaterial for C