Page MenuHomePhabricator

[SECP256K1] Use bit ops instead of int mult for constant-time logic in gej_add_ge
ClosedPublic

Authored by Fabien on Apr 8 2021, 14:55.

Details

Summary
Nothing is wrong with the current implementation. But it looks out of
place because we generally prefer bit operations because they're faster
and are more likely constant-time.

Backport of secp256k1#882

Test Plan
ninja check-secp256k1

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable