pub struct EncryptedAttribute {
pub value: ElGamal,
}Fields§
§value: ElGamalTrait Implementations§
Source§impl Clone for EncryptedAttribute
impl Clone for EncryptedAttribute
Source§fn clone(&self) -> EncryptedAttribute
fn clone(&self) -> EncryptedAttribute
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 EncryptedAttribute
impl Debug for EncryptedAttribute
Source§impl Deref for EncryptedAttribute
impl Deref for EncryptedAttribute
Source§impl<'de> Deserialize<'de> for EncryptedAttribute
impl<'de> Deserialize<'de> for EncryptedAttribute
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 EncryptedAttribute
impl ElGamalEncrypted for EncryptedAttribute
type UnencryptedType = Attribute
Source§impl Encrypted for EncryptedAttribute
impl Encrypted for EncryptedAttribute
Source§type UnencryptedType = Attribute
type UnencryptedType = Attribute
The unencrypted version of this type.
Source§type SecretKeyType = AttributeSessionSecretKey
type SecretKeyType = AttributeSessionSecretKey
The session secret key type required for decryption.
Source§type GlobalSecretKeyType = AttributeGlobalSecretKey
type GlobalSecretKeyType = AttributeGlobalSecretKey
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 EncryptedAttribute
impl From<ElGamal> for EncryptedAttribute
Source§impl HasStructure for EncryptedAttribute
Available on crate feature batch only.
impl HasStructure for EncryptedAttribute
Available on crate feature
batch only.Source§impl Hash for EncryptedAttribute
impl Hash for EncryptedAttribute
Source§impl PartialEq for EncryptedAttribute
impl PartialEq for EncryptedAttribute
Source§impl Rekeyable for EncryptedAttribute
impl Rekeyable for EncryptedAttribute
Source§impl Serialize for EncryptedAttribute
impl Serialize for EncryptedAttribute
Source§impl Transcryptable for EncryptedAttribute
impl Transcryptable for EncryptedAttribute
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 EncryptedAttribute
impl Eq for EncryptedAttribute
impl StructuralPartialEq for EncryptedAttribute
Auto Trait Implementations§
impl Freeze for EncryptedAttribute
impl RefUnwindSafe for EncryptedAttribute
impl Send for EncryptedAttribute
impl Sync for EncryptedAttribute
impl Unpin for EncryptedAttribute
impl UnwindSafe for EncryptedAttribute
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