mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-28 10:57:56 +08:00
mbedtls: disable timing, unused and needs tuning on ProxSpace
This commit is contained in:
parent
cd5f9e9b5f
commit
eee13d9eb0
4 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,6 @@ add_library(pm3rrg_rdv4_mbedtls STATIC
|
|||
../../common/mbedtls/entropy_poll.c
|
||||
../../common/mbedtls/entropy.c
|
||||
../../common/mbedtls/error.c
|
||||
../../common/mbedtls/timing.c
|
||||
../../common/mbedtls/ecp.c
|
||||
../../common/mbedtls/ecp_curves.c
|
||||
../../common/mbedtls/certs.c
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include "base64.h"
|
||||
#include "ctr_drbg.h"
|
||||
#include "entropy.h"
|
||||
#include "timing.h"
|
||||
//#include "timing.h" // Beware it requires adjustments for ProxSpace
|
||||
#include "crypto_test.h"
|
||||
#include "sda_test.h"
|
||||
#include "dda_test.h"
|
||||
|
@ -56,6 +56,7 @@ int ExecuteCryptoTests(bool verbose, bool ignore_time, bool include_slow_tests)
|
|||
res = mbedtls_entropy_self_test(verbose);
|
||||
if (res && !ignore_time) TestFail = true;
|
||||
|
||||
/*
|
||||
// retry for CI (when resources too low)
|
||||
for (int i = 0; i < 3; i++) {
|
||||
res = mbedtls_timing_self_test(verbose);
|
||||
|
@ -64,6 +65,7 @@ int ExecuteCryptoTests(bool verbose, bool ignore_time, bool include_slow_tests)
|
|||
PrintAndLogEx(WARNING, "Repeat timing test " _RED_("%d"), i + 1);
|
||||
}
|
||||
if (res && !ignore_time) TestFail = true;
|
||||
*/
|
||||
|
||||
res = mbedtls_ctr_drbg_self_test(verbose);
|
||||
if (res) TestFail = true;
|
||||
|
|
|
@ -12,7 +12,6 @@ MYSRCS = \
|
|||
entropy_poll.c \
|
||||
entropy.c \
|
||||
error.c \
|
||||
timing.c \
|
||||
ecp.c \
|
||||
ecp_curves.c \
|
||||
certs.c \
|
||||
|
|
|
@ -3438,7 +3438,7 @@
|
|||
*
|
||||
* This module is used by the HAVEGE random number generator.
|
||||
*/
|
||||
#define MBEDTLS_TIMING_C
|
||||
//#define MBEDTLS_TIMING_C
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_VERSION_C
|
||||
|
|
Loading…
Reference in a new issue