struct AeadMessageEncrypter {
enc_key: LessSafeKey,
iv: Iv,
}
Fields§
§enc_key: LessSafeKey
§iv: Iv
Trait Implementations§
Source§impl MessageEncrypter for AeadMessageEncrypter
impl MessageEncrypter for AeadMessageEncrypter
Source§fn encrypt(
&mut self,
msg: OutboundPlainMessage<'_>,
seq: u64,
) -> Result<OutboundOpaqueMessage, Error>
fn encrypt( &mut self, msg: OutboundPlainMessage<'_>, seq: u64, ) -> Result<OutboundOpaqueMessage, Error>
Encrypt the given TLS message
msg
, using the sequence number
seq
which can be used to derive a unique Nonce
.Source§fn encrypted_payload_len(&self, payload_len: usize) -> usize
fn encrypted_payload_len(&self, payload_len: usize) -> usize
Return the length of the ciphertext that results from encrypting plaintext of
length
payload_len
Auto Trait Implementations§
impl Freeze for AeadMessageEncrypter
impl RefUnwindSafe for AeadMessageEncrypter
impl Send for AeadMessageEncrypter
impl Sync for AeadMessageEncrypter
impl Unpin for AeadMessageEncrypter
impl UnwindSafe for AeadMessageEncrypter
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