mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Merge pull request #9464 from gilles-peskine-arm/psa-keystore-dynamic-development
dynamically sized key store
This commit is contained in:
@ -2069,6 +2069,40 @@ common_block_cipher_dispatch () {
|
||||
scripts/config.py set MBEDTLS_DEPRECATED_REMOVED
|
||||
}
|
||||
|
||||
component_test_full_block_cipher_psa_dispatch_static_keystore () {
|
||||
msg "build: full + PSA dispatch in block_cipher with static keystore"
|
||||
# Check that the static key store works well when CTR_DRBG uses a
|
||||
# PSA key for AES.
|
||||
scripts/config.py unset MBEDTLS_PSA_KEY_STORE_DYNAMIC
|
||||
|
||||
loc_accel_list="ALG_ECB_NO_PADDING \
|
||||
KEY_TYPE_AES KEY_TYPE_ARIA KEY_TYPE_CAMELLIA"
|
||||
|
||||
# Configure
|
||||
# ---------
|
||||
|
||||
common_block_cipher_dispatch 1
|
||||
|
||||
# Build
|
||||
# -----
|
||||
|
||||
helper_libtestdriver1_make_drivers "$loc_accel_list"
|
||||
|
||||
helper_libtestdriver1_make_main "$loc_accel_list"
|
||||
|
||||
# Make sure disabled components were not re-enabled by accident (additive
|
||||
# config)
|
||||
not grep mbedtls_aes_ library/aes.o
|
||||
not grep mbedtls_aria_ library/aria.o
|
||||
not grep mbedtls_camellia_ library/camellia.o
|
||||
|
||||
# Run the tests
|
||||
# -------------
|
||||
|
||||
msg "test: full + PSA dispatch in block_cipher with static keystore"
|
||||
make test
|
||||
}
|
||||
|
||||
component_test_full_block_cipher_psa_dispatch () {
|
||||
msg "build: full + PSA dispatch in block_cipher"
|
||||
|
||||
@ -2593,6 +2627,16 @@ component_test_se_default () {
|
||||
make test
|
||||
}
|
||||
|
||||
component_test_full_static_keystore () {
|
||||
msg "build: full config - MBEDTLS_PSA_KEY_STORE_DYNAMIC"
|
||||
scripts/config.py full
|
||||
scripts/config.py unset MBEDTLS_PSA_KEY_STORE_DYNAMIC
|
||||
make CC=clang CFLAGS="$ASAN_CFLAGS -Os" LDFLAGS="$ASAN_CFLAGS"
|
||||
|
||||
msg "test: full config - MBEDTLS_PSA_KEY_STORE_DYNAMIC"
|
||||
make test
|
||||
}
|
||||
|
||||
component_test_psa_crypto_drivers () {
|
||||
msg "build: full + test drivers dispatching to builtins"
|
||||
scripts/config.py full
|
||||
|
Reference in New Issue
Block a user