Struct ore_rs::CipherText
source · 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>
Implementations§
source§impl<S: ORECipher, const N: usize> CipherText<S, N>
impl<S: ORECipher, const N: usize> CipherText<S, N>
pub fn to_bytes(&self) -> Vec<u8>
pub fn from_bytes(data: &[u8]) -> Result<Self, ParseError>
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<OREAES128, N>
impl<const N: usize> Ord for CipherText<OREAES128, N>
source§impl<const N: usize> PartialEq<CipherText<OreAes128<ChaCha20Rng>, N>> for CipherText<OREAES128, N>
impl<const N: usize> PartialEq<CipherText<OreAes128<ChaCha20Rng>, N>> for CipherText<OREAES128, N>
source§impl<const N: usize> PartialOrd<CipherText<OreAes128<ChaCha20Rng>, N>> for CipherText<OREAES128, N>
impl<const N: usize> PartialOrd<CipherText<OreAes128<ChaCha20Rng>, N>> for CipherText<OREAES128, N>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more