pub struct ChaCha20Poly1305;Expand description
ChaCha20-Poly1305 authenticated encryption.
Key: 32 bytes, nonce: 12 bytes, tag: 16 bytes.
Trait Implementations§
Source§impl Aead for ChaCha20Poly1305
impl Aead for ChaCha20Poly1305
Source§fn seal(
&self,
key: &[u8],
nonce: &[u8],
aad: &[u8],
pt: &[u8],
ct_out: &mut [u8],
) -> Result<usize, CryptoError>
fn seal( &self, key: &[u8], nonce: &[u8], aad: &[u8], pt: &[u8], ct_out: &mut [u8], ) -> Result<usize, CryptoError>
Source§fn open(
&self,
key: &[u8],
nonce: &[u8],
aad: &[u8],
ct: &[u8],
pt_out: &mut [u8],
) -> Result<usize, CryptoError>
fn open( &self, key: &[u8], nonce: &[u8], aad: &[u8], ct: &[u8], pt_out: &mut [u8], ) -> Result<usize, CryptoError>
Source§impl Clone for ChaCha20Poly1305
impl Clone for ChaCha20Poly1305
Source§fn clone(&self) -> ChaCha20Poly1305
fn clone(&self) -> ChaCha20Poly1305
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChaCha20Poly1305
impl Debug for ChaCha20Poly1305
Source§impl Default for ChaCha20Poly1305
impl Default for ChaCha20Poly1305
Source§fn default() -> ChaCha20Poly1305
fn default() -> ChaCha20Poly1305
Returns the “default value” for a type. Read more
impl Copy for ChaCha20Poly1305
Auto Trait Implementations§
impl Freeze for ChaCha20Poly1305
impl RefUnwindSafe for ChaCha20Poly1305
impl Send for ChaCha20Poly1305
impl Sync for ChaCha20Poly1305
impl Unpin for ChaCha20Poly1305
impl UnsafeUnpin for ChaCha20Poly1305
impl UnwindSafe for ChaCha20Poly1305
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