Trait PublicKeyEncryptedFromParts

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl PublicKeyEncryptedFromParts for CredentialVault

Source§

fn from_parts( ec_public_key: X25519Public, pq_ciphertext: MlKemCiphertext, credentials_ciphertext: Vec<u8>, ) -> Self

Source§

impl PublicKeyEncryptedFromParts for SealedEnvelopeId

Source§

fn from_parts( ec_public_key: X25519Public, pq_ciphertext: MlKemCiphertext, envelope_id_ciphertext: Vec<u8>, ) -> Self

Source§

impl PublicKeyEncryptedFromParts for SealedMessageVaultId

Source§

fn from_parts( ec_public_key: X25519Public, pq_ciphertext: MlKemCiphertext, message_vault_id_ciphertext: Vec<u8>, ) -> Self

Implementors§