Improved performance on dedicated P-256/i15 EC implementation.

This commit is contained in:
Thomas Pornin 2017-01-12 21:53:31 +01:00
parent 8f1043315f
commit 21743ae69e
2 changed files with 625 additions and 161 deletions

View file

@ -50,6 +50,15 @@
#define BR_SLOW_MUL 1
*/
/*
* When BR_SLOW_MUL15 is enabled, short multplications (on 15-bit words)
* are assumed to be substantially slow with regards to other integer
* operations, thus making it worth to make more integer operations if
* it allows using less multiplications.
*
#define BR_SLOW_MUL15 1
*/
/*
* When BR_CT_MUL31 is enabled, multiplications of 31-bit values (used
* in the "i31" big integer implementation) use an alternate implementation