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

p256::Scalar: implement Reduce<U512> #1042

Open
survived opened this issue Apr 25, 2024 · 1 comment
Open

p256::Scalar: implement Reduce<U512> #1042

survived opened this issue Apr 25, 2024 · 1 comment

Comments

@survived
Copy link
Contributor

I noticed that p256::Scalar does not implement Reduce<U512> trait. Other crates do have that: for instance, k256::Scalar does implement this trait. It makes it difficult to write generic code that uses this trait. Is there a reason for not implementing Reduce<U512> for p256::Scalar?

@tarcieri
Copy link
Member

It's a missing feature: p256 lacks support for wide reductions.

crypto-bigint now contains a generic implementation of modular arithmetic which should make it somewhat straightforward to implement.

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

No branches or pull requests

2 participants