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