pub struct Message {
pub ciphertext: Vec<u8>,
pub mac: Vec<u8>,
pub ephemeral_key: Curve25519PublicKey,
}
Expand description
A message that was encrypted using a PkEncryption
object.
Fields§
§ciphertext: Vec<u8>
The ciphertext of the message.
mac: Vec<u8>
The message authentication code of the message.
WARNING: As stated in the module description, this does not authenticate the message.
ephemeral_key: Curve25519PublicKey
The ephemeral Curve25519PublicKey
used to derive the individual
message key.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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