/mbedtls-development/tests/suites/ |
A D | test_suite_psa_crypto_hash.function | 20 PSA_ASSERT( psa_crypto_init( ) ); 22 PSA_ASSERT( psa_hash_setup( &operation, alg ) ); 23 PSA_ASSERT( psa_hash_update( &operation, 25 PSA_ASSERT( psa_hash_finish( &operation, 43 PSA_ASSERT( psa_crypto_init( ) ); 46 PSA_ASSERT( psa_hash_update( &operation, 49 PSA_ASSERT( psa_hash_verify( &operation, 69 PSA_ASSERT( psa_crypto_init( ) ); 76 PSA_ASSERT( psa_hash_update( &operation, 79 PSA_ASSERT( psa_hash_update( &operation, [all …]
|
A D | test_suite_psa_crypto.function | 422 PSA_ASSERT( status ); 1208 PSA_ASSERT( status ); 1216 PSA_ASSERT( status ); 1337 PSA_ASSERT( status ); 1412 PSA_ASSERT( status ); 3734 PSA_ASSERT( status ); 4062 PSA_ASSERT( status ); 4163 PSA_ASSERT( status ); 4270 PSA_ASSERT( status ); 4356 PSA_ASSERT( status ); [all …]
|
A D | test_suite_psa_crypto_slot_management.function | 98 PSA_ASSERT( psa_crypto_init( ) ); 127 PSA_ASSERT( psa_crypto_init( ) ); 167 PSA_ASSERT( psa_purge_key( key ) ); 224 PSA_ASSERT( psa_crypto_init( ) ); 252 PSA_ASSERT( psa_close_key( id ) ); 370 PSA_ASSERT( psa_crypto_init( ) ); 405 PSA_ASSERT( psa_export_key( id, 432 PSA_ASSERT( psa_crypto_init( ) ); 456 PSA_ASSERT( psa_crypto_init( ) ); 517 PSA_ASSERT( psa_crypto_init( ) ); [all …]
|
A D | test_suite_psa_crypto_persistent_key.function | 126 PSA_ASSERT( psa_crypto_init() ); 156 PSA_ASSERT( psa_crypto_init() ); 168 PSA_ASSERT( psa_crypto_init() ); 173 PSA_ASSERT( psa_destroy_key( key_id ) ); 180 PSA_ASSERT( psa_crypto_init() ); 188 PSA_ASSERT( psa_destroy_key( key_id ) ); 206 PSA_ASSERT( psa_crypto_init() ); 226 PSA_ASSERT( psa_crypto_init() ); 239 PSA_ASSERT( psa_destroy_key( key_id ) ); 268 PSA_ASSERT( psa_crypto_init( ) ); [all …]
|
A D | test_suite_psa_crypto_entropy.function | 50 PSA_ASSERT( psa_crypto_init( ) ); 54 PSA_ASSERT( psa_destroy_key( key ) ); 90 PSA_ASSERT( psa_crypto_init( ) ); 93 PSA_ASSERT( psa_sign_hash( key, alg, 97 PSA_ASSERT( psa_destroy_key( key ) ); 109 PSA_ASSERT( psa_destroy_key( key ) ); 152 PSA_ASSERT( psa_crypto_init( ) ); 153 PSA_ASSERT( psa_generate_random( output, 178 PSA_ASSERT( status ); 184 PSA_ASSERT( status ); [all …]
|
A D | test_suite_psa_its.function | 94 PSA_ASSERT( psa_its_get_info( uid, &info ) ); 100 PSA_ASSERT( psa_its_remove( uid ) ); 123 PSA_ASSERT( psa_its_get_info( uid, &info ) ); 130 PSA_ASSERT( psa_its_get_info( uid, &info ) ); 137 PSA_ASSERT( psa_its_remove( uid ) ); 169 PSA_ASSERT( psa_its_remove( uid ) ); 187 PSA_ASSERT( psa_its_set_wrap( uid, 0, NULL, 0 ) ); 188 PSA_ASSERT( psa_its_remove( uid ) ); 219 PSA_ASSERT( psa_its_set_wrap( uid, data->len, data->x, 0 ) ); 228 PSA_ASSERT( psa_its_remove( uid ) ); [all …]
|
A D | test_suite_psa_crypto_driver_wrappers.function | 29 PSA_ASSERT( psa_crypto_init( ) ); 85 PSA_ASSERT( psa_crypto_init( ) ); 143 PSA_ASSERT( psa_crypto_init( ) ); 1199 PSA_ASSERT( status ); 1218 PSA_ASSERT( status ); 1232 PSA_ASSERT( status ); 1248 PSA_ASSERT( status ); 1317 PSA_ASSERT( status ); 1334 PSA_ASSERT( status ); 1349 PSA_ASSERT( status ); [all …]
|
A D | test_suite_psa_crypto_se_driver_hal.function | 568 PSA_ASSERT( status ); 802 PSA_ASSERT( psa_crypto_init( ) ); 825 PSA_ASSERT( psa_crypto_init( ) ); 848 PSA_ASSERT( psa_crypto_init( ) ); 884 PSA_ASSERT( psa_crypto_init( ) ); 1017 PSA_ASSERT( psa_crypto_init( ) ); 1103 PSA_ASSERT( psa_crypto_init( ) ); 1128 PSA_ASSERT( psa_crypto_init( ) ); 1173 PSA_ASSERT( psa_crypto_init( ) ); 1216 PSA_ASSERT( psa_crypto_init( ) ); [all …]
|
A D | test_suite_psa_crypto_se_driver_hal_mocks.function | 351 PSA_ASSERT( psa_crypto_init( ) ); 387 PSA_ASSERT( psa_destroy_key( id ) ); 422 PSA_ASSERT( psa_crypto_init( ) ); 438 PSA_ASSERT( psa_destroy_key( id ) ); 472 PSA_ASSERT( psa_crypto_init( ) ); 542 PSA_ASSERT( psa_crypto_init( ) ); 557 PSA_ASSERT( psa_destroy_key( id ) ); 599 PSA_ASSERT( psa_crypto_init( ) ); 618 PSA_ASSERT( psa_destroy_key( id ) ); 659 PSA_ASSERT( psa_crypto_init( ) ); [all …]
|
A D | test_suite_psa_crypto_init.function | 141 PSA_ASSERT( status ); 143 PSA_ASSERT( status ); 155 PSA_ASSERT( psa_crypto_init( ) ); 171 PSA_ASSERT( status ); 191 PSA_ASSERT( status ); 208 PSA_ASSERT( mbedtls_psa_crypto_configure_entropy_sources( 215 PSA_ASSERT( psa_generate_random( random, sizeof( random ) ) ); 248 PSA_ASSERT( mbedtls_psa_crypto_configure_entropy_sources( 255 PSA_ASSERT( psa_generate_random( random, sizeof( random ) ) ); 275 PSA_ASSERT( mbedtls_psa_crypto_configure_entropy_sources( [all …]
|
A D | test_suite_random.function | 107 PSA_ASSERT( psa_crypto_init( ) ); 113 PSA_ASSERT( psa_crypto_init( ) ); 133 PSA_ASSERT( psa_crypto_init( ) ); 134 PSA_ASSERT( psa_generate_random( output1, sizeof( output1 ) ) ); 138 PSA_ASSERT( psa_crypto_init( ) ); 139 PSA_ASSERT( psa_generate_random( output2, sizeof( output2 ) ) ); 165 PSA_ASSERT( psa_crypto_init( ) ); 190 PSA_ASSERT( psa_crypto_init( ) );
|
A D | test_suite_psa_crypto_storage_format.function | 31 PSA_ASSERT( psa_import_key( attributes, material->x, material->len, 37 PSA_ASSERT( psa_its_get_info( uid, &storage_info ) ); 40 PSA_ASSERT( psa_its_get( uid, 0, storage_info.size, 83 PSA_ASSERT( psa_its_set( uid, representation->len, representation->x, 0 ) ); 86 PSA_ASSERT( psa_get_key_attributes( key_id, &actual_attributes ) ); 104 PSA_ASSERT( psa_export_key( key_id, 129 PSA_ASSERT( psa_destroy_key( key_id ) );
|
A D | test_suite_psa_crypto_not_supported.function | 21 PSA_ASSERT( psa_crypto_init( ) ); 41 PSA_ASSERT( psa_crypto_init( ) );
|
A D | test_suite_psa_crypto_generate_key.function | 26 PSA_ASSERT( psa_crypto_init( ) ); 36 PSA_ASSERT( psa_get_key_attributes( key_id, &attributes ) );
|
A D | test_suite_psa_crypto_attributes.function | 103 PSA_ASSERT( psa_get_key_slot_number( &attributes, &slot_number ) ); 108 PSA_ASSERT( psa_get_key_slot_number( &attributes, &slot_number ) ); 123 PSA_ASSERT( psa_get_key_slot_number( &attributes, &slot_number ) );
|
A D | test_suite_pk.function | 107 PSA_ASSERT( psa_generate_key( &attributes, &key ) ); 135 PSA_ASSERT( psa_crypto_init( ) ); 974 PSA_ASSERT( psa_crypto_init( ) ); 996 PSA_ASSERT( psa_get_key_attributes( key_id, &attributes ) );
|
A D | test_suite_cipher.function | 815 PSA_ASSERT( psa_crypto_init( ) ); 1026 PSA_ASSERT( psa_crypto_init( ) );
|
A D | test_suite_psa_crypto_metadata.function | 211 PSA_ASSERT( psa_mac_key_can_do( alg, key_type ) );
|
/mbedtls-development/tests/src/ |
A D | psa_exercise_key.c | 134 PSA_ASSERT( psa_mac_update( &operation, in exercise_mac_key() 148 PSA_ASSERT( psa_mac_update( &operation, in exercise_mac_key() 180 PSA_ASSERT( psa_cipher_update( &operation, in exercise_cipher_key() 184 PSA_ASSERT( psa_cipher_finish( &operation, in exercise_cipher_key() 207 PSA_ASSERT( psa_cipher_set_iv( &operation, in exercise_cipher_key() 224 PSA_ASSERT( status ); in exercise_cipher_key() 267 PSA_ASSERT( psa_aead_encrypt( key, alg, in exercise_aead_key() 327 PSA_ASSERT( psa_sign_hash( key, alg, in exercise_signature_key() 565 PSA_ASSERT( psa_export_public_key( key, in mbedtls_test_psa_raw_key_agreement_with_self() 820 PSA_ASSERT( psa_export_key( key, in exercise_export_key() [all …]
|
/mbedtls-development/tests/include/test/ |
A D | psa_helpers.h | 34 #define PSA_ASSERT( expr ) TEST_EQUAL( ( expr ), PSA_SUCCESS ) macro
|
A D | psa_crypto_helpers.h | 90 #define PSA_INIT( ) PSA_ASSERT( psa_crypto_init( ) )
|