Merge branch 'feature/calculate_faster_in_bignum' into 'master'

feat(crypto): calculate faster in bignum

See merge request sdk/ESP8266_RTOS_SDK!475
This commit is contained in:
Dong Heng
2018-09-11 15:53:35 +08:00
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,11 @@
menu "wpa_supplicant"
config LTM_FAST
bool "Use faster div, esptmod, sqr, montgomery multiplication algorithm"
default y
help
Enable the option can enable faster div, faster exptmod, faster sqr, fast
montgomery multiplication algorithm. Enable this option will cost about
3K ROM more than disable this option.
endmenu

View File

@ -17,6 +17,9 @@
#include "os.h"
#include "stdarg.h"
#if CONFIG_LTM_FAST
#define LTM_FAST
#endif
#ifndef CHAR_BIT
#define CHAR_BIT 8