Struct nucypher_core::MessageKit [−][src]
pub struct MessageKit {
pub capsule: Capsule,
// some fields omitted
}Expand description
Encrypted message prepared for re-encryption.
Fields
capsule: CapsuleEncapsulated symmetric key for this message.
Implementations
Creates a new encrypted message for the given policy key.
Decrypts the message using the original (Alice’s) key.
pub fn decrypt_reencrypted(
&self,
sk: &SecretKey,
policy_encrypting_key: &PublicKey,
cfrags: &[VerifiedCapsuleFrag]
) -> Result<Box<[u8]>, ReencryptionError>
pub fn decrypt_reencrypted(
&self,
sk: &SecretKey,
policy_encrypting_key: &PublicKey,
cfrags: &[VerifiedCapsuleFrag]
) -> Result<Box<[u8]>, ReencryptionError>
Decrypts the message using the Bob’s key and re-encrypted capsule frags.
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for MessageKit
impl Send for MessageKit
impl Sync for MessageKit
impl Unpin for MessageKit
impl UnwindSafe for MessageKit
Blanket Implementations
Mutably borrows from an owned value. Read more
