pub trait PublicKeyEncryptedFromParts {
// Required method
fn from_parts(
ec_public_key: X25519Public,
pq_ciphertext: MlKemCiphertext,
public_key_ciphertext: Vec<u8>,
) -> Self;
}Expand description
Constructed type from public key encryption components.
Allows encrypted data structures to be built from their parts: the ephemeral public key, an ephemeral KEM ciphertext, and the actual encrypted data.
Required Methods§
Sourcefn from_parts(
ec_public_key: X25519Public,
pq_ciphertext: MlKemCiphertext,
public_key_ciphertext: Vec<u8>,
) -> Self
fn from_parts( ec_public_key: X25519Public, pq_ciphertext: MlKemCiphertext, public_key_ciphertext: Vec<u8>, ) -> Self
Construct an encrypted data structure from its components.
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.