aboutsummaryrefslogtreecommitdiff
path: root/projects/wolfssl
diff options
context:
space:
mode:
authorGuido Vranken <guidovranken@users.noreply.github.com>2021-07-02 17:36:50 +0200
committerGitHub <noreply@github.com>2021-07-02 08:36:50 -0700
commit3e7674bab24160712ed11d1c9cb2c6a27cd55e63 (patch)
tree56fb852f6a3fa276077ab250baabe24b6acf7ac0 /projects/wolfssl
parent201e928c59bba4c87cc5f7cb3f1cfdfd53ca4e34 (diff)
downloadoss-fuzz-3e7674bab24160712ed11d1c9cb2c6a27cd55e63.tar.gz
[wolfssl] Enable more Cryptofuzz operations (#5990)
Diffstat (limited to 'projects/wolfssl')
-rwxr-xr-xprojects/wolfssl/build.sh18
1 files changed, 16 insertions, 2 deletions
diff --git a/projects/wolfssl/build.sh b/projects/wolfssl/build.sh
index 566a12b72..b052fca23 100755
--- a/projects/wolfssl/build.sh
+++ b/projects/wolfssl/build.sh
@@ -31,6 +31,8 @@ then
CFLAGS="" CXXFLAGS="" ./b2 headers
cp -R boost/ /usr/include/
+ export CXXFLAGS="$CXXFLAGS -DCRYPTOFUZZ_BOTAN_IS_ORACLE"
+
OLD_CFLAGS="$CFLAGS"
OLD_CXXFLAGS="$CXXFLAGS"
@@ -77,11 +79,23 @@ then
echo -n '"' >>extra_options.h
echo -n '--force-module=wolfCrypt ' >>extra_options.h
echo -n '--digests=NULL ' >>extra_options.h
- echo -n '--operations=BignumCalc,DH_GenerateKeyPair,DH_Derive,ECC_GenerateKeyPair,ECC_PrivateToPublic,ECC_ValidatePubkey,ECDSA_Verify,ECDSA_Sign' >>extra_options.h
+ echo -n '--operations=' >>extra_options.h
+ echo -n 'BignumCalc,' >>extra_options.h
+ echo -n 'DH_GenerateKeyPair,' >>extra_options.h
+ echo -n 'DH_Derive,' >>extra_options.h
+ echo -n 'ECC_GenerateKeyPair,' >>extra_options.h
+ echo -n 'ECC_PrivateToPublic,' >>extra_options.h
+ echo -n 'ECC_ValidatePubkey,' >>extra_options.h
+ echo -n 'ECDSA_Verify,' >>extra_options.h
+ echo -n 'ECDSA_Sign,' >>extra_options.h
+ echo -n 'ECIES_Encrypt,' >>extra_options.h
+ echo -n 'ECIES_Decrypt,' >>extra_options.h
+ echo -n 'ECC_Point_Add,' >>extra_options.h
+ echo -n 'ECC_Point_Mul,' >>extra_options.h
+ echo -n 'ECDH_Derive ' >>extra_options.h
echo -n '"' >>extra_options.h
# Build Botan
- export CXXFLAGS="$CXXFLAGS -DCRYPTOFUZZ_BOTAN_IS_ORACLE"
cd $SRC/botan
if [[ $CFLAGS != *-m32* ]]
then