RSA Accelerator: Add mod_exp, refactor to avoid memory allocation & copying

Not fully working at the moment, mod_exp has a bug.
This commit is contained in:
Angus Gratton
2016-09-20 21:24:58 +10:00
parent 6b3bc4d8c5
commit 9632c8e56c
4 changed files with 502 additions and 611 deletions

View File

@@ -251,7 +251,7 @@
Uncommenting these macros will use the hardware-accelerated
implementations.
*/
//#define MBEDTLS_MPI_EXP_MOD_ALT
#define MBEDTLS_MPI_EXP_MOD_ALT
#define MBEDTLS_MPI_MUL_MPI_ALT
/**