[−][src]Struct tari_utilities::ciphers::chacha20::ChaCha20
Trait Implementations
impl<D> Cipher<D> for ChaCha20 where
D: ByteArray,
[src]
D: ByteArray,
fn seal(
plain_text: &D,
key: &[u8],
nonce: &[u8]
) -> Result<Vec<u8>, CipherError>
[src]
plain_text: &D,
key: &[u8],
nonce: &[u8]
) -> Result<Vec<u8>, CipherError>
fn open(cipher_text: &[u8], key: &[u8], nonce: &[u8]) -> Result<D, CipherError>
[src]
fn seal_with_integral_nonce(
plain_text: &D,
key: &[u8]
) -> Result<Vec<u8>, CipherError>
[src]
plain_text: &D,
key: &[u8]
) -> Result<Vec<u8>, CipherError>
fn open_with_integral_nonce(
cipher_text: &[u8],
key: &[u8]
) -> Result<D, CipherError>
[src]
cipher_text: &[u8],
key: &[u8]
) -> Result<D, CipherError>
Auto Trait Implementations
impl RefUnwindSafe for ChaCha20
impl Send for ChaCha20
impl Sync for ChaCha20
impl Unpin for ChaCha20
impl UnwindSafe for ChaCha20
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,