pub struct PlaintextPacketKey { /* private fields */ }
Trait Implementations§
Source§impl PacketKey for PlaintextPacketKey
impl PacketKey for PlaintextPacketKey
Source§fn encrypt(&self, packet: u64, buf: &mut [u8], header_len: usize)
fn encrypt(&self, packet: u64, buf: &mut [u8], header_len: usize)
Encrypt the packet payload with the given packet number
Source§fn decrypt(
&self,
packet: u64,
header: &[u8],
payload: &mut BytesMut,
) -> Result<(), CryptoError>
fn decrypt( &self, packet: u64, header: &[u8], payload: &mut BytesMut, ) -> Result<(), CryptoError>
Decrypt the packet payload with the given packet number
Source§fn confidentiality_limit(&self) -> u64
fn confidentiality_limit(&self) -> u64
Maximum number of packets that may be sent using a single key
Source§fn integrity_limit(&self) -> u64
fn integrity_limit(&self) -> u64
Maximum number of incoming packets that may fail decryption before the connection must be
abandoned
Auto Trait Implementations§
impl Freeze for PlaintextPacketKey
impl RefUnwindSafe for PlaintextPacketKey
impl Send for PlaintextPacketKey
impl Sync for PlaintextPacketKey
impl Unpin for PlaintextPacketKey
impl UnwindSafe for PlaintextPacketKey
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