pub fn block_size(self) -> usize {
        match self {
            SymmetricKeyAlgorithm::Plaintext => 0,
            SymmetricKeyAlgorithm::IDEA => 8,
            SymmetricKeyAlgorithm::TripleDES => 8,
            SymmetricKeyAlgorithm::CAST5 => 8,
            SymmetricKeyAlgorithm::Blowfish => 8,
            SymmetricKeyAlgorithm::AES128 => 16,
            SymmetricKeyAlgorithm::AES192 => 16,
            SymmetricKeyAlgorithm::AES256 => 16,
            SymmetricKeyAlgorithm::Twofish => 16,
            SymmetricKeyAlgorithm::Camellia128 => 16,
            SymmetricKeyAlgorithm::Camellia192 => 16,
            SymmetricKeyAlgorithm::Camellia256 => 16,
            SymmetricKeyAlgorithm::Private10 => 0,
        }
    }
/// The size of a single block in bytes.
/// Based on https://github.com/gpg/libgcrypt/blob/master/cipher
The size of a single block in bytes.
The size of a single block in bytes .
pub fn block_size(self) -> usize {
        match self {
            SymmetricKeyAlgorithm::Plaintext => 0,
            SymmetricKeyAlgorithm::IDEA => 8,
            SymmetricKeyAlgorithm::TripleDES => 8,
            SymmetricKeyAlgorithm::CAST5 => 8,
            SymmetricKeyAlgorithm::Blowfish => 8,
            SymmetricKeyAlgorithm::AES128 => 16,
            SymmetricKeyAlgorithm::AES192 => 16,
            SymmetricKeyAlgorithm::AES256 => 16,
            SymmetricKeyAlgorithm::Twofish => 16,
            SymmetricKeyAlgorithm::Camellia128 => 16,
            SymmetricKeyAlgorithm::Camellia192 => 16,
            SymmetricKeyAlgorithm::Camellia256 => 16,
            SymmetricKeyAlgorithm::Private10 => 0,
        }
    }
pub fn block_size ( self ) -> usize { match self { SymmetricKeyAlgorithm :: Plaintext => 0 , SymmetricKeyAlgorithm :: IDEA => 8 , SymmetricKeyAlgorithm :: TripleDES => 8 , SymmetricKeyAlgorithm :: CAST5 => 8 , SymmetricKeyAlgorithm :: Blowfish => 8 , SymmetricKeyAlgorithm :: AES128 => 16 , SymmetricKeyAlgorithm :: AES192 => 16 , SymmetricKeyAlgorithm :: AES256 => 16 , SymmetricKeyAlgorithm :: Twofish => 16 , SymmetricKeyAlgorithm :: Camellia128 => 16 , SymmetricKeyAlgorithm :: Camellia192 => 16 , SymmetricKeyAlgorithm :: Camellia256 => 16 , SymmetricKeyAlgorithm :: Private10 => 0 , } }
The size of a single block in bytes.
The size of a single block in bytes .
self
self