pub enum SessionMessageKeyMaterial {
Seed([u8; 32]),
Derived {
cipher_key: [u8; 32],
mac_key: [u8; 32],
iv: [u8; 16],
},
}Expand description
Secret material used by a skipped session message key.
Seed is the compact form: importing it expands the derived keys with the
protocol’s canonical derivation, and exporting a record that retained the
seed returns it. Derived is what remains when there is no seed to return,
which is the case for keys persisted before the seed was retained.
Variants§
Trait Implementations§
Source§impl Clone for SessionMessageKeyMaterial
impl Clone for SessionMessageKeyMaterial
impl Copy for SessionMessageKeyMaterial
Source§impl Debug for SessionMessageKeyMaterial
impl Debug for SessionMessageKeyMaterial
impl Eq for SessionMessageKeyMaterial
impl StructuralPartialEq for SessionMessageKeyMaterial
Auto Trait Implementations§
impl Freeze for SessionMessageKeyMaterial
impl RefUnwindSafe for SessionMessageKeyMaterial
impl Send for SessionMessageKeyMaterial
impl Sync for SessionMessageKeyMaterial
impl Unpin for SessionMessageKeyMaterial
impl UnsafeUnpin for SessionMessageKeyMaterial
impl UnwindSafe for SessionMessageKeyMaterial
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