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§
Sourcefn ec_public_key(&self) -> &X25519Public
fn ec_public_key(&self) -> &X25519Public
Access to the ephemeral X25519 public key used for encryption.
Sourcefn pq_ciphertext(&self) -> &MlKemCiphertext
fn pq_ciphertext(&self) -> &MlKemCiphertext
Access to the ML-KEM ciphertext containing the encapsulated key.