hwcrypto bignum: Implement multiplication modulo

Fixes case where hardware bignum multiplication fails due to either
operand >2048 bits.
This commit is contained in:
Angus Gratton
2016-09-20 21:02:07 +10:00
parent 1a6dd44d03
commit 6b3bc4d8c5
2 changed files with 223 additions and 26 deletions

View File

@@ -250,10 +250,8 @@
/* The following MPI (bignum) functions have ESP32 hardware support,
Uncommenting these macros will use the hardware-accelerated
implementations.
Disabled as number of limbs limited by bug. Internal TW#7112.
*/
#define MBEDTLS_MPI_EXP_MOD_ALT
//#define MBEDTLS_MPI_EXP_MOD_ALT
#define MBEDTLS_MPI_MUL_MPI_ALT
/**