[−][src]Struct rust_elgamal::Ciphertext
An ElGamal ciphertext.
Represented as a pair of the form (rG, M + rY) where r is a blinding factor, G is the group generator, M is the message, and Y is the public key.
Implementations
impl Ciphertext[src]
pub fn inner(&self) -> (RistrettoPoint, RistrettoPoint)[src]
Returns the pair-of-points representation of the ciphertext. Intended for advanced use only.
Trait Implementations
impl Add<&'_ Ciphertext> for &Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the + operator.
pub fn add(self, rhs: Self) -> Self::Output[src]
impl Add<&'_ Ciphertext> for Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the + operator.
pub fn add(self, rhs: &Ciphertext) -> Self::Output[src]
impl Add<Ciphertext> for Ciphertext[src]
type Output = Self
The resulting type after applying the + operator.
pub fn add(self, rhs: Self) -> Self::Output[src]
impl Add<Ciphertext> for &Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the + operator.
pub fn add(self, rhs: Ciphertext) -> Self::Output[src]
impl Clone for Ciphertext[src]
pub fn clone(&self) -> Ciphertext[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Ciphertext[src]
impl Debug for Ciphertext[src]
impl Eq for Ciphertext[src]
impl From<(RistrettoPoint, RistrettoPoint)> for Ciphertext[src]
pub fn from(pair: (RistrettoPoint, RistrettoPoint)) -> Self[src]
impl Identity for Ciphertext[src]
impl Mul<&'_ Scalar> for Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the * operator.
pub fn mul(self, rhs: &Scalar) -> Self::Output[src]
impl Mul<&'_ Scalar> for &Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the * operator.
pub fn mul(self, rhs: &Scalar) -> Self::Output[src]
impl Mul<Scalar> for Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the * operator.
pub fn mul(self, rhs: Scalar) -> Self::Output[src]
impl Mul<Scalar> for &Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the * operator.
pub fn mul(self, rhs: Scalar) -> Self::Output[src]
impl Neg for Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the - operator.
pub fn neg(self) -> Self::Output[src]
impl Neg for &Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the - operator.
pub fn neg(self) -> Self::Output[src]
impl PartialEq<Ciphertext> for Ciphertext[src]
pub fn eq(&self, other: &Ciphertext) -> bool[src]
pub fn ne(&self, other: &Ciphertext) -> bool[src]
impl StructuralEq for Ciphertext[src]
impl StructuralPartialEq for Ciphertext[src]
impl Sub<&'_ Ciphertext> for &Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the - operator.
pub fn sub(self, rhs: Self) -> Self::Output[src]
impl Sub<&'_ Ciphertext> for Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the - operator.
pub fn sub(self, rhs: &Ciphertext) -> Self::Output[src]
impl Sub<Ciphertext> for Ciphertext[src]
type Output = Self
The resulting type after applying the - operator.
pub fn sub(self, rhs: Self) -> Self::Output[src]
impl Sub<Ciphertext> for &Ciphertext[src]
type Output = Ciphertext
The resulting type after applying the - operator.
pub fn sub(self, rhs: Ciphertext) -> Self::Output[src]
Auto Trait Implementations
impl RefUnwindSafe for Ciphertext[src]
impl Send for Ciphertext[src]
impl Sync for Ciphertext[src]
impl Unpin for Ciphertext[src]
impl UnwindSafe for Ciphertext[src]
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,
pub 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> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,