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§
const IV_LENGTH: usize
const KEY_LENGTH: usize
const CIPHER_ALGORITHM_TYPE: CipherAlgorithmType
Provided Methods§
Sourcefn key_length() -> usize
fn key_length() -> usize
Key的长度
Sourcefn cipher_algorithm_type() -> CipherAlgorithmType
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.