EncapsulateDeterministic

Trait EncapsulateDeterministic 

Source
pub trait EncapsulateDeterministic<EK, SS> {
    type Error: Debug;

    // Required method
    fn encapsulate_deterministic(
        &self,
        m: &B32,
    ) -> Result<(EK, SS), Self::Error>;
}
Expand description

A value that can be encapsulated to. Note that this interface is not safe: In order for the KEM to be secure, the m input must be randomly generated.

Required Associated Types§

Source

type Error: Debug

Encapsulation error

Required Methods§

Source

fn encapsulate_deterministic(&self, m: &B32) -> Result<(EK, SS), Self::Error>

Encapsulates a fresh shared secret.

§Errors

Will vary depending on the underlying implementation.

Implementors§