pub struct PayloadKey(/* private fields */);Expand description
Payload encryption key derived from CEK and header salt.
Implementations§
Source§impl PayloadKey
impl PayloadKey
Sourcepub fn from_bytes(bytes: [u8; 32]) -> Self
pub fn from_bytes(bytes: [u8; 32]) -> Self
Take ownership of existing bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PayloadKey
impl RefUnwindSafe for PayloadKey
impl Send for PayloadKey
impl Sync for PayloadKey
impl Unpin for PayloadKey
impl UnsafeUnpin for PayloadKey
impl UnwindSafe for PayloadKey
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