Skip to main content

SlhDsaShake192s

Struct SlhDsaShake192s 

Source
pub struct SlhDsaShake192s;
Expand description

Marker type implementing [quantaegis_core::Signature] for SLH-DSA-SHAKE-192s (NIST Security Category 3).

Implementations§

Source§

impl SlhDsaShake192s

Source

pub fn keygen_into<R: CryptoRng + ?Sized>( rng: &mut R, vk_out: &mut VerifyingKey, sk_out: &mut SigningKey, ) -> Result<()>

Generates a fresh key pair directly into caller-owned storage and volatile-zeroizes stack temporaries (FIPS 205, Algorithm 21).

Source

pub fn sign_deterministic( sk: &SigningKey, msg: &[u8], ctx: &[u8], ) -> Result<Signature>

Signs msg with context ctx in deterministic mode (opt_rand = PK.seed).

Trait Implementations§

Source§

impl Signature for SlhDsaShake192s

Source§

fn keygen<R: CryptoRng + ?Sized>( rng: &mut R, ) -> Result<(Self::VerifyingKey, Self::SigningKey)>

Generates a fresh key pair by value; FIPS/zeroization-critical callers should prefer Self::keygen_into to avoid safe-Rust return-slot staging copies.

Source§

type VerifyingKey = VerifyingKey

Public verifying key type.
Source§

type SigningKey = SigningKey

Private signing key type (must zeroize on drop).
Source§

type Sig = Signature

Signature type.
Source§

fn sign<R: CryptoRng + ?Sized>( sk: &Self::SigningKey, msg: &[u8], ctx: &[u8], rng: &mut R, ) -> Result<Self::Sig>

Signs msg with optional domain-separation context string ctx (at most 255 bytes in FIPS 204/205) using fresh randomness from rng (hedged mode). Read more
Source§

fn verify( vk: &Self::VerifyingKey, msg: &[u8], ctx: &[u8], sig: &Self::Sig, ) -> Result<()>

Verifies sig over msg and ctx using vk.

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.