CipherAlgorithmBaseTrait

Trait CipherAlgorithmBaseTrait 

Source
pub trait CipherAlgorithmBaseTrait {
    const IV_LENGTH: usize;
    const KEY_LENGTH: usize;
    const CIPHER_ALGORITHM_TYPE: CipherAlgorithmType;

    // Provided methods
    fn iv_length() -> usize { ... }
    fn key_length() -> usize { ... }
    fn cipher_algorithm_type() -> CipherAlgorithmType { ... }
}
Expand description

原始的密码算法trait

Required Associated Constants§

Provided Methods§

Source

fn iv_length() -> usize

返回IV的长度

Source

fn key_length() -> usize

Key的长度

Source

fn cipher_algorithm_type() -> CipherAlgorithmType

返回当前加密算法的类型(流密码还是分组密码)

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§