Skip to main content

MlDsa87

Struct MlDsa87 

Source
pub struct MlDsa87;
Expand description

ML-DSA-87 parameter set (NIST security level 5).

Provides approximately 256 bits of classical security. Matrix dimensions are k=8, l=7 with eta=2.

Trait Implementations§

Source§

impl Params for MlDsa87

Source§

const K: usize = 8

Number of rows in the matrix A (dimension k).
Source§

const L: usize = 7

Number of columns in the matrix A (dimension l).
Source§

const ETA: usize = 2

Secret key coefficient bound: coefficients of s1, s2 lie in [-eta, eta].
Source§

const TAU: usize = 60

Number of +/-1 entries in the challenge polynomial c.
Source§

const BETA: i32 = 120

Signing bound beta = tau * eta. Candidate signatures with infinity norm >= gamma1 - beta are rejected.
Source§

const GAMMA1: i32

Masking range: coefficients of the masking vector y are sampled from [-(gamma1-1), gamma1].
Source§

const GAMMA2: i32

Decomposition parameter: controls the rounding used in HighBits/LowBits.
Source§

const OMEGA: usize = 75

Maximum number of non-zero hint entries allowed across all k hint polynomials.
Source§

const LAMBDA: usize = 256

Collision strength in bits; determines the length of the commitment hash c_tilde (lambda/4 bytes).
Source§

const BITLEN_2ETA: usize = 3

Helper constant: bit-length of 2*eta, used for encoding secret polynomials.
Source§

const BITLEN_GAMMA1_MINUS1: usize = 19

Helper constant: bit-length of gamma1 - 1, used for encoding z in signatures.
Source§

const PK_LEN: usize = _

Public key length in bytes: 32 (rho) + k * 320 (encoded t1).
Source§

const SK_LEN: usize = _

Secret key length in bytes.
Source§

const SIG_LEN: usize = _

Signature length in bytes.

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.