Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/project wycheproof eddsa #11

Merged
merged 2 commits into from
Jan 29, 2021

Conversation

nickray
Copy link
Member

@nickray nickray commented Jan 29, 2021

The state from #5 (comment), merged for convenience as the API is changing.

eddsa-tests: 'declarative' parser for Wycheproof EDDSA test json file
based on serde.

eddsa-tests-gen: function like macro to generate a function call of
fixed signature for each test case. This is not yet very flexible and
not parameterized at all. TODO TODO.

However, good enough to generate a test binary to run all test cases
either in QEMU or on real hardware.

(4 tests of 145 failing at this time)
There are two macros now. The first one is a function like macro for
generating the equivalent of the JSON data as static Rust data during
compilation. This can be used e.g. for a no_std on-target test without
the need for further runtime parsing. (See
qemu-tests/src/bin/wycheproof_on_target/main.rs and `make test' in
qemu-tests.)

The other one is a derive macro to be applied to a test function that
handles one EDDSA test. A call marked [#test] to this function will be
generated for each test case. This way, proper Rust tests can be
generated. (See tests/wycheproof_eddsa.rs and `make test' in the main
salty directory.)
@nickray nickray merged commit 8812228 into ycrypto:main Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants