Skip to main content

MlDsa65Ed25519

Struct MlDsa65Ed25519 

Source
pub struct MlDsa65Ed25519;
Expand description

Marker struct implementing quantaegis_core::Signature for IETF LAMPS MLDSA65-Ed25519-SHA512.

Implementations§

Source§

impl MlDsa65Ed25519

Source

pub fn from_seed(seed: &[u8; 64]) -> (VerifyingKey, SigningKey)

Derives a (VerifyingKey, SigningKey) pair deterministically from a 64-byte composite seed (mldsa65_seed[32] || ed25519_seed[32]).

Source

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

Signs msg with context ctx in deterministic mode.

Trait Implementations§

Source§

impl Signature for MlDsa65Ed25519

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 keygen<R: CryptoRng + ?Sized>( rng: &mut R, ) -> Result<(Self::VerifyingKey, Self::SigningKey)>

Generates a fresh (VerifyingKey, SigningKey) key pair using rng. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.