New experimental EC implementation (P-256, only 32-bit multiplications, meant for Cortex-M0/M0+).

This commit is contained in:
Thomas Pornin 2017-01-02 22:19:49 +01:00
parent bf809dfae5
commit 6dd8c51ba7
7 changed files with 1092 additions and 3 deletions

View file

@ -369,6 +369,16 @@ typedef struct {
*/
extern const br_ec_impl br_ec_prime_i31;
/**
* \brief EC implementation "i15" for P-256.
*
* This implementation uses specialised code for curve secp256r1 (also
* known as NIST P-256), with Karatsuba decomposition, and fast modular
* reduction thanks to the field modulus special format. Only 32-bit
* multiplications are used (with 32-bit results, not 64-bit).
*/
extern const br_ec_impl br_ec_p256_i15;
/**
* \brief Convert a signature from "raw" to "asn1".
*