pub trait KdfOperation<'a, A: KdfAlgorithm, T = Vec<u8>>: Sized {
// Required methods
fn with_ikm(self, ikm: &'a [u8]) -> Self;
fn with_salt(self, salt: &'a [u8]) -> Self;
fn with_info(self, info: &'a [u8]) -> Self;
fn with_output_length(self, length: usize) -> Self;
fn derive(self) -> Result<T>;
fn derive_array<const N: usize>(self) -> Result<[u8; N]>;
}
Expand description
Operation for KDF operations with improved type safety
Required Methods§
Sourcefn with_output_length(self, length: usize) -> Self
fn with_output_length(self, length: usize) -> Self
Set the desired output length
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.