Skip to content

elliptic-curve: add ops::MulVartime trait and bound Scalar#2379

Merged
tarcieri merged 1 commit intomasterfrom
elliptic-curve/mul-vartime-trait
Apr 9, 2026
Merged

elliptic-curve: add ops::MulVartime trait and bound Scalar#2379
tarcieri merged 1 commit intomasterfrom
elliptic-curve/mul-vartime-trait

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented Apr 9, 2026

Adds a variable-time equivalent of the Mul trait with a corresponding mul_vartime method. This provides a place to plug in wNAF which is otherwise always available (and can fall back on constant-time operations if the alloc feature isn't enabled).

The trait has been added to the bounds for CurveArithmetic::Scalar, with requirements to support variable-time multiplication for affine and projective points.

Adds a variable-time equivalent of the `Mul` trait with a corresponding
`mul_vartime` method. This provides a place to plug in wNAF which is
otherwise always available (and can fall back on constant-time
operations if the `alloc` feature isn't enabled).
@tarcieri tarcieri merged commit d4c0d46 into master Apr 9, 2026
15 checks passed
@tarcieri tarcieri deleted the elliptic-curve/mul-vartime-trait branch April 9, 2026 14:49
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.

1 participant