pub trait PublicKeyDecrypter<A>{
// Provided methods
fn decrypt<D>(&self, encrypted: &A, salts: &Salts) -> Result<D, CryptError>
where D: ProstDecode + Decryptable<A> { ... }
fn mac_shared_secret(
&self,
encrypted: &A,
salts: &Salts,
) -> Zeroizing<[u8; 32]> { ... }
}Expand description
Decrypts public key encrypted data.
Provides the decryption interface for participants who hold the secret keys needed to decrypt public key encrypted data structures.
Provided Methods§
Sourcefn decrypt<D>(&self, encrypted: &A, salts: &Salts) -> Result<D, CryptError>where
D: ProstDecode + Decryptable<A>,
fn decrypt<D>(&self, encrypted: &A, salts: &Salts) -> Result<D, CryptError>where
D: ProstDecode + Decryptable<A>,
Decrypt hybrid encrypted data using participant’s secret keys.
Returns the decrypted and decoded data structure.
Generate the MAC shared secret for verifying key authenticity.
This secret is used to verify that the sender’s verifying keys are authentic and haven’t been tampered with during transmission.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.