aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorCatena cyber <35799796+catenacyber@users.noreply.github.com>2018-08-10 16:53:09 +0200
committerMax Moroz <dor3s1@gmail.com>2018-08-10 07:53:09 -0700
commitce9a1e3a79960aa27072a1a263317b421c01ce1d (patch)
tree518a0064961fa27b39ce6b5052bfc5e61e6eb29e /projects
parent29a92d74413c5f7025ee80bada3dae5c21f1bdcc (diff)
downloadoss-fuzz-ce9a1e3a79960aa27072a1a263317b421c01ce1d.tar.gz
[ecc-diff-fuzzer] Adds cryptopp module to ecc-diff-fuzzer (#1703)
Diffstat (limited to 'projects')
-rw-r--r--projects/ecc-diff-fuzzer/Dockerfile1
-rwxr-xr-xprojects/ecc-diff-fuzzer/build.sh9
2 files changed, 9 insertions, 1 deletions
diff --git a/projects/ecc-diff-fuzzer/Dockerfile b/projects/ecc-diff-fuzzer/Dockerfile
index 3b2fd04a1..fce2cbe6a 100644
--- a/projects/ecc-diff-fuzzer/Dockerfile
+++ b/projects/ecc-diff-fuzzer/Dockerfile
@@ -23,5 +23,6 @@ RUN git clone --depth 1 https://github.com/ANSSI-FR/libecc.git libecc
RUN git clone --depth 1 https://github.com/openssl/openssl.git openssl
ADD https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.32.tar.bz2 libgpg-error-1.32.tar.bz2
RUN git clone --depth 1 https://github.com/gpg/libgcrypt gcrypt
+RUN git clone --depth 1 https://github.com/weidai11/cryptopp cryptopp
WORKDIR $SRC/
COPY build.sh $SRC/
diff --git a/projects/ecc-diff-fuzzer/build.sh b/projects/ecc-diff-fuzzer/build.sh
index 95a194f32..a5bebee47 100755
--- a/projects/ecc-diff-fuzzer/build.sh
+++ b/projects/ecc-diff-fuzzer/build.sh
@@ -16,6 +16,12 @@
################################################################################
# build projects
+#cryptopp
+(
+cd cryptopp
+make
+)
+
#gcrypt
(
cd gcrypt
@@ -63,5 +69,6 @@ $CC $CFLAGS -I. -I../mbedtls/include -c modules/mbedtls.c -o mbedtls.o
$CC $CFLAGS -I. -I../openssl/include -c modules/openssl.c -o openssl.o
$CC $CFLAGS -DWITH_STDLIB -I. -I../libecc/src -c modules/libecc.c -o libecc.o
$CC $CFLAGS -I. -I../gcrypt/src -c modules/gcrypt.c -o gcrypt.o
+$CXX $CXXFLAGS -I. -I../ -c modules/cryptopp.cpp -o cryptopp.o
-$CXX $CXXFLAGS fuzz_ec.o mbedtls.o libecc.o openssl.o gcrypt.o -o $OUT/fuzz_ec ../mbedtls/library/libmbedcrypto.a ../libecc/build/libec.a ../openssl/libcrypto.a ../gcrypt/src/.libs/libgcrypt.a -lgpg-error -lFuzzingEngine
+$CXX $CXXFLAGS fuzz_ec.o mbedtls.o libecc.o openssl.o gcrypt.o cryptopp.o -o $OUT/fuzz_ec ../mbedtls/library/libmbedcrypto.a ../libecc/build/libec.a ../openssl/libcrypto.a ../gcrypt/src/.libs/libgcrypt.a ../cryptopp/libcryptopp.a -lgpg-error -lFuzzingEngine