Skip to main content

Shake256s

Struct Shake256s 

Source
pub struct Shake256s;
Expand description

SLH-DSA-SHAKE-256s parameter set (NIST security level 5, small signatures).

Provides 256-bit security with compact signatures but slower operations compared to Shake256f.

Trait Implementations§

Source§

impl Clone for Shake256s

Source§

fn clone(&self) -> Shake256s

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Shake256s

Source§

fn default() -> Shake256s

Returns the “default value” for a type. Read more
Source§

impl Params for Shake256s

Source§

const N: usize = 32

Security parameter n: hash output length in bytes. Read more
Source§

const H: usize = 64

Total hypertree height: h = d * h'. Read more
Source§

const D: usize = 8

Number of layers d in the hypertree. Read more
Source§

const H_PRIME: usize = 8

Height h' of each individual XMSS tree within the hypertree. Read more
Source§

const A: usize = 14

Height a of each FORS tree (each tree has 2^a leaves).
Source§

const K: usize = 22

Number k of FORS trees used per signature.
Source§

const M: usize = 47

Message digest length m in bytes, output by H_msg. Read more
Source§

const NAME: &'static str = "SLH-DSA-SHAKE-256s"

Human-readable name of this parameter set (e.g., "SLH-DSA-SHAKE-128f").
Source§

const LG_W: usize = 4

Winternitz parameter lg(w), always 4 for SHAKE-based parameter sets.
Source§

const W: usize = 16

Winternitz parameter w = 2^lg_w = 16. Read more
Source§

const LEN1: usize = _

WOTS+ parameter len1 = ceil(8*n / lg_w) = 2*n (since lg_w = 4). Read more
Source§

const LEN2: usize = 3

WOTS+ parameter len2 = 3 for all SHAKE-based parameter sets. Read more
Source§

const LEN: usize = _

WOTS+ parameter len = len1 + len2: total number of hash chains.
Source§

const PK_LEN: usize = _

Public key size in bytes: 2*n (PK.seed || PK.root).
Source§

const SK_LEN: usize = _

Secret key size in bytes: 4*n (SK.seed || SK.prf || PK.seed || PK.root).

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.