mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
add fixed point ecc cache, --enable-fpecc, add locking down to crypt level next
This commit is contained in:
13
configure.ac
13
configure.ac
@@ -569,6 +569,19 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# FP ECC, Fixed Point cache ECC
|
||||||
|
AC_ARG_ENABLE([fpecc],
|
||||||
|
[ --enable-fpecc Enable Fixed Point cache ECC (default: disabled)],
|
||||||
|
[ ENABLED_FPECC=$enableval ],
|
||||||
|
[ ENABLED_FPECC=no ]
|
||||||
|
)
|
||||||
|
|
||||||
|
if test "$ENABLED_FPECC" = "yes"
|
||||||
|
then
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DFP_ECC"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# PSK
|
# PSK
|
||||||
AC_ARG_ENABLE([psk],
|
AC_ARG_ENABLE([psk],
|
||||||
[ --enable-psk Enable PSK (default: disabled)],
|
[ --enable-psk Enable PSK (default: disabled)],
|
||||||
|
@@ -909,7 +909,7 @@ void bench_eccKeyGen(void)
|
|||||||
ecc_key genKey;
|
ecc_key genKey;
|
||||||
double start, total, each, milliEach;
|
double start, total, each, milliEach;
|
||||||
int i;
|
int i;
|
||||||
const int genTimes = 5;
|
const int genTimes = 100;
|
||||||
|
|
||||||
/* 256 bit */
|
/* 256 bit */
|
||||||
start = current_time(1);
|
start = current_time(1);
|
||||||
@@ -933,7 +933,7 @@ void bench_eccKeyAgree(void)
|
|||||||
ecc_key genKey, genKey2;
|
ecc_key genKey, genKey2;
|
||||||
double start, total, each, milliEach;
|
double start, total, each, milliEach;
|
||||||
int i, ret;
|
int i, ret;
|
||||||
const int agreeTimes = 5;
|
const int agreeTimes = 100;
|
||||||
byte shared[1024];
|
byte shared[1024];
|
||||||
byte sig[1024];
|
byte sig[1024];
|
||||||
byte digest[32];
|
byte digest[32];
|
||||||
|
1493
ctaocrypt/src/ecc.c
1493
ctaocrypt/src/ecc.c
File diff suppressed because it is too large
Load Diff
@@ -97,6 +97,8 @@ CYASSL_API
|
|||||||
void ecc_init(ecc_key* key);
|
void ecc_init(ecc_key* key);
|
||||||
CYASSL_API
|
CYASSL_API
|
||||||
void ecc_free(ecc_key* key);
|
void ecc_free(ecc_key* key);
|
||||||
|
CYASSL_API
|
||||||
|
void ecc_fp_free(void);
|
||||||
|
|
||||||
|
|
||||||
/* ASN key helpers */
|
/* ASN key helpers */
|
||||||
|
Reference in New Issue
Block a user