pub struct ChaCha20 { /* private fields */ }Expand description
Cifra de fluxo ChaCha20 (RFC 8439 e a variante DJB de 64 bits).
Mantém o estado de 16 palavras de 32 bits e um bloco de keystream de 64
bytes consumido byte a byte; ao esgotar, o contador avança e um novo bloco é
gerado. Como cifra de fluxo, Cipher::process faz XOR in-place.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChaCha20
impl RefUnwindSafe for ChaCha20
impl Send for ChaCha20
impl Sync for ChaCha20
impl Unpin for ChaCha20
impl UnsafeUnpin for ChaCha20
impl UnwindSafe for ChaCha20
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