pub struct ChaCha20CipherAlgorithm { /* private fields */ }Expand description
ChaCha20密码算法
Trait Implementations§
Source§impl CipherAlgorithmBaseTrait for ChaCha20CipherAlgorithm
impl CipherAlgorithmBaseTrait for ChaCha20CipherAlgorithm
const IV_LENGTH: usize = 12usize
const KEY_LENGTH: usize = 32usize
const CIPHER_ALGORITHM_TYPE: CipherAlgorithmType = CipherAlgorithmType::Stream
Source§fn key_length() -> usize
fn key_length() -> usize
Key的长度
Source§fn cipher_algorithm_type() -> CipherAlgorithmType
fn cipher_algorithm_type() -> CipherAlgorithmType
返回当前加密算法的类型(流密码还是分组密码)
Auto Trait Implementations§
impl Freeze for ChaCha20CipherAlgorithm
impl RefUnwindSafe for ChaCha20CipherAlgorithm
impl Send for ChaCha20CipherAlgorithm
impl Sync for ChaCha20CipherAlgorithm
impl Unpin for ChaCha20CipherAlgorithm
impl UnwindSafe for ChaCha20CipherAlgorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more