Trait quinn_proto::crypto::AeadKey
source · [−]pub trait AeadKey {
fn seal(
&self,
data: &mut Vec<u8>,
additional_data: &[u8]
) -> Result<(), CryptoError>;
fn open<'a>(
&self,
data: &'a mut [u8],
additional_data: &[u8]
) -> Result<&'a mut [u8], CryptoError>;
}
Expand description
A key for sealing data with AEAD-based algorithms
Required Methods
Method for sealing message data