Skip to main content

Module dual_sign

Module dual_sign 

Source
Expand description

CRY-02.05 PARTIAL — dual ML-DSA-65 + Ed25519 proof over one payload.

Both algorithms sign and verify the same caller message and context bytes. Binding is the existing length-delimited adapters (crate::crypto::network::mldsa SHA-384-compressed FIPS-204 ctx, and crate::crypto::network::ed25519 versioned u16be||label||u32be||ctx||u32be||msg). This wave does not invent a deterministic-CBOR COSE_Sign1 object. cose_sign1_frozen is false: the CRY-02.05 COSE_Sign1 object freeze remains open.

Dual proof: both signatures must verify. ML-DSA-only or Ed25519-only (including a stripped all-zero counterpart) is CryptoError::Unauthorized. single_algorithm_is_enough is false.

Draft until FND-03 freeze. No security proof is claimed.

Structs§

DualProof
Paired signatures over one bound payload. Both fields are required.

Functions§

cose_sign1_frozen
Honest: the CRY-02.05 COSE_Sign1 / deterministic-CBOR object is not frozen.
sign_dual
Sign message under context with both ML-DSA-65 and Ed25519.
single_algorithm_is_enough
One algorithm is never sufficient for a dual proof.
verify_dual
Verify ML-DSA-65 then Ed25519 over the same message and context.