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

Add tests for wrapping c over $p$ #99

Open
skaunov opened this issue Feb 23, 2024 · 1 comment
Open

Add tests for wrapping c over $p$ #99

skaunov opened this issue Feb 23, 2024 · 1 comment

Comments

@skaunov
Copy link
Collaborator

skaunov commented Feb 23, 2024

It might be a RustCrypto thing which just panics on certain methods when bytes yields the value larger than $p$, but it's still a worthy case to have in the suite across implementation to be sure that wrapping is done correctly, and that signatures equality can be facilitated.

@skaunov skaunov converted this from a draft issue Feb 23, 2024
@skaunov
Copy link
Collaborator Author

skaunov commented Feb 23, 2024

  1. add $p$ to the test signature and verify
  2. find a hash greater than $p$
  3. test the signing-verifying with it
  4. consider adding Eq kind of trait in Rust implementations

(also hash improbable to be equal $p$ and basically should be rejected)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant