pub trait FromSeed: Kem {
type SeedSize: ArraySize;
// Required method
fn from_seed(
seed: &Array<u8, Self::SeedSize>,
) -> (Self::DecapsulationKey, Self::EncapsulationKey);
}Expand description
Initialize a KEM from a Seed.
Many KEMs support a fully deterministic and infallible initialization from a short seed value.
This trait is blanket impl’d for any Kem whose DecapsulationKey impls the KeyInit
trait.
Required Associated Types§
Required Methods§
Sourcefn from_seed(
seed: &Array<u8, Self::SeedSize>,
) -> (Self::DecapsulationKey, Self::EncapsulationKey)
fn from_seed( seed: &Array<u8, Self::SeedSize>, ) -> (Self::DecapsulationKey, Self::EncapsulationKey)
Using the provided seed value, create a KEM keypair.
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.