pub struct CipherText<S: OreCipher, const N: usize> {
pub left: Left<S, N>,
pub right: Right<S, N>,
}
Fields§
§left: Left<S, N>
§right: Right<S, N>
Trait Implementations§
Source§impl<S: Clone + OreCipher, const N: usize> Clone for CipherText<S, N>
impl<S: Clone + OreCipher, const N: usize> Clone for CipherText<S, N>
Source§fn clone(&self) -> CipherText<S, N>
fn clone(&self) -> CipherText<S, N>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<const N: usize> Ord for CipherText<OreAes128ChaCha20, N>
impl<const N: usize> Ord for CipherText<OreAes128ChaCha20, N>
Source§impl<S: OreCipher, const N: usize> OreOutput for CipherText<S, N>
impl<S: OreCipher, const N: usize> OreOutput for CipherText<S, N>
Source§fn from_slice(data: &[u8]) -> Result<Self, ParseError>
fn from_slice(data: &[u8]) -> Result<Self, ParseError>
Deserialize from a slice of bytes
Source§fn from_bytes(data: &[u8]) -> Result<Self, ParseError>
fn from_bytes(data: &[u8]) -> Result<Self, ParseError>
👎Deprecated since 0.8.0: please use
from_slice
insteadSource§impl<const N: usize> PartialEq for CipherText<OreAes128ChaCha20, N>
impl<const N: usize> PartialEq for CipherText<OreAes128ChaCha20, N>
Source§impl<const N: usize> PartialOrd for CipherText<OreAes128ChaCha20, N>
impl<const N: usize> PartialOrd for CipherText<OreAes128ChaCha20, N>
impl<S: Copy + OreCipher, const N: usize> Copy for CipherText<S, N>
impl<const N: usize> Eq for CipherText<OreAes128ChaCha20, N>
Auto Trait Implementations§
impl<S, const N: usize> Freeze for CipherText<S, N>
impl<S, const N: usize> RefUnwindSafe for CipherText<S, N>where
<S as OreCipher>::LeftBlockType: RefUnwindSafe,
<S as OreCipher>::RightBlockType: RefUnwindSafe,
impl<S, const N: usize> Send for CipherText<S, N>
impl<S, const N: usize> Sync for CipherText<S, N>
impl<S, const N: usize> Unpin for CipherText<S, N>
impl<S, const N: usize> UnwindSafe for CipherText<S, N>
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