Trait quinn_proto::crypto::AeadKey

source ·
pub trait AeadKey {
    // Required methods
    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§

source

fn seal( &self, data: &mut Vec<u8>, additional_data: &[u8], ) -> Result<(), CryptoError>

Method for sealing message data

source

fn open<'a>( &self, data: &'a mut [u8], additional_data: &[u8], ) -> Result<&'a mut [u8], CryptoError>

Method for opening a sealed message data

Implementations on Foreign Types§

source§

impl AeadKey for LessSafeKey

source§

fn seal( &self, data: &mut Vec<u8>, additional_data: &[u8], ) -> Result<(), CryptoError>

source§

fn open<'a>( &self, data: &'a mut [u8], additional_data: &[u8], ) -> Result<&'a mut [u8], CryptoError>

Implementors§