Struct paillier::encoding::EncodedCiphertext
source · pub struct EncodedCiphertext<T> { /* private fields */ }
Expand description
Encrypted message with type information.
Trait Implementations
sourceimpl<EK, C> Add<EK, C, u64, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'c, 'p, 'd> Self: Add<EK, RawCiphertext<'c>, RawPlaintext<'p>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<Vec<u64>>>,
impl<EK, C> Add<EK, C, u64, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'c, 'p, 'd> Self: Add<EK, RawCiphertext<'c>, RawPlaintext<'p>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<Vec<u64>>>,
sourceimpl<EK, C> Add<EK, C, u64, EncodedCiphertext<u64>> for Paillierwhere
for<'c, 'p, 'd> Self: Add<EK, RawCiphertext<'c>, RawPlaintext<'p>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<u64>>,
impl<EK, C> Add<EK, C, u64, EncodedCiphertext<u64>> for Paillierwhere
for<'c, 'p, 'd> Self: Add<EK, RawCiphertext<'c>, RawPlaintext<'p>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<u64>>,
sourceimpl<EK, C1, C2> Add<EK, C1, C2, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'c1, 'c2, 'd> Self: Add<EK, RawCiphertext<'c1>, RawCiphertext<'c2>, RawCiphertext<'d>>,
C1: Borrow<EncodedCiphertext<Vec<u64>>>,
C2: Borrow<EncodedCiphertext<Vec<u64>>>,
impl<EK, C1, C2> Add<EK, C1, C2, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'c1, 'c2, 'd> Self: Add<EK, RawCiphertext<'c1>, RawCiphertext<'c2>, RawCiphertext<'d>>,
C1: Borrow<EncodedCiphertext<Vec<u64>>>,
C2: Borrow<EncodedCiphertext<Vec<u64>>>,
sourceimpl<EK, C1, C2> Add<EK, C1, C2, EncodedCiphertext<u64>> for Paillierwhere
for<'c1, 'c2, 'd> Self: Add<EK, RawCiphertext<'c1>, RawCiphertext<'c2>, RawCiphertext<'d>>,
C1: Borrow<EncodedCiphertext<u64>>,
C2: Borrow<EncodedCiphertext<u64>>,
impl<EK, C1, C2> Add<EK, C1, C2, EncodedCiphertext<u64>> for Paillierwhere
for<'c1, 'c2, 'd> Self: Add<EK, RawCiphertext<'c1>, RawCiphertext<'c2>, RawCiphertext<'d>>,
C1: Borrow<EncodedCiphertext<u64>>,
C2: Borrow<EncodedCiphertext<u64>>,
sourceimpl<EK, C2> Add<EK, u64, C2, EncodedCiphertext<u64>> for Paillierwhere
for<'m, 'c, 'd> Self: Add<EK, RawPlaintext<'m>, RawCiphertext<'c>, RawCiphertext<'d>>,
C2: Borrow<EncodedCiphertext<u64>>,
impl<EK, C2> Add<EK, u64, C2, EncodedCiphertext<u64>> for Paillierwhere
for<'m, 'c, 'd> Self: Add<EK, RawPlaintext<'m>, RawCiphertext<'c>, RawCiphertext<'d>>,
C2: Borrow<EncodedCiphertext<u64>>,
sourceimpl<T: Clone> Clone for EncodedCiphertext<T>
impl<T: Clone> Clone for EncodedCiphertext<T>
sourcefn clone(&self) -> EncodedCiphertext<T>
fn clone(&self) -> EncodedCiphertext<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for EncodedCiphertext<T>
impl<T: Debug> Debug for EncodedCiphertext<T>
sourceimpl<'de, T> Deserialize<'de> for EncodedCiphertext<T>
impl<'de, T> Deserialize<'de> for EncodedCiphertext<T>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'m, EK> Encrypt<EK, &'m [u64], EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'p, 'c> Self: Encrypt<EK, RawPlaintext<'p>, RawCiphertext<'c>>,
impl<'m, EK> Encrypt<EK, &'m [u64], EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'p, 'c> Self: Encrypt<EK, RawPlaintext<'p>, RawCiphertext<'c>>,
sourceimpl<EK> Encrypt<EK, u64, EncodedCiphertext<u64>> for Paillierwhere
for<'p, 'c> Self: Encrypt<EK, RawPlaintext<'p>, RawCiphertext<'c>>,
impl<EK> Encrypt<EK, u64, EncodedCiphertext<u64>> for Paillierwhere
for<'p, 'c> Self: Encrypt<EK, RawPlaintext<'p>, RawCiphertext<'c>>,
sourceimpl<EK, C> Mul<EK, C, u64, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'c, 'm, 'd> Self: Mul<EK, RawCiphertext<'c>, RawPlaintext<'m>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<Vec<u64>>>,
impl<EK, C> Mul<EK, C, u64, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'c, 'm, 'd> Self: Mul<EK, RawCiphertext<'c>, RawPlaintext<'m>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<Vec<u64>>>,
sourceimpl<EK, C> Mul<EK, C, u64, EncodedCiphertext<u64>> for Paillierwhere
for<'c, 'm, 'd> Self: Mul<EK, RawCiphertext<'c>, RawPlaintext<'m>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<u64>>,
impl<EK, C> Mul<EK, C, u64, EncodedCiphertext<u64>> for Paillierwhere
for<'c, 'm, 'd> Self: Mul<EK, RawCiphertext<'c>, RawPlaintext<'m>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<u64>>,
sourceimpl<EK, C> Mul<EK, u64, C, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'m, 'c, 'd> Self: Mul<EK, RawPlaintext<'m>, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<Vec<u64>>>,
impl<EK, C> Mul<EK, u64, C, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'m, 'c, 'd> Self: Mul<EK, RawPlaintext<'m>, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<Vec<u64>>>,
sourceimpl<EK, C> Mul<EK, u64, C, EncodedCiphertext<u64>> for Paillierwhere
for<'m, 'c, 'd> Self: Mul<EK, RawPlaintext<'m>, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<u64>>,
impl<EK, C> Mul<EK, u64, C, EncodedCiphertext<u64>> for Paillierwhere
for<'m, 'c, 'd> Self: Mul<EK, RawPlaintext<'m>, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<u64>>,
sourceimpl<T: PartialEq> PartialEq<EncodedCiphertext<T>> for EncodedCiphertext<T>
impl<T: PartialEq> PartialEq<EncodedCiphertext<T>> for EncodedCiphertext<T>
sourcefn eq(&self, other: &EncodedCiphertext<T>) -> bool
fn eq(&self, other: &EncodedCiphertext<T>) -> bool
sourceimpl<EK, C> Rerandomize<EK, C, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'c, 'd> Self: Rerandomize<EK, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<Vec<u64>>>,
impl<EK, C> Rerandomize<EK, C, EncodedCiphertext<Vec<u64, Global>>> for Paillierwhere
for<'c, 'd> Self: Rerandomize<EK, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<Vec<u64>>>,
sourcefn rerandomize(ek: &EK, c: C) -> EncodedCiphertext<Vec<u64>>
fn rerandomize(ek: &EK, c: C) -> EncodedCiphertext<Vec<u64>>
Rerandomise ciphertext
c
to hide any history of which homomorphic operations were
used to compute it, making it look exactly like a fresh encryption of the same plaintext. Read moresourceimpl<EK, C> Rerandomize<EK, C, EncodedCiphertext<u64>> for Paillierwhere
for<'c, 'd> Self: Rerandomize<EK, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<u64>>,
impl<EK, C> Rerandomize<EK, C, EncodedCiphertext<u64>> for Paillierwhere
for<'c, 'd> Self: Rerandomize<EK, RawCiphertext<'c>, RawCiphertext<'d>>,
C: Borrow<EncodedCiphertext<u64>>,
sourcefn rerandomize(ek: &EK, c: C) -> EncodedCiphertext<u64>
fn rerandomize(ek: &EK, c: C) -> EncodedCiphertext<u64>
Rerandomise ciphertext
c
to hide any history of which homomorphic operations were
used to compute it, making it look exactly like a fresh encryption of the same plaintext. Read moresourceimpl<T> Serialize for EncodedCiphertext<T>
impl<T> Serialize for EncodedCiphertext<T>
impl<T> StructuralPartialEq for EncodedCiphertext<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for EncodedCiphertext<T>where
T: RefUnwindSafe,
impl<T> Send for EncodedCiphertext<T>where
T: Send,
impl<T> Sync for EncodedCiphertext<T>where
T: Sync,
impl<T> Unpin for EncodedCiphertext<T>where
T: Unpin,
impl<T> UnwindSafe for EncodedCiphertext<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more