pub fn slh_sign<P: Params>(
m: &[u8],
sk: &[u8],
rng: &mut dyn CryptoRng,
) -> Result<Vec<u8>, SlhDsaError>Expand description
Sign a message with randomized (hedged) signing.
Implements Algorithm 22 of FIPS 205. Draws n bytes of randomness from rng to
use as the addrnd parameter, providing hedged signing that remains secure even
if the RNG is somewhat predictable.
Returns the full SLH-DSA signature or an error if the key is invalid, the RNG
fails, or — when sca-fors-redundancy is enabled — the T1-C FORS
recompute-and-compare check detects a fault.