Struct serde_encrypt::encrypt::plain_message_shared_key::PlainMessageSharedKey [−][src]
pub struct PlainMessageSharedKey(_);
Expand description
Plain message structure serialized via serde.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
type R = RngSingletonImpl
type R = RngSingletonImplRNG singleton
Encrypt into EncryptedMessage
fn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S
) -> Result<Self, Error> where
S: AsSharedKey, [src]
fn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S
) -> Result<Self, Error> where
S: AsSharedKey, [src]Decrypt from EncryptedMessage
Generate random nonce which is large enough (24-byte) to rarely conflict.
Auto Trait Implementations
impl RefUnwindSafe for PlainMessageSharedKeyimpl Send for PlainMessageSharedKeyimpl Sync for PlainMessageSharedKeyimpl Unpin for PlainMessageSharedKeyimpl UnwindSafe for PlainMessageSharedKeyBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V