[][src]Trait bundled_crypto::algo::cipher::symmetric::CanEncrypt

pub trait CanEncrypt: Algo where
    Self::Key: Key
{ type EKey = Self::Key; type Input: ?Sized; type Error; fn encrypt(
        &self,
        key: &Self::EKey,
        data: &Self::Input
    ) -> Result<Vec<u8>, Self::Error>; }

Associated Types

type EKey = Self::Key

type Input: ?Sized

type Error

Loading content...

Required methods

fn encrypt(
    &self,
    key: &Self::EKey,
    data: &Self::Input
) -> Result<Vec<u8>, Self::Error>

Loading content...

Implementors

impl CanEncrypt for bundled_crypto::algo::cipher::aes256::ctr::Algo[src]

type EKey = Key

type Input = [u8]

type Error = EncryptError

impl CanEncrypt for bundled_crypto::algo::cipher::plaintext::Algo[src]

type Input = [u8]

type Error = EncryptError

type EKey = ()

impl CanEncrypt for bundled_crypto::algo::cipher::xchacha20::poly1305::Algo[src]

type EKey = Key

type Input = EncryptArgs

type Error = EncryptError

Loading content...