Skip to main content

MlKem512

Struct MlKem512 

Source
pub struct MlKem512;
Expand description

ML-KEM-512 parameter set (NIST security category 1).

Provides 128-bit classical security. Smallest key and ciphertext sizes.

PropertyValue
EK_LEN800 bytes
DK_LEN1632 bytes
CT_LEN768 bytes

Trait Implementations§

Source§

impl Params for MlKem512

Source§

const K: usize = 2

Module rank (number of polynomials per vector). Determines security level.
Source§

const ETA1: usize = 3

CBD sampling parameter for secret key and first error vector.
Source§

const ETA2: usize = 2

CBD sampling parameter for second error vectors during encryption.
Source§

const DU: usize = 10

Compression bit-width for the u component of ciphertexts.
Source§

const DV: usize = 4

Compression bit-width for the v component of ciphertexts.
Source§

const EK_LEN: usize = _

Encapsulation key size in bytes: 384*k + 32.
Source§

const DK_LEN: usize = _

Decapsulation key size in bytes: 768*k + 96. Read more
Source§

const CT_LEN: usize = _

Ciphertext size in bytes: 32*(du*k + dv).
Source§

const SS_LEN: usize = 32

Shared secret size in bytes. Always 32 (256 bits) for all parameter sets.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.