pub trait Chacha8Poly1305: CryptoClient {
    fn decrypt_chacha8poly1305<'c>(
        &'c mut self,
        key: KeyId,
        message: &[u8],
        associated_data: &[u8],
        nonce: &[u8],
        tag: &[u8]
    ) -> ClientResult<'c, Decrypt, Self> { ... }
fn encrypt_chacha8poly1305<'c>(
        &'c mut self,
        key: KeyId,
        message: &[u8],
        associated_data: &[u8],
        nonce: Option<&[u8; 12]>
    ) -> ClientResult<'c, Encrypt, Self> { ... }
fn generate_chacha8poly1305_key(
        &mut self,
        persistence: Location
    ) -> ClientResult<'_, GenerateKey, Self> { ... }
fn unwrap_key_chacha8poly1305<'c>(
        &'c mut self,
        wrapping_key: KeyId,
        wrapped_key: &[u8],
        associated_data: &[u8],
        location: Location
    ) -> ClientResult<'c, UnwrapKey, Self> { ... }
fn wrap_key_chacha8poly1305<'c>(
        &'c mut self,
        wrapping_key: KeyId,
        key: KeyId,
        associated_data: &[u8]
    ) -> ClientResult<'c, WrapKey, Self> { ... } }

Provided methods

Implementors