Skip to main content

decode_composite

Function decode_composite 

Source
pub fn decode_composite(
    token: &str,
    ml_dsa_vk: &MlDsaVerifyingKey,
    ed25519_vk: &VerifyingKey,
    expected_aud: Option<&str>,
    dispatch: &CompositeJwtDispatch,
) -> Result<Claims, JwtError>
Expand description

Decode and verify a composite ML-DSA-65-Ed25519 JWT.

Per draft-ietf-jose-pq-composite-sigs, the signature is ml_dsa_sig (3309 bytes) ∥ ed25519_sig (64 bytes).