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: Kdf> HpkeKdf for KdfWithDefaults<T>
impl<T: Kdf> HpkeKdf for KdfWithDefaults<T>
Source§impl<T: Kdf> Identified for KdfWithDefaults<T>
impl<T: Kdf> 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
Source§fn extract_and_expand_multi<'a, Ikm, Info>(
out: &mut [u8],
ikm: Ikm,
salt: &[u8],
info: Info,
) -> Result<(), KdfError>where
Ikm: IntoIterator<Item = &'a [u8]>,
Info: IntoIterator<Item = &'a [u8]>,
<Info as IntoIterator>::IntoIter: Clone,
fn extract_and_expand_multi<'a, Ikm, Info>(
out: &mut [u8],
ikm: Ikm,
salt: &[u8],
info: Info,
) -> Result<(), KdfError>where
Ikm: IntoIterator<Item = &'a [u8]>,
Info: IntoIterator<Item = &'a [u8]>,
<Info as IntoIterator>::IntoIter: Clone,
Performs both the extract and expand steps. Read more
Auto Trait Implementations§
impl<T> Freeze for KdfWithDefaults<T>
impl<T> RefUnwindSafe for KdfWithDefaults<T>where
T: RefUnwindSafe,
impl<T> Send for KdfWithDefaults<T>where
T: Send,
impl<T> Sync for KdfWithDefaults<T>where
T: Sync,
impl<T> Unpin for KdfWithDefaults<T>where
T: Unpin,
impl<T> UnsafeUnpin for KdfWithDefaults<T>
impl<T> UnwindSafe for KdfWithDefaults<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.