pub struct Kyber256Params;
Expand description
Example: Kyber-256 parameter set
Trait Implementations§
Source§impl Clone for Kyber256Params
impl Clone for Kyber256Params
Source§fn clone(&self) -> Kyber256Params
fn clone(&self) -> Kyber256Params
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Kyber256Params
impl Debug for Kyber256Params
Source§impl Modulus for Kyber256Params
impl Modulus for Kyber256Params
Source§const BARRETT_MU: u128 = 10_569_051_393u128
const BARRETT_MU: u128 = 10_569_051_393u128
Barrett reduction constant mu = floor(2^k / Q)
Set to 0 for dynamic computation
Source§impl NttModulus for Kyber256Params
impl NttModulus for Kyber256Params
Source§const ZETAS: &'static [u32]
const ZETAS: &'static [u32]
Precomputed twiddle factors for forward NTT
CRITICAL: For Dilithium, these are stored in MONTGOMERY domain (ζ·R mod q)
exactly as in the FIPS-204 reference implementation.
Do NOT convert them again - that would give ζ·R² mod q!
Source§const PSIS: &'static [u32]
const PSIS: &'static [u32]
Twist factors ψ_i = ω^(bitrev(i)) in STANDARD domain (length N)
These are the N-th roots of the primitive 2N-th root of unity
Required for twisted/negacyclic NTT (Dilithium)
NOTE: FIPS-204 reference implementation does NOT use these!
Source§const INV_PSIS: &'static [u32]
const INV_PSIS: &'static [u32]
Inverse twist factors ψ_i^(-1) in STANDARD domain (length N)
Required for inverse twisted/negacyclic NTT (Dilithium)
NOTE: FIPS-204 reference implementation does NOT use these!
Source§const POST_INVNTT_MODE: PostInvNtt = PostInvNtt::Standard
const POST_INVNTT_MODE: PostInvNtt = PostInvNtt::Standard
How the coefficients should be post-processed after the inverse NTT. Read more
Auto Trait Implementations§
impl Freeze for Kyber256Params
impl RefUnwindSafe for Kyber256Params
impl Send for Kyber256Params
impl Sync for Kyber256Params
impl Unpin for Kyber256Params
impl UnwindSafe for Kyber256Params
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more