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

Use ConstantTimeMath for Signer #281

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

paragonie-security
Copy link
Contributor

@paragonie-security paragonie-security commented Jul 20, 2021

Builds on #280, but uses ConstantTimeMath for Signer.

a2ef137

…n suitable for handling private keys.

Fixes phpecc#279.

To use this algorithm, pass the `ConstantTimeMath` object to the `Signer` or `Random` constructor.

(Easy-ECC will do this automatically for users when constant-time arithmetic is needed.)
Remove unnecessary import.
The reference implementation in sodium_compat assumes little-endian byte order. GMP assumes big-endian.
@paragonie-security
Copy link
Contributor Author

Feel free to reject this one if you want to approach this differently,@afk11.

paragonie-security added a commit to paragonie/easy-ecc that referenced this pull request Jun 2, 2022
This is mostly because phpecc/phpecc#280 and phpecc/phpecc#281 aren't merged.

See discussion in phpecc/phpecc#279
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.

None yet

1 participant