pub struct EncryptedPseudonym {
pub value: ElGamal,
}Fields§
§value: ElGamalTrait Implementations§
Source§impl Clone for EncryptedPseudonym
impl Clone for EncryptedPseudonym
Source§fn clone(&self) -> EncryptedPseudonym
fn clone(&self) -> EncryptedPseudonym
Returns a duplicate 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 Debug for EncryptedPseudonym
impl Debug for EncryptedPseudonym
Source§impl Deref for EncryptedPseudonym
impl Deref for EncryptedPseudonym
Source§impl<'de> Deserialize<'de> for EncryptedPseudonym
impl<'de> Deserialize<'de> for EncryptedPseudonym
Source§fn 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
Source§impl ElGamalEncrypted for EncryptedPseudonym
impl ElGamalEncrypted for EncryptedPseudonym
type UnencryptedType = Pseudonym
Source§impl Encrypted for EncryptedPseudonym
impl Encrypted for EncryptedPseudonym
Source§type UnencryptedType = Pseudonym
type UnencryptedType = Pseudonym
The unencrypted version of this type.
Source§type SecretKeyType = PseudonymSessionSecretKey
type SecretKeyType = PseudonymSessionSecretKey
The session secret key type required for decryption.
Source§type GlobalSecretKeyType = PseudonymGlobalSecretKey
type GlobalSecretKeyType = PseudonymGlobalSecretKey
The global secret key type required for offline decryption.
Source§fn decrypt(
&self,
secret_key: &Self::SecretKeyType,
) -> Option<Self::UnencryptedType>
fn decrypt( &self, secret_key: &Self::SecretKeyType, ) -> Option<Self::UnencryptedType>
Decrypt this value using a session key.
With the
elgamal3 feature, returns None if the secret key doesn’t match.Source§fn decrypt_global(
&self,
secret_key: &Self::GlobalSecretKeyType,
) -> Option<Self::UnencryptedType>
fn decrypt_global( &self, secret_key: &Self::GlobalSecretKeyType, ) -> Option<Self::UnencryptedType>
Decrypt this value using a global key (offline decryption).
With the
elgamal3 feature, returns None if the secret key doesn’t match.Source§fn rerandomize<R>(&self, rng: &mut R) -> Self
fn rerandomize<R>(&self, rng: &mut R) -> Self
Rerandomize this encrypted value, creating a binary unlinkable copy of the same message.
Source§fn rerandomize_known(&self, factor: &RerandomizeFactor) -> Self
fn rerandomize_known(&self, factor: &RerandomizeFactor) -> Self
Rerandomize this encrypted value using a known rerandomization factor.
Source§impl From<ElGamal> for EncryptedPseudonym
impl From<ElGamal> for EncryptedPseudonym
Source§impl HasStructure for EncryptedPseudonym
Available on crate feature batch only.
impl HasStructure for EncryptedPseudonym
Available on crate feature
batch only.Source§impl Hash for EncryptedPseudonym
impl Hash for EncryptedPseudonym
Source§impl PartialEq for EncryptedPseudonym
impl PartialEq for EncryptedPseudonym
Source§impl Pseudonymizable for EncryptedPseudonym
impl Pseudonymizable for EncryptedPseudonym
Source§fn pseudonymize(&self, info: &PseudonymizationInfo) -> Self
fn pseudonymize(&self, info: &PseudonymizationInfo) -> Self
Pseudonymize this encrypted pseudonym from one domain and context to another.
Source§impl Rekeyable for EncryptedPseudonym
impl Rekeyable for EncryptedPseudonym
Source§impl Serialize for EncryptedPseudonym
impl Serialize for EncryptedPseudonym
Source§impl Transcryptable for EncryptedPseudonym
impl Transcryptable for EncryptedPseudonym
Source§fn transcrypt(&self, info: &TranscryptionInfo) -> Self
fn transcrypt(&self, info: &TranscryptionInfo) -> Self
Transcrypt this encrypted value from one domain and context to another.
impl Copy for EncryptedPseudonym
impl Eq for EncryptedPseudonym
impl StructuralPartialEq for EncryptedPseudonym
Auto Trait Implementations§
impl Freeze for EncryptedPseudonym
impl RefUnwindSafe for EncryptedPseudonym
impl Send for EncryptedPseudonym
impl Sync for EncryptedPseudonym
impl Unpin for EncryptedPseudonym
impl UnwindSafe for EncryptedPseudonym
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more