test: pin verify_strict, the verify_binding order and independent seeds (QA S-01 to S-03)
Ported from QA's proof tests for PR #2 (qa_s03 to qa_s05): - S-01, sig_halves: an Ed25519 half with a small-order R (the identity, s = H(R || A || M')·a from a throwaway key's own scalar) is accepted by plain verify and refused by verify_strict; Arcanum must refuse it. - S-02, sig_every_byte: a forged window that also excludes now gives InvalidSignature, never OutsideValidity. - S-03, sig_composite: generate draws exactly 64 bytes, and the two seeds are those bytes in order (RFC 10073 3.1, independent component keys). Each mutation QA describes now fails (applied to src/sign.rs, reverted): Q1 verify_strict -> verify fails the S-01 test; Q3 now checked before the signature fails the S-02 test; Q4 the Ed25519 seed copied from the ML-DSA seed fails the S-03 test. Adds curve25519-dalek =5.0.0 as a dev-dependency (already in the lock) for the scalar arithmetic.
This commit is contained in:
Generated
+1
@@ -20,6 +20,7 @@ dependencies = [
|
||||
"base64",
|
||||
"chacha20",
|
||||
"chacha20poly1305",
|
||||
"curve25519-dalek",
|
||||
"ed25519-dalek",
|
||||
"hex",
|
||||
"hkdf",
|
||||
|
||||
Reference in New Issue
Block a user