pub fn keygen<P: Params>(
rng: &mut dyn CryptoRng,
) -> Result<(Vec<u8>, Vec<u8>), MlDsaError>Expand description
Generate an ML-DSA key pair.
Implements Algorithm 1 of FIPS 204 (ML-DSA.KeyGen). Draws 32 random
bytes from rng and delegates to keygen_internal.
Returns (pk, sk) as byte vectors.
ยงErrors
Returns MlDsaError::RngFailure if the RNG cannot provide bytes.