|
|
|
@ -2078,7 +2078,6 @@ component_test_psa_crypto_config_accel_ecdsa () {
|
|
|
|
|
# --------------------------------------
|
|
|
|
|
|
|
|
|
|
# Start from default config (no USE_PSA) + driver support + TLS 1.3
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
|
|
|
|
@ -2123,8 +2122,7 @@ component_test_psa_crypto_config_accel_ecdh () {
|
|
|
|
|
# Configure and build the main libraries
|
|
|
|
|
# --------------------------------------
|
|
|
|
|
|
|
|
|
|
# Start from default config (no USE_PSA or TLS 1.3) + driver support
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
# Start from default config (no USE_PSA or TLS 1.3)
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
|
|
|
|
|
# Disable the module that's accelerated
|
|
|
|
@ -2166,7 +2164,6 @@ component_test_psa_crypto_config_accel_pake() {
|
|
|
|
|
loc_accel_flags=$( echo "$loc_accel_list" | sed 's/[^ ]* */-DLIBTESTDRIVER1_MBEDTLS_PSA_ACCEL_&/g' )
|
|
|
|
|
make -C tests libtestdriver1.a CFLAGS="$ASAN_CFLAGS $loc_accel_flags" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
|
|
|
|
|
# Make build-in fallback not available
|
|
|
|
@ -2200,7 +2197,6 @@ config_psa_crypto_config_all_ec_algs_use_psa () {
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
# enable support for drivers and configuring PSA-only algorithms
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
if [ "$DRIVER_ONLY" -eq 1 ]; then
|
|
|
|
|
# Disable modules that are accelerated
|
|
|
|
|
scripts/config.py unset MBEDTLS_ECDSA_C
|
|
|
|
@ -2333,7 +2329,6 @@ component_test_psa_crypto_config_accel_rsa_signature () {
|
|
|
|
|
make -C tests libtestdriver1.a CFLAGS="$ASAN_CFLAGS $loc_accel_flags" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
# Mbed TLS library build
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
|
|
|
|
|
# Remove RSA support and its dependencies
|
|
|
|
@ -2375,7 +2370,6 @@ component_test_psa_crypto_config_accel_hash () {
|
|
|
|
|
loc_accel_flags=$( echo "$loc_accel_list" | sed 's/[^ ]* */-DLIBTESTDRIVER1_MBEDTLS_PSA_ACCEL_&/g' )
|
|
|
|
|
make -C tests libtestdriver1.a CFLAGS="$ASAN_CFLAGS $loc_accel_flags" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py unset MBEDTLS_MD5_C
|
|
|
|
|
scripts/config.py unset MBEDTLS_RIPEMD160_C
|
|
|
|
@ -2413,7 +2407,6 @@ component_test_psa_crypto_config_accel_hash_keep_builtins () {
|
|
|
|
|
loc_accel_flags=$( echo "$loc_accel_list" | sed 's/[^ ]* */-DLIBTESTDRIVER1_MBEDTLS_PSA_ACCEL_&/g' )
|
|
|
|
|
make -C tests libtestdriver1.a CFLAGS="$ASAN_CFLAGS $loc_accel_flags" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
loc_accel_flags="$loc_accel_flags $( echo "$loc_accel_list" | sed 's/[^ ]* */-DMBEDTLS_PSA_ACCEL_&/g' )"
|
|
|
|
|
make CFLAGS="$ASAN_CFLAGS -Werror -I../tests/include -I../tests -I../../tests -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_TEST_LIBTESTDRIVER1 $loc_accel_flags" LDFLAGS="-ltestdriver1 $ASAN_CFLAGS"
|
|
|
|
@ -2429,7 +2422,6 @@ config_psa_crypto_hash_use_psa () {
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
# enable support for drivers and configuring PSA-only algorithms
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
if [ "$DRIVER_ONLY" -eq 1 ]; then
|
|
|
|
|
# disable the built-in implementation of hashes
|
|
|
|
|
scripts/config.py unset MBEDTLS_MD5_C
|
|
|
|
@ -2519,7 +2511,6 @@ component_test_psa_crypto_config_accel_cipher () {
|
|
|
|
|
loc_accel_flags=$( echo "$loc_accel_list" | sed 's/[^ ]* */-DLIBTESTDRIVER1_MBEDTLS_PSA_ACCEL_&/g' )
|
|
|
|
|
make -C tests libtestdriver1.a CFLAGS="$ASAN_CFLAGS $loc_accel_flags" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
|
|
|
|
|
# There is no intended accelerator support for ALG STREAM_CIPHER and
|
|
|
|
@ -2560,7 +2551,6 @@ component_test_psa_crypto_config_accel_aead () {
|
|
|
|
|
loc_accel_flags=$( echo "$loc_accel_list" | sed 's/[^ ]* */-DLIBTESTDRIVER1_MBEDTLS_PSA_ACCEL_&/g' )
|
|
|
|
|
make -C tests libtestdriver1.a CFLAGS="$ASAN_CFLAGS $loc_accel_flags" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
|
|
|
|
|
scripts/config.py unset MBEDTLS_GCM_C
|
|
|
|
@ -2583,17 +2573,37 @@ component_test_psa_crypto_config_accel_aead () {
|
|
|
|
|
make test
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
component_test_psa_crypto_config_no_driver() {
|
|
|
|
|
# full plus MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG minus MBEDTLS_PSA_CRYPTO_DRIVERS"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py unset MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
make CC=gcc CFLAGS="$ASAN_CFLAGS -O2" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
component_test_psa_crypto_config_accel_pake() {
|
|
|
|
|
msg "test: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated PAKE"
|
|
|
|
|
|
|
|
|
|
msg "test: full + MBEDTLS_PSA_CRYPTO_CONFIG minus MBEDTLS_PSA_CRYPTO_DRIVERS"
|
|
|
|
|
# Start with full
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
|
|
|
|
|
# Disable ALG_STREAM_CIPHER and ALG_ECB_NO_PADDING to avoid having
|
|
|
|
|
# partial support for cipher operations in the driver test library.
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_STREAM_CIPHER
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_ECB_NO_PADDING
|
|
|
|
|
|
|
|
|
|
loc_accel_list="ALG_JPAKE"
|
|
|
|
|
loc_accel_flags=$( echo "$loc_accel_list" | sed 's/[^ ]* */-DLIBTESTDRIVER1_MBEDTLS_PSA_ACCEL_&/g' )
|
|
|
|
|
make -C tests libtestdriver1.a CFLAGS="$ASAN_CFLAGS $loc_accel_flags" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
|
|
|
|
|
# Make build-in fallback not available
|
|
|
|
|
scripts/config.py unset MBEDTLS_ECJPAKE_C
|
|
|
|
|
scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
|
|
|
|
|
|
|
|
|
|
# Dynamic secure element support is a deprecated feature and needs to be disabled here.
|
|
|
|
|
# This is done to have the same form of psa_key_attributes_s for libdriver and library.
|
|
|
|
|
scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C
|
|
|
|
|
|
|
|
|
|
loc_accel_flags="$loc_accel_flags $( echo "$loc_accel_list" | sed 's/[^ ]* */-DMBEDTLS_PSA_ACCEL_&/g' )"
|
|
|
|
|
make CFLAGS="$ASAN_CFLAGS -Werror -I../tests/include -I../tests -I../../tests -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_TEST_LIBTESTDRIVER1 $loc_accel_flags" LDFLAGS="-ltestdriver1 $ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
not grep mbedtls_ecjpake_init library/ecjpake.o
|
|
|
|
|
|
|
|
|
|
msg "test: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated PAKE"
|
|
|
|
|
make test
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -2617,7 +2627,6 @@ component_build_psa_accel_alg_ecdh() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_ECDH without MBEDTLS_ECDH_C"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py unset MBEDTLS_ECDH_C
|
|
|
|
@ -2636,7 +2645,6 @@ component_build_psa_accel_key_type_ecc_key_pair() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_KEY_TYPE_ECC_KEY_PAIR"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_KEY_TYPE_ECC_KEY_PAIR 1
|
|
|
|
@ -2651,7 +2659,6 @@ component_build_psa_accel_key_type_ecc_public_key() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1
|
|
|
|
@ -2666,7 +2673,6 @@ component_build_psa_accel_alg_hmac() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_HMAC"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
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
|
|
|
|
@ -2680,7 +2686,6 @@ component_build_psa_accel_alg_hkdf() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_HKDF without MBEDTLS_HKDF_C"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py unset MBEDTLS_HKDF_C
|
|
|
|
@ -2696,7 +2701,6 @@ component_build_psa_accel_alg_md5() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_MD5 - other hashes"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_RIPEMD160
|
|
|
|
@ -2718,7 +2722,6 @@ component_build_psa_accel_alg_ripemd160() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_RIPEMD160 - other hashes"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_MD5
|
|
|
|
@ -2740,7 +2743,6 @@ component_build_psa_accel_alg_sha1() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_SHA_1 - other hashes"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_MD5
|
|
|
|
@ -2762,7 +2764,6 @@ component_build_psa_accel_alg_sha224() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_SHA_224 - other hashes"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_MD5
|
|
|
|
@ -2781,7 +2782,6 @@ component_build_psa_accel_alg_sha256() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_SHA_256 - other hashes"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_MD5
|
|
|
|
@ -2800,7 +2800,6 @@ component_build_psa_accel_alg_sha384() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_SHA_384 - other hashes"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_MD5
|
|
|
|
@ -2821,7 +2820,6 @@ component_build_psa_accel_alg_sha512() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_SHA_512 - other hashes"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_ALG_MD5
|
|
|
|
@ -2843,7 +2841,6 @@ component_build_psa_accel_alg_rsa_pkcs1v15_crypt() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_RSA_PKCS1V15_CRYPT + PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_ALG_RSA_PKCS1V15_CRYPT 1
|
|
|
|
@ -2860,7 +2857,6 @@ component_build_psa_accel_alg_rsa_pkcs1v15_sign() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_RSA_PKCS1V15_SIGN + PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_ALG_RSA_PKCS1V15_SIGN 1
|
|
|
|
@ -2877,7 +2873,6 @@ component_build_psa_accel_alg_rsa_oaep() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_RSA_OAEP + PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_ALG_RSA_OAEP 1
|
|
|
|
@ -2894,7 +2889,6 @@ component_build_psa_accel_alg_rsa_pss() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_ALG_RSA_PSS + PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_ALG_RSA_PSS 1
|
|
|
|
@ -2911,7 +2905,6 @@ component_build_psa_accel_key_type_rsa_key_pair() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_KEY_TYPE_RSA_KEY_PAIR + PSA_WANT_ALG_RSA_PSS"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_ALG_RSA_PSS 1
|
|
|
|
@ -2926,7 +2919,6 @@ component_build_psa_accel_key_type_rsa_public_key() {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_CONFIG + PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY + PSA_WANT_ALG_RSA_PSS"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py unset MBEDTLS_USE_PSA_CRYPTO
|
|
|
|
|
scripts/config.py unset MBEDTLS_SSL_PROTO_TLS1_3
|
|
|
|
|
scripts/config.py -f include/psa/crypto_config.h set PSA_WANT_ALG_RSA_PSS 1
|
|
|
|
@ -3253,10 +3245,9 @@ component_test_se_default () {
|
|
|
|
|
make test
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
component_test_psa_crypto_drivers () {
|
|
|
|
|
msg "build: MBEDTLS_PSA_CRYPTO_DRIVERS w/ driver hooks"
|
|
|
|
|
component_test_psa_crypto_builtin_keys () {
|
|
|
|
|
msg "build: full + MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS"
|
|
|
|
|
scripts/config.py full
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS
|
|
|
|
|
scripts/config.py set MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS
|
|
|
|
|
loc_cflags="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST_ALL"
|
|
|
|
|
loc_cflags="${loc_cflags} '-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/user-config-for-test.h\"'"
|
|
|
|
@ -3264,7 +3255,7 @@ component_test_psa_crypto_drivers () {
|
|
|
|
|
|
|
|
|
|
make CC=gcc CFLAGS="${loc_cflags}" LDFLAGS="$ASAN_CFLAGS"
|
|
|
|
|
|
|
|
|
|
msg "test: full + MBEDTLS_PSA_CRYPTO_DRIVERS"
|
|
|
|
|
msg "test: full + MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS"
|
|
|
|
|
make test
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|