[cryptofuzz] Cityhash reference implementation (#2636)

This commit is contained in:
Guido Vranken 2019-07-30 16:11:27 +02:00 committed by Abhishek Arya
parent 8adb1a1fcc
commit f5f49fdc7f
2 changed files with 9 additions and 0 deletions

View File

@ -37,6 +37,7 @@ RUN wget https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.36.tar.bz2
RUN git clone --depth 1 -b oss-fuzz https://github.com/project-everest/hacl-star evercrypt
RUN wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_0-stable.zip
RUN wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2-stable.zip
RUN git clone --depth 1 https://github.com/google/cityhash.git
RUN apt-get remove -y libunwind8
COPY build.sh $SRC/

View File

@ -36,6 +36,14 @@ then
export CXXFLAGS="$CXXFLAGS -DMSAN"
fi
# Compile Cityhash
cd $SRC/cityhash
./configure >/dev/null 2>&1
make -j$(nproc) >/dev/null 2>&1
export CXXFLAGS="$CXXFLAGS -I$SRC/cityhash/src"
export CRYPTOFUZZ_REFERENCE_CITY_O_PATH="$SRC/cityhash/src/city.o"
##############################################################################
if [[ $CFLAGS != *sanitize=memory* ]]
then