pub enum Decrypt {
Dh([u8; 32], [u8; 32], [u8; 32]),
Hmac([u8; 32], [u8; 32]),
Session([u8; 32]),
}Expand description
encapsulates the parameters and mode for decryption.
Variants§
Dh([u8; 32], [u8; 32], [u8; 32])
encrypted content key, sender pub key, receiver priv key.
Hmac([u8; 32], [u8; 32])
hashes the second tuple member, with the first tuple member as the hash key.
Session([u8; 32])
uses the key that is passed in without modification.
Auto Trait Implementations§
impl RefUnwindSafe for Decrypt
impl Send for Decrypt
impl Sync for Decrypt
impl Unpin for Decrypt
impl UnwindSafe for Decrypt
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