mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Merge remote-tracking branch 'crypto/pr/212' into development
* crypto/pr/212: (337 commits) Make TODO comments consistent Fix PSA tests Fix psa_generate_random for >1024 bytes Add tests to generate more random than MBEDTLS_CTR_DRBG_MAX_REQUEST Fix double free in psa_generate_key when psa_generate_random fails Fix copypasta in test data Avoid a lowercase letter in a macro name Correct some comments Fix PSA init/deinit in mbedtls_xxx tests when using PSA Make psa_calculate_key_bits return psa_key_bits_t Adjust secure element code to the new ITS interface More refactoring: consolidate attribute validation Fix policy validity check on key creation. Add test function for import with a bad policy Test key creation with an invalid type (0 and nonzero) Remove "allocated" flag from key slots Take advantage of psa_core_key_attributes_t internally #2 Store the key size in the slot in memory Take advantage of psa_core_key_attributes_t internally: key loading Switch storage functions over to psa_core_key_attributes_t ...
This commit is contained in:
@@ -756,6 +756,7 @@ component_test_no_platform () {
|
||||
scripts/config.pl unset MBEDTLS_ENTROPY_NV_SEED
|
||||
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
|
||||
scripts/config.pl unset MBEDTLS_FS_IO
|
||||
scripts/config.pl unset MBEDTLS_PSA_CRYPTO_SE_C
|
||||
scripts/config.pl unset MBEDTLS_PSA_CRYPTO_STORAGE_C
|
||||
scripts/config.pl unset MBEDTLS_PSA_ITS_FILE_C
|
||||
# Note, _DEFAULT_SOURCE needs to be defined for platforms using glibc version >2.19,
|
||||
@@ -828,6 +829,24 @@ component_test_aes_fewer_tables_and_rom_tables () {
|
||||
make test
|
||||
}
|
||||
|
||||
component_test_se_default () {
|
||||
msg "build: default config + MBEDTLS_PSA_CRYPTO_SE_C"
|
||||
scripts/config.pl set MBEDTLS_PSA_CRYPTO_SE_C
|
||||
make CC=clang CFLAGS='-Werror -Wall -Wextra -Wno-unused-function -Os -fsanitize=address' LDFLAGS='-fsanitize=address'
|
||||
|
||||
msg "test: default config + MBEDTLS_PSA_CRYPTO_SE_C"
|
||||
make test
|
||||
}
|
||||
|
||||
component_test_se_full () {
|
||||
msg "build: full config + MBEDTLS_PSA_CRYPTO_SE_C"
|
||||
scripts/config.pl set MBEDTLS_PSA_CRYPTO_SE_C
|
||||
make CC=gcc CFLAGS='-Werror -Wall -Wextra -O2 -fsanitize=address' LDFLAGS='-fsanitize=address'
|
||||
|
||||
msg "test: full config + MBEDTLS_PSA_CRYPTO_SE_C"
|
||||
make test
|
||||
}
|
||||
|
||||
component_test_make_shared () {
|
||||
msg "build/test: make shared" # ~ 40s
|
||||
make SHARED=1 all check -j1
|
||||
|
Reference in New Issue
Block a user