pub struct HKDFParams { /* private fields */ }Expand description
Struct representing HKDF parameters.
CDDL:
HKDFParams = [0, Salt, HashType]Implementations§
Trait Implementations§
Source§impl Clone for HKDFParams
impl Clone for HKDFParams
Source§fn clone(&self) -> HKDFParams
fn clone(&self) -> HKDFParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HKDFParams
impl Debug for HKDFParams
Source§impl Default for HKDFParams
impl Default for HKDFParams
Source§impl Display for HKDFParams
impl Display for HKDFParams
Source§impl From<HKDFParams> for CBOR
impl From<HKDFParams> for CBOR
Source§fn from(val: HKDFParams) -> Self
fn from(val: HKDFParams) -> Self
Converts to this type from the input type.
Source§impl KeyDerivation for HKDFParams
impl KeyDerivation for HKDFParams
const INDEX: usize = 0usize
fn lock( &mut self, content_key: &SymmetricKey, secret: impl AsRef<[u8]>, ) -> Result<EncryptedMessage>
fn unlock( &self, encrypted_message: &EncryptedMessage, secret: impl AsRef<[u8]>, ) -> Result<SymmetricKey>
Source§impl PartialEq for HKDFParams
impl PartialEq for HKDFParams
Source§impl TryFrom<CBOR> for HKDFParams
impl TryFrom<CBOR> for HKDFParams
impl Eq for HKDFParams
impl StructuralPartialEq for HKDFParams
Auto Trait Implementations§
impl Freeze for HKDFParams
impl RefUnwindSafe for HKDFParams
impl Send for HKDFParams
impl Sync for HKDFParams
impl Unpin for HKDFParams
impl UnwindSafe for HKDFParams
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