HomeThat World

More efficient add_assign and neg (#18)

Authored by sorpaas on Tue, Nov 19, 1:04 AM.

Description

More efficient add_assign and neg (#18)

  • scalar: more efficient add_assign
  • We never need to check the overflow flag in add_in_place, so it's removed.
  • Move more intermediate value to stay as subtle::Choice, so that constant-time will be easiler in the future.
  • scalar: should use or (|)
  • scalar: replace neg_in_place with Neg trait
  • scalar: missing !

Details

Committed
GitHub <noreply@github.com>Tue, Nov 19, 1:04 AM
Parents
rSECP7a7ceb1711b3: Make is_high constant time (#17)
Branches
Unknown
Tags
Unknown
Build Status
Buildable 290
Build 357: libsecp256k1-rsJenkins