This is a rebase of #546. See the original PR for a full description, but in short, this introduces a new constant-time multiplication algorithm with precomputation, with better speed/size tradeoffs. It is more flexible, allowing both better speeds with the same table size, or smaller table sizes for the same speed. It permits extrmely small tables with still reasonable speeds.
In addition to the original PR, this also:
- Removes the old ecmult algorithm entirely
- Makes the tunables configurable through
configure
, and tests a few combinations in Travis.