Trait AlgorithmName

pub trait AlgorithmName {
    // Required method
    fn write_alg_name(f: &mut Formatter<'_>) -> Result<(), Error>;
}
Expand description

Trait which stores algorithm name constant, used in Debug implementations.

Required Methods§

fn write_alg_name(f: &mut Formatter<'_>) -> Result<(), Error>

Write algorithm name into f.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl AlgorithmName for Aes128

impl AlgorithmName for Aes128Dec

impl AlgorithmName for Aes128Enc

impl AlgorithmName for Aes192

impl AlgorithmName for Aes192Dec

impl AlgorithmName for Aes192Enc

impl AlgorithmName for Aes256

impl AlgorithmName for Aes256Dec

impl AlgorithmName for Aes256Enc

impl<C> AlgorithmName for Decryptor<C>
where C: BlockDecryptMut + BlockCipher + AlgorithmName,

impl<C> AlgorithmName for Encryptor<C>
where C: BlockEncryptMut + BlockCipher + AlgorithmName,

impl<C> AlgorithmName for CmacCore<C>
where C: BlockCipher + BlockEncryptMut + Clone + AlgorithmName, Block<C>: Dbl,

impl<T, OutSize, O> AlgorithmName for CtVariableCoreWrapper<T, OutSize, O>
where T: VariableOutputCore + AlgorithmName, OutSize: ArrayLength<u8> + IsLessOrEqual<T::OutputSize>, LeEq<OutSize, T::OutputSize>: NonZero, T::BlockSize: IsLess<U256>, Le<T::BlockSize, U256>: NonZero,