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

internal/sm2ec: make SetBytes constant time #309

Open
emmansun opened this issue Mar 4, 2025 · 0 comments
Open

internal/sm2ec: make SetBytes constant time #309

emmansun opened this issue Mar 4, 2025 · 0 comments
Assignees
Labels

Comments

@emmansun
Copy link
Owner

emmansun commented Mar 4, 2025

SetBytes doesn't need to be constant time for the uses we make of it in the standard library (ECDH and ECDSA/SM2 public keys), but it doesn't cost much to make it constant time for users of the re-exported package, or even just to save the next person from convincing themselves that it's ok for it not to be constant time.

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

No branches or pull requests

1 participant