pub struct ChaCha20Encryptor { /* private fields */ }Expand description
ChaCha20-Poly1305 encryptor.
Uses PBKDF2-SHA256 for key derivation with a random 16-byte salt per encryption. Output format:
base64(version[1] || algorithm[1] || salt[16] || nonce[12] || ciphertext).
Implementations§
Trait Implementations§
Source§impl Drop for ChaCha20Encryptor
impl Drop for ChaCha20Encryptor
Auto Trait Implementations§
impl Freeze for ChaCha20Encryptor
impl RefUnwindSafe for ChaCha20Encryptor
impl Send for ChaCha20Encryptor
impl Sync for ChaCha20Encryptor
impl Unpin for ChaCha20Encryptor
impl UnsafeUnpin for ChaCha20Encryptor
impl UnwindSafe for ChaCha20Encryptor
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