Branch-free point addition #98

pull sipa wants to merge 2 commits into bitcoin-core:master from sipa:constadd changing 4 files +229 −5
  1. sipa commented at 7:06 PM on November 11, 2014: contributor

    No description provided.

  2. sipa force-pushed on Nov 11, 2014
  3. sipa renamed this:
    Constant-time point addition
    Branch-free point addition
    on Nov 11, 2014
  4. gmaxwell commented at 9:51 PM on November 11, 2014: contributor

    ACK. See nit.

  5. Branch-free point addition 9338dbf791
  6. sipa force-pushed on Nov 11, 2014
  7. sipa commented at 10:35 PM on November 11, 2014: contributor

    Unnitted.

  8. peterdettman commented at 3:37 AM on November 12, 2014: contributor

    Looks good. Perhaps an _fe_negate can be saved in _gej_add_ge; I'll put a snippet together.

    If there's a future possibility of a _gej_add_gej it might be worth flagging that r->x/y are written to before reads from b->x/y, to avoid a possibly silent bug injection down the road.

  9. peterdettman commented at 5:01 AM on November 12, 2014: contributor
  10. gmaxwell commented at 6:10 AM on November 12, 2014: contributor

    Yes, _gej_add_gej would be useful for e.g. ECDH, and also tests.

  11. Rearrange _gej_add_ge to save an _fe_negate fb1bb0b445
  12. sipa commented at 10:17 AM on November 12, 2014: contributor

    Cherry-picked.

  13. sipa merged this on Nov 12, 2014
  14. sipa closed this on Nov 12, 2014

  15. sipa referenced this in commit 7ff4770e15 on Nov 12, 2014

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 11:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me