Skip to main content

generate_dsa_keypair

Function generate_dsa_keypair 

Source
pub fn generate_dsa_keypair(
    rng: &mut impl CryptoRng,
) -> Result<KeyPair, CryptoError>
Expand description

Generate an ML-DSA-87 key pair using the provided CSPRNG.

The returned KeyPair stores the 32-byte seed as secret_key and the 2592-byte verifying key as public_key.

ยงErrors

This function currently always succeeds; the Result is kept for API uniformity with generate_kem_keypair.