Trait hpke_rs_crypto::HpkeTestRng
source · pub trait HpkeTestRng {
// Required methods
fn try_fill_test_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>;
fn seed(&mut self, seed: &[u8]);
}
Expand description
PRNG extension for testing that is supposed to return pre-configured bytes.
Required Methods§
sourcefn try_fill_test_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>
fn try_fill_test_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>
Like RngCore::try_fill_bytes
but the result is expected to be known.