Skip to main content

decode_ml_dsa_65

Function decode_ml_dsa_65 

Source
pub fn decode_ml_dsa_65(
    token: &str,
    vk: &MlDsaVerifyingKey,
    expected_aud: Option<&str>,
) -> Result<Claims, JwtError>
Expand description

Decode and verify a JWT signed with ML-DSA-65 (alg: "ML-DSA-65").

Uses lenient audience validation (same as decode_with_key): if expected_aud is Some, a wrong aud is rejected but an absent aud is accepted.