cfrg / draft-irtf-cfrg-det-sigs-with-noise

Other
1 stars 0 forks source link

Test vectors including Z #11

Open emanjon opened 6 months ago

emanjon commented 6 months ago

Taylor R Campbell wrote: Where does one find test vectors for the deterministic functions defined here with the extra randomization parameters Z?

https://mailarchive.ietf.org/arch/msg/cfrg/jmfn1b880x7-7gZKb7_uwLvE3oU/

dannyniu commented 5 months ago

2023-hedged-dss.testvecs-local.d.zip

I've generated preliminary test vectors. Test vectors for some parameters and features (e.g. P-521, EdDSA pre-hash and context strings) hasn't been generated for now, although it should be easy.

The zip file also contain scripts and codes that generated the test vector. To use it, place the "2023-hedged-dss.testvecs-local.d" directory under the "utils" directory in the "2023-hedged-dss" branch of MySuiteA, and hack it all you want.

I encourage 3rd-party implementations to cross check on the correctness of the test vectors, to find potential errors that may have crept in.


2024-03-18 Update

The test vectors for ECDSA instantiated with P-384/SHAKE-256 + KMAC-256 was in error due to an inconsistency between my implementation and the *-03 draft. I've noted this and raised some other concerns in https://github.com/cfrg/draft-irtf-cfrg-det-sigs-with-noise/issues/2#issuecomment-2002716578

I've revised the test vectors in this regard: 2023-hedged-dss.testvecs-local.d.zip