Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Aug 4, 2024

The previous implementation runs in variable-time with respect to g. However in the event both inputs are secret a fully constant-time implementation is required.

This implements Bernstein-Yang in constant-time with respect to both parameters by computing a worst case number of iterations for the algorithm to converge, partially sharing the implementation with #632.

@tarcieri tarcieri mentioned this pull request Aug 4, 2024
3 tasks
The previous implementation runs in variable-time with respect to `g`.
However in the event both inputs are secret a fully constant-time
implementation is required.

This implements Bernstein-Yang in constant-time with respect to both
parameters by computing a worst case number of iterations for the
algorithm to converge, partially sharing the implementation with #632.
@tarcieri tarcieri force-pushed the boxed-bernstein-yang-constant-time branch from d4a65e3 to f3e3e8b Compare August 4, 2024 23:49
@tarcieri tarcieri merged commit 94a825c into master Aug 5, 2024
@tarcieri tarcieri deleted the boxed-bernstein-yang-constant-time branch August 5, 2024 00:10
@tarcieri tarcieri mentioned this pull request Jan 22, 2025
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.

2 participants