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

const KEY_LEN: usize[src]

Length of AEAD Key

Loading content...

Required methods

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

Method for sealing message data

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

Method for opening a sealed message data

Loading content...

Implementations on Foreign Types

impl AeadKey for LessSafeKey[src]

Loading content...

Implementors

Loading content...