logo

Trait kem::AuthDecapsulator[][src]

pub trait AuthDecapsulator<EK: EncappedKey> {
    fn try_auth_decap(
        &self,
        encapped_key: &EK,
        sender_pubkey: &EK::SenderPublicKey
    ) -> Result<GenericArray<u8, EK::NSecret>, Error>; }
Expand description

Represents the functionality of a authenticated-key decapsulator, where Self is a cryptographic key

Required methods

Attempt to decapsulate the given encapsulated key. The resulting shared secret is bound to the provided sender identity, thus providing authenticity. Returns the shared secret success, or an error if something went wrong.

Implementors