pub struct PkMessage {
pub ciphertext: String,
pub mac: String,
pub ephemeral_key: String,
}
Expand description
A PK encrypted message.
Fields§
§ciphertext: String
§mac: String
§ephemeral_key: String
Implementations§
Source§impl PkMessage
impl PkMessage
Sourcepub fn new(ephemeral_key: String, mac: String, ciphertext: String) -> Self
pub fn new(ephemeral_key: String, mac: String, ciphertext: String) -> Self
Create a new PK encrypted message.
§Arguments
-
ephemeral_key
- the public part of the ephemeral key used (together with the recipient’s key) to generate a symmetric encryption key. -
mac
- Message Authentication Code of the encrypted message -
ciphertext
- The cipher text of the encrypted message
Auto Trait Implementations§
impl Freeze for PkMessage
impl RefUnwindSafe for PkMessage
impl Send for PkMessage
impl Sync for PkMessage
impl Unpin for PkMessage
impl UnwindSafe for PkMessage
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