Trait quinn_proto::crypto::AeadKey [−][src]
pub trait AeadKey {
const KEY_LEN: usize;
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>;
}A key for sealing data with AEAD-based algorithms
Associated Constants
Loading content...Required methods
fn seal(
&self,
data: &mut Vec<u8>,
additional_data: &[u8]
) -> Result<(), CryptoError>[src]
&self,
data: &mut Vec<u8>,
additional_data: &[u8]
) -> Result<(), CryptoError>
Method for sealing message data
fn open<'a>(
&self,
data: &'a mut [u8],
additional_data: &[u8]
) -> Result<&'a mut [u8], CryptoError>[src]
&self,
data: &'a mut [u8],
additional_data: &[u8]
) -> Result<&'a mut [u8], CryptoError>
Method for opening a sealed message data
Implementations on Foreign Types
impl AeadKey for LessSafeKey[src]
impl AeadKey for LessSafeKey[src]