Trait quinn::crypto::PacketKey [−][src]
Keys used to protect packet payloads
Required methods
pub fn encrypt(&self, packet: u64, buf: &mut [u8], header_len: usize)
[src]
Encrypt the packet payload with the given packet number
pub fn decrypt(
&self,
packet: u64,
header: &[u8],
payload: &mut BytesMut
) -> Result<(), CryptoError>
[src]
&self,
packet: u64,
header: &[u8],
payload: &mut BytesMut
) -> Result<(), CryptoError>
Decrypt the packet payload with the given packet number
pub fn tag_len(&self) -> usize
[src]
The length of the AEAD tag appended to packets on encryption
pub fn confidentiality_limit(&self) -> u64
[src]
Maximum number of packets that may be sent using a single key
pub fn integrity_limit(&self) -> u64
[src]
Maximum number of incoming packets that may fail decryption before the connection must be abandoned
Implementations on Foreign Types
impl PacketKey for PacketKey
[src]
pub fn encrypt(&self, packet: u64, buf: &mut [u8], header_len: usize)
[src]
pub fn decrypt(
&self,
packet: u64,
header: &[u8],
payload: &mut BytesMut
) -> Result<(), CryptoError>
[src]
&self,
packet: u64,
header: &[u8],
payload: &mut BytesMut
) -> Result<(), CryptoError>