[][src]Struct rust_elgamal::Ciphertext

pub struct 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.

impl Add<&'_ Ciphertext> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the + operator.

impl Add<Ciphertext> for Ciphertext[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<Ciphertext> for &Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the + operator.

impl Clone for Ciphertext[src]

impl Copy for Ciphertext[src]

impl Debug for Ciphertext[src]

impl Eq for Ciphertext[src]

impl From<(RistrettoPoint, RistrettoPoint)> for Ciphertext[src]

impl Identity for Ciphertext[src]

impl Mul<&'_ Scalar> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the * operator.

impl Mul<&'_ Scalar> for &Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the * operator.

impl Mul<Scalar> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the * operator.

impl Mul<Scalar> for &Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the * operator.

impl Neg for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the - operator.

impl Neg for &Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the - operator.

impl PartialEq<Ciphertext> for Ciphertext[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.

impl Sub<&'_ Ciphertext> for Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the - operator.

impl Sub<Ciphertext> for Ciphertext[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<Ciphertext> for &Ciphertext[src]

type Output = Ciphertext

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.