Trait PublicKeyEncrypted

Source
pub trait PublicKeyEncrypted {
    // Required methods
    fn ec_public_key(&self) -> &X25519Public;
    fn pq_ciphertext(&self) -> &MlKemCiphertext;
}
Expand description

Encrypted with hybrid public key cryptography.

Provides access to both the ephemeral elliptic curve public key and the post-quantum KEM ciphertext that together form the hybrid encryption.

Required Methods§

Source

fn ec_public_key(&self) -> &X25519Public

Access to the ephemeral X25519 public key used for encryption.

Source

fn pq_ciphertext(&self) -> &MlKemCiphertext

Access to the ML-KEM ciphertext containing the encapsulated key.

Implementations on Foreign Types§

Source§

impl PublicKeyEncrypted for CredentialVault

Source§

impl PublicKeyEncrypted for SealedEnvelopeId

Source§

impl PublicKeyEncrypted for SealedMessageVaultId

Implementors§