Struct crypto::chacha20::ChaCha20
[−]
[src]
pub struct ChaCha20 { /* fields omitted */ }
Methods
impl ChaCha20
[src]
fn new(key: &[u8], nonce: &[u8]) -> ChaCha20
[src]
fn new_xchacha20(key: &[u8], nonce: &[u8]) -> ChaCha20
[src]
Trait Implementations
impl Copy for ChaCha20
[src]
impl Clone for ChaCha20
[src]
fn clone(&self) -> ChaCha20
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl SynchronousStreamCipher for ChaCha20
[src]
impl Encryptor for ChaCha20
[src]
fn encrypt(
&mut self,
input: &mut RefReadBuffer,
output: &mut RefWriteBuffer,
_: bool
) -> Result<BufferResult, SymmetricCipherError>
[src]
&mut self,
input: &mut RefReadBuffer,
output: &mut RefWriteBuffer,
_: bool
) -> Result<BufferResult, SymmetricCipherError>
impl Decryptor for ChaCha20
[src]
fn decrypt(
&mut self,
input: &mut RefReadBuffer,
output: &mut RefWriteBuffer,
_: bool
) -> Result<BufferResult, SymmetricCipherError>
[src]
&mut self,
input: &mut RefReadBuffer,
output: &mut RefWriteBuffer,
_: bool
) -> Result<BufferResult, SymmetricCipherError>