pub fn slh_keygen<P: Params>(
rng: &mut dyn CryptoRng,
) -> Result<(Vec<u8>, Vec<u8>), SlhDsaError>Expand description
Generate an SLH-DSA key pair using random seeds from the provided RNG.
Implements Algorithm 21 of FIPS 205. Draws three independent n-byte random
values (SK.seed, SK.prf, PK.seed) from rng, then delegates to
slh_keygen_internal to compute the hypertree root and assemble the keys.
Returns (secret_key, public_key) or an error if the RNG fails.