pub struct KdfWithDefaults<T>(/* private fields */);Available on crate feature
test_util only.Expand description
A Kdf that that uses the default trait methods.
Trait Implementations§
Source§impl<T: Clone> Clone for KdfWithDefaults<T>
impl<T: Clone> Clone for KdfWithDefaults<T>
Source§fn clone(&self) -> KdfWithDefaults<T>
fn clone(&self) -> KdfWithDefaults<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for KdfWithDefaults<T>
impl<T> Debug for KdfWithDefaults<T>
Source§impl<T: Identified> Identified for KdfWithDefaults<T>
impl<T: Identified> Identified for KdfWithDefaults<T>
Source§impl<T: Kdf> Kdf for KdfWithDefaults<T>
impl<T: Kdf> Kdf for KdfWithDefaults<T>
Source§type MaxOutput = <T as Kdf>::MaxOutput
type MaxOutput = <T as Kdf>::MaxOutput
The size in octets of the largest key that can be created
with
expand,
expand_multi, or
extract_and_expand. Read moreSource§fn extract_multi<'a, I>(ikm: I, salt: &[u8]) -> Prk<Self::PrkSize>where
I: IntoIterator<Item = &'a [u8]>,
fn extract_multi<'a, I>(ikm: I, salt: &[u8]) -> Prk<Self::PrkSize>where
I: IntoIterator<Item = &'a [u8]>,
Source§fn expand_multi<'a, I>(
out: &mut [u8],
prk: &Prk<Self::PrkSize>,
info: I,
) -> Result<(), KdfError>
fn expand_multi<'a, I>( out: &mut [u8], prk: &Prk<Self::PrkSize>, info: I, ) -> Result<(), KdfError>
Source§const MAX_OUTPUT: usize = <Self::MaxOutput>::USIZE
const MAX_OUTPUT: usize = <Self::MaxOutput>::USIZE
The size in octets of the largest key that can be created
with
expand,
expand_multi, or
extract_and_expand. Read moreSource§fn extract(ikm: &[u8], salt: &[u8]) -> Prk<Self::PrkSize>
fn extract(ikm: &[u8], salt: &[u8]) -> Prk<Self::PrkSize>
A randomness extractor that extracts a fixed-length
pseudorandom key (PRK) from the Input Keying Material
(IKM) and an optional salt. Read more
Source§fn expand(
out: &mut [u8],
prk: &Prk<Self::PrkSize>,
info: &[u8],
) -> Result<(), KdfError>
fn expand( out: &mut [u8], prk: &Prk<Self::PrkSize>, info: &[u8], ) -> Result<(), KdfError>
A Pseudo Random Function (PRF) that expands the PRK with
an optional info parameter into a key. Read more
Source§fn extract_and_expand(
out: &mut [u8],
ikm: &[u8],
salt: &[u8],
info: &[u8],
) -> Result<(), KdfError>
fn extract_and_expand( out: &mut [u8], ikm: &[u8], salt: &[u8], info: &[u8], ) -> Result<(), KdfError>
Performs both the extract and expand steps. Read more
Auto Trait Implementations§
impl<T> Freeze for KdfWithDefaults<T>
impl<T> RefUnwindSafe for KdfWithDefaults<T>
impl<T> Send for KdfWithDefaults<T>
impl<T> Sync for KdfWithDefaults<T>
impl<T> Unpin for KdfWithDefaults<T>
impl<T> UnwindSafe for KdfWithDefaults<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more