pub fn slh_verify_internal<P: Params>(m: &[u8], sig: &[u8], pk: &[u8]) -> boolExpand description
Internal SLH-DSA verification function.
Implements Algorithm 20 of FIPS 205. Reverses the signing pipeline:
- Parses
R,SIG_FORS, andSIG_HTfrom the signature. - Recomputes the message digest using
H_msg(R, PK.seed, PK.root, M). - Recovers the FORS public key from
SIG_FORSand the digest indices. - Verifies the hypertree signature
SIG_HTover the recovered FORS public key.
Returns true if the hypertree root matches PK.root, false otherwise.