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 more constant operation? #133

Open
oddcoder opened this issue Jul 9, 2024 · 3 comments
Open

Add more constant operation? #133

oddcoder opened this issue Jul 9, 2024 · 3 comments

Comments

@oddcoder
Copy link

oddcoder commented Jul 9, 2024

While implementing NTRU, I noticed I needed a constant time sorting algorithm and constant time division. Would it make sense to move the implementation to subtle instead to make them accessible to other implementers?

@tarcieri
Copy link
Contributor

@oddcoder things like constant time division may be more the purview of something like crypto-bigint, which already implements it (and may other operations)

@oddcoder
Copy link
Author

noted! I think I will just use that in my implementation, but do you that constant time sorting belong here ? or an other place? If not I can just keep it as part of ntru implementation

@tarcieri
Copy link
Contributor

Constant-time sorting built on traits like ConstantTimeLess/ConstantTimeEq/ConstantTimeGreater sounds potentially useful

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