|
|
|
@ -67,12 +67,12 @@ component_build_psa_crypto_spm () {
|
|
|
|
|
# We can only compile, not link, since our test and sample programs
|
|
|
|
|
# aren't equipped for the modified names used when MBEDTLS_PSA_CRYPTO_SPM
|
|
|
|
|
# is active.
|
|
|
|
|
make CC=gcc CFLAGS='-Werror -Wall -Wextra -I../tests/include/spe' lib
|
|
|
|
|
make CC=gcc CFLAGS='-Werror -Wall -Wextra -I../framework/tests/include/spe' lib
|
|
|
|
|
|
|
|
|
|
# Check that if a symbol is renamed by crypto_spe.h, the non-renamed
|
|
|
|
|
# version is not present.
|
|
|
|
|
echo "Checking for renamed symbols in the library"
|
|
|
|
|
check_renamed_symbols tests/include/spe/crypto_spe.h library/libmbedcrypto.a
|
|
|
|
|
check_renamed_symbols framework/tests/include/spe/crypto_spe.h library/libmbedcrypto.a
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# The goal of this component is to build a configuration where:
|
|
|
|
@ -821,7 +821,7 @@ component_test_crypto_for_psa_service () {
|
|
|
|
|
component_build_crypto_baremetal () {
|
|
|
|
|
msg "build: make, crypto only, baremetal config"
|
|
|
|
|
scripts/config.py crypto_baremetal
|
|
|
|
|
make CFLAGS="-O1 -Werror -I$PWD/tests/include/baremetal-override/"
|
|
|
|
|
make CFLAGS="-O1 -Werror -I$PWD/framework/tests/include/baremetal-override/"
|
|
|
|
|
are_empty_libraries library/libmbedx509.* library/libmbedtls.*
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1761,7 +1761,7 @@ component_test_tfm_config_p256m_driver_accel_ec () {
|
|
|
|
|
common_tfm_config
|
|
|
|
|
|
|
|
|
|
# Build crypto library
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -I../tests/include/spe" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -I../framework/tests/include/spe" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
|
|
|
|
|
not grep mbedtls_ecdsa_ library/ecdsa.o
|
|
|
|
@ -1795,7 +1795,7 @@ component_test_tfm_config_no_p256m () {
|
|
|
|
|
echo "#undef MBEDTLS_PSA_P256M_DRIVER_ENABLED" >> "$CONFIG_H"
|
|
|
|
|
|
|
|
|
|
msg "build: TF-M config without p256m"
|
|
|
|
|
make CFLAGS='-Werror -Wall -Wextra -I../tests/include/spe' tests
|
|
|
|
|
make CFLAGS='-Werror -Wall -Wextra -I../framework/tests/include/spe' tests
|
|
|
|
|
|
|
|
|
|
# Check that p256m was not built
|
|
|
|
|
not grep p256_ecdsa_ library/libmbedcrypto.a
|
|
|
|
@ -2047,7 +2047,7 @@ component_build_psa_accel_alg_ecdh () {
|
|
|
|
|
scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
|
|
|
|
|
scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_ECDH -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_ECDH -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator HMAC code is in place and ready to test.
|
|
|
|
@ -2057,7 +2057,7 @@ component_build_psa_accel_alg_hmac () {
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_HMAC -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_HMAC -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator HKDF code is in place and ready to test.
|
|
|
|
@ -2069,7 +2069,7 @@ component_build_psa_accel_alg_hkdf () {
|
|
|
|
|
# Make sure to unset TLS1_3 since it requires HKDF_C and will not build properly without it.
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_HKDF -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_HKDF -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator MD5 code is in place and ready to test.
|
|
|
|
@ -2088,7 +2088,7 @@ component_build_psa_accel_alg_md5 () {
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_C
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_PRIVATE
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_MD5 -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_MD5 -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator RIPEMD160 code is in place and ready to test.
|
|
|
|
@ -2107,7 +2107,7 @@ component_build_psa_accel_alg_ripemd160 () {
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_C
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_PRIVATE
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RIPEMD160 -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RIPEMD160 -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator SHA1 code is in place and ready to test.
|
|
|
|
@ -2126,7 +2126,7 @@ component_build_psa_accel_alg_sha1 () {
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_C
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_PRIVATE
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_1 -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_1 -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator SHA224 code is in place and ready to test.
|
|
|
|
@ -2142,7 +2142,7 @@ component_build_psa_accel_alg_sha224 () {
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_SHA_512
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_224 -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_224 -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator SHA256 code is in place and ready to test.
|
|
|
|
@ -2158,7 +2158,7 @@ component_build_psa_accel_alg_sha256 () {
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_SHA_384
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_SHA_512
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_256 -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_256 -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator SHA384 code is in place and ready to test.
|
|
|
|
@ -2176,7 +2176,7 @@ component_build_psa_accel_alg_sha384 () {
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_C
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_PRIVATE
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_384 -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_384 -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator SHA512 code is in place and ready to test.
|
|
|
|
@ -2195,7 +2195,7 @@ component_build_psa_accel_alg_sha512 () {
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_C
|
|
|
|
|
scripts/config.py unset MBEDTLS_LMS_PRIVATE
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_512 -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_SHA_512 -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator RSA code is in place and ready to test.
|
|
|
|
@ -2209,7 +2209,7 @@ component_build_psa_accel_alg_rsa_pkcs1v15_crypt () {
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_RSA_OAEP
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_RSA_PSS
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_CRYPT -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_CRYPT -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator RSA code is in place and ready to test.
|
|
|
|
@ -2223,7 +2223,7 @@ component_build_psa_accel_alg_rsa_pkcs1v15_sign () {
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_RSA_OAEP
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_RSA_PSS
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_SIGN -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_SIGN -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator RSA code is in place and ready to test.
|
|
|
|
@ -2237,7 +2237,7 @@ component_build_psa_accel_alg_rsa_oaep () {
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_RSA_PKCS1V15_SIGN
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_RSA_PSS
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RSA_OAEP -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RSA_OAEP -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator RSA code is in place and ready to test.
|
|
|
|
@ -2251,7 +2251,7 @@ component_build_psa_accel_alg_rsa_pss () {
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_RSA_PKCS1V15_SIGN
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" unset PSA_WANT_ALG_RSA_OAEP
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RSA_PSS -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_ALG_RSA_PSS -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator RSA code is in place and ready to test.
|
|
|
|
@ -2266,7 +2266,7 @@ component_build_psa_accel_key_type_rsa_key_pair () {
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" set PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_EXPORT 1
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" set PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_GENERATE 1
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_KEY_PAIR -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_KEY_PAIR -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# This should be renamed to test and updated once the accelerator RSA code is in place and ready to test.
|
|
|
|
@ -2278,7 +2278,7 @@ component_build_psa_accel_key_type_rsa_public_key () {
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" set PSA_WANT_ALG_RSA_PSS 1
|
|
|
|
|
scripts/config.py -f "$CRYPTO_CONFIG_H" set PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY 1
|
|
|
|
|
# Need to define the correct symbol and include the test driver header path in order to build with the test driver
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_PUBLIC_KEY -I../tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_PUBLIC_KEY -I../framework/tests/include" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Auxiliary function to build config for hashes with and without drivers
|
|
|
|
@ -3240,7 +3240,7 @@ component_test_psa_crypto_drivers () {
|
|
|
|
|
scripts/config.py unset MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
loc_cflags="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST_ALL"
|
|
|
|
|
loc_cflags="${loc_cflags} '-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/user-config-for-test.h\"'"
|
|
|
|
|
loc_cflags="${loc_cflags} -I../tests/include -O2"
|
|
|
|
|
loc_cflags="${loc_cflags} -I../framework/tests/include -O2"
|
|
|
|
|
|
|
|
|
|
make CC=$ASAN_CC CFLAGS="${loc_cflags}" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
@ -3281,8 +3281,8 @@ component_build_psa_alt_headers () {
|
|
|
|
|
# Build the library and some programs.
|
|
|
|
|
# Don't build the fuzzers to avoid having to go through hoops to set
|
|
|
|
|
# a correct include path for programs/fuzz/Makefile.
|
|
|
|
|
make CFLAGS="-I ../tests/include/alt-extra -DMBEDTLS_PSA_CRYPTO_PLATFORM_FILE='\"psa/crypto_platform_alt.h\"' -DMBEDTLS_PSA_CRYPTO_STRUCT_FILE='\"psa/crypto_struct_alt.h\"'" lib
|
|
|
|
|
make -C programs -o fuzz CFLAGS="-I ../tests/include/alt-extra -DMBEDTLS_PSA_CRYPTO_PLATFORM_FILE='\"psa/crypto_platform_alt.h\"' -DMBEDTLS_PSA_CRYPTO_STRUCT_FILE='\"psa/crypto_struct_alt.h\"'"
|
|
|
|
|
make CFLAGS="-I ../framework/tests/include/alt-extra -DMBEDTLS_PSA_CRYPTO_PLATFORM_FILE='\"psa/crypto_platform_alt.h\"' -DMBEDTLS_PSA_CRYPTO_STRUCT_FILE='\"psa/crypto_struct_alt.h\"'" lib
|
|
|
|
|
make -C programs -o fuzz CFLAGS="-I ../framework/tests/include/alt-extra -DMBEDTLS_PSA_CRYPTO_PLATFORM_FILE='\"psa/crypto_platform_alt.h\"' -DMBEDTLS_PSA_CRYPTO_STRUCT_FILE='\"psa/crypto_struct_alt.h\"'"
|
|
|
|
|
|
|
|
|
|
# Check that we're getting the alternative include guards and not the
|
|
|
|
|
# original include guards.
|
|
|
|
|