summaryrefslogtreecommitdiff
path: root/board/cr50/fips_rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cr50/fips_rand.c')
-rw-r--r--board/cr50/fips_rand.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/board/cr50/fips_rand.c b/board/cr50/fips_rand.c
index 2b3eae1b65..926af66f96 100644
--- a/board/cr50/fips_rand.c
+++ b/board/cr50/fips_rand.c
@@ -335,7 +335,11 @@ int fips_p256_ecdsa_sign(const p256_int *key, const p256_int *message,
return dcrypto_p256_ecdsa_sign(&fips_drbg, key, message, r, s);
}
-#ifdef CRYPTO_TEST_SETUP
+#ifndef CRYPTO_TEST_CMD_RAND_PERF
+#define CRYPTO_TEST_CMD_RAND_PERF 0
+#endif
+
+#if defined(CRYPTO_TEST_SETUP) && CRYPTO_TEST_CMD_RAND_PERF
#include "endian.h"
#include "extension.h"
#include "trng.h"