summaryrefslogtreecommitdiff
path: root/fuzz
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-12-05 13:51:06 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-12-06 22:06:26 -0800
commita45e42da1a5c16a94d4d02531802f87061b8891c (patch)
tree7b7697d05a32e987ef99437a78b26a1aa91df8e0 /fuzz
parent74a598dd11bdfb03001e8ab8e62757beb8622583 (diff)
downloadchrome-ec-a45e42da1a5c16a94d4d02531802f87061b8891c.tar.gz
cr50: provide DCRYPTO_ladder_is_enabled() for test and fuzz builds
This function is called from common/nvmem.c, it should be available when compiling for tests, the stub could be filled up later when new tests are added. BRANCH=cr50, cr50-mp BUG=b:119221935 TEST=make buildall -j still succeeds. Change-Id: I082292818c7f2b10336c9a7c49e0a9195e25a12b Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1363816 Reviewed-by: Allen Webb <allenwebb@google.com>
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/cr50_fuzz.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/fuzz/cr50_fuzz.cc b/fuzz/cr50_fuzz.cc
index 67103ad5b0..4c842631bd 100644
--- a/fuzz/cr50_fuzz.cc
+++ b/fuzz/cr50_fuzz.cc
@@ -139,3 +139,7 @@ extern "C" int test_fuzz_one_input(const uint8_t* data, unsigned int size) {
}
return 0;
}
+
+extern "C" int DCRYPTO_ladder_is_enabled(void) {
+ return 1;
+}