[−][src]Struct elgamal_curve25519::CypherText
CypherText
is the cyphertext generated by ElGamal encryption.
Methods
impl CypherText
[src]
pub fn random() -> Result<CypherText>
[src]
random
creates a new random CypherText
.
pub fn from_bytes(buf: [u8; 64]) -> Result<CypherText>
[src]
from_bytes
creates a new CypherText
from an array of bytes.
pub fn to_bytes(&self) -> [u8; 64]
[src]
to_bytes
returns the CypherText
as an array of bytes.
Trait Implementations
impl Eq for CypherText
[src]
impl PartialEq<CypherText> for CypherText
[src]
fn eq(&self, other: &CypherText) -> bool
[src]
fn ne(&self, other: &CypherText) -> bool
[src]
impl Copy for CypherText
[src]
impl Clone for CypherText
[src]
fn clone(&self) -> CypherText
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for CypherText
[src]
impl Add<CypherText> for CypherText
[src]
type Output = Option<CypherText>
The resulting type after applying the +
operator.
fn add(self, other: CypherText) -> Option<CypherText>
[src]
Auto Trait Implementations
impl Send for CypherText
impl Sync for CypherText
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self