Home
last modified time | relevance | path

Searched refs:PSA_ASSERT (Results 1 – 23 of 23) sorted by relevance

/mbedtls-3.4.0/tests/suites/
Dtest_suite_psa_crypto_hash.function20 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( ) );
45 PSA_ASSERT( psa_hash_setup( &operation, alg ) );
46 PSA_ASSERT( psa_hash_update( &operation,
49 PSA_ASSERT( psa_hash_verify( &operation,
69 PSA_ASSERT( psa_crypto_init( ) );
74 PSA_ASSERT( psa_hash_setup( &operation, alg ) );
[all …]
Dtest_suite_psa_crypto.function42 PSA_ASSERT( psa_pake_abort( operation ) );
44 PSA_ASSERT( psa_pake_setup( operation, cipher_suite ) );
46 PSA_ASSERT( psa_pake_set_role( operation, role) );
49 PSA_ASSERT( psa_pake_set_password_key( operation, key ) );
179 PSA_ASSERT( psa_import_key( &attributes, key_bytes, key_length, &key ) );
183 PSA_ASSERT( psa_mac_abort( operation ) );
212 PSA_ASSERT( psa_import_key( &attributes, key_bytes, key_length, &key ) );
216 PSA_ASSERT( psa_cipher_abort( operation ) );
381 PSA_ASSERT( psa_crypto_init( ) );
391 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len,
[all …]
Dtest_suite_psa_crypto_slot_management.function57 PSA_ASSERT( psa_close_key( key ) );
61 PSA_ASSERT( psa_destroy_key( key ) );
66 PSA_ASSERT( psa_purge_key( key ) );
98 PSA_ASSERT( psa_crypto_init( ) );
127 PSA_ASSERT( psa_crypto_init( ) );
141 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len,
144 PSA_ASSERT( psa_get_key_attributes( key, &attributes ) );
167 PSA_ASSERT( psa_purge_key( key ) );
168 PSA_ASSERT( psa_get_key_attributes( key, &attributes ) );
224 PSA_ASSERT( psa_crypto_init( ) );
[all …]
Dtest_suite_psa_crypto_entropy.function50 PSA_ASSERT( psa_crypto_init( ) );
52 PSA_ASSERT( psa_generate_random( output, sizeof( output ) ) );
53 PSA_ASSERT( psa_generate_key( &attributes, &key ) );
54 PSA_ASSERT( psa_destroy_key( key ) );
90 PSA_ASSERT( psa_crypto_init( ) );
91 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len,
93 PSA_ASSERT( psa_sign_hash( key, alg,
97 PSA_ASSERT( psa_destroy_key( key ) );
102 PSA_ASSERT( psa_import_key( &attributes, key_data->x, key_data->len,
109 PSA_ASSERT( psa_destroy_key( key ) );
[all …]
Dtest_suite_psa_crypto_persistent_key.function131 PSA_ASSERT( psa_crypto_init() );
140 PSA_ASSERT( psa_destroy_key( key_id ) );
161 PSA_ASSERT( psa_crypto_init() );
166 PSA_ASSERT( psa_import_key( &attributes, first_data->x, first_data->len,
173 PSA_ASSERT( psa_crypto_init() );
178 PSA_ASSERT( psa_destroy_key( key_id ) );
185 PSA_ASSERT( psa_crypto_init() );
190 PSA_ASSERT( psa_import_key( &attributes, second_data->x, second_data->len,
193 PSA_ASSERT( psa_destroy_key( key_id ) );
211 PSA_ASSERT( psa_crypto_init() );
[all …]
Dtest_suite_psa_crypto_pake.function129 PSA_ASSERT( psa_pake_output( server, PSA_PAKE_STEP_KEY_SHARE,
138 PSA_ASSERT( psa_pake_output( server, PSA_PAKE_STEP_ZK_PUBLIC,
147 PSA_ASSERT( psa_pake_output( server, PSA_PAKE_STEP_ZK_PROOF,
156 PSA_ASSERT( psa_pake_output( server, PSA_PAKE_STEP_KEY_SHARE,
165 PSA_ASSERT( psa_pake_output( server, PSA_PAKE_STEP_ZK_PUBLIC,
174 PSA_ASSERT( psa_pake_output( server, PSA_PAKE_STEP_ZK_PROOF,
231 PSA_ASSERT( psa_pake_output( client, PSA_PAKE_STEP_KEY_SHARE,
240 PSA_ASSERT( psa_pake_output( client, PSA_PAKE_STEP_ZK_PUBLIC,
249 PSA_ASSERT( psa_pake_output( client, PSA_PAKE_STEP_ZK_PROOF,
258 PSA_ASSERT( psa_pake_output( client, PSA_PAKE_STEP_KEY_SHARE,
[all …]
Dtest_suite_psa_crypto_driver_wrappers.function107 PSA_ASSERT( psa_crypto_init( ) );
127 PSA_ASSERT( psa_get_key_attributes( key, &attributes ) );
179 PSA_ASSERT( psa_crypto_init( ) );
240 PSA_ASSERT( psa_crypto_init( ) );
259 PSA_ASSERT( psa_get_key_attributes( key, &attributes ) );
313 PSA_ASSERT( psa_crypto_init( ) );
390 PSA_ASSERT( psa_crypto_init( ) );
456 PSA_ASSERT( psa_crypto_init( ) );
498 PSA_ASSERT( psa_crypto_init( ) );
499 PSA_ASSERT( psa_import_key( &attributes, key_in->x, key_in->len, &handle ) );
[all …]
Dtest_suite_psa_its.function97 PSA_ASSERT( psa_its_set_wrap( uid, data->len, data->x, flags ) );
99 PSA_ASSERT( psa_its_get_info( uid, &info ) );
102 PSA_ASSERT( psa_its_get( uid, 0, data->len, buffer, &ret_len ) );
105 PSA_ASSERT( psa_its_remove( uid ) );
127 PSA_ASSERT( psa_its_set_wrap( uid, data1->len, data1->x, flags1 ) );
128 PSA_ASSERT( psa_its_get_info( uid, &info ) );
131 PSA_ASSERT( psa_its_get( uid, 0, data1->len, buffer, &ret_len ) );
134 PSA_ASSERT( psa_its_set_wrap( uid, data2->len, data2->x, flags2 ) );
135 PSA_ASSERT( psa_its_get_info( uid, &info ) );
139 PSA_ASSERT( psa_its_get( uid, 0, data2->len, buffer, &ret_len ) );
[all …]
Dtest_suite_psa_crypto_se_driver_hal.function70 /** Like #PSA_ASSERT for a PSA API call that calls a driver underneath.
535 PSA_ASSERT( psa_get_key_attributes( key, &actual_attributes ) );
572 PSA_ASSERT( status );
614 PSA_ASSERT( psa_its_get_info( uid, &info ) );
616 PSA_ASSERT( psa_its_get( uid, 0, info.size, loaded, NULL ) );
690 PSA_ASSERT( psa_destroy_key( key2 ) );
693 PSA_ASSERT( psa_mac_abort( &mac_operation ) );
696 PSA_ASSERT( psa_mac_abort( &mac_operation ) );
700 PSA_ASSERT( psa_cipher_abort( &cipher_operation ) );
703 PSA_ASSERT( psa_cipher_abort( &cipher_operation ) );
[all …]
Dtest_suite_psa_crypto_se_driver_hal_mocks.function350 PSA_ASSERT( psa_register_se_driver( location, &driver ) );
351 PSA_ASSERT( psa_crypto_init( ) );
387 PSA_ASSERT( psa_destroy_key( id ) );
421 PSA_ASSERT( psa_register_se_driver( location, &driver ) );
422 PSA_ASSERT( psa_crypto_init( ) );
428 PSA_ASSERT( psa_import_key( &attributes,
438 PSA_ASSERT( psa_destroy_key( id ) );
471 PSA_ASSERT( psa_register_se_driver( location, &driver ) );
472 PSA_ASSERT( psa_crypto_init( ) );
506 PSA_ASSERT( psa_destroy_key( id ) );
[all …]
Dtest_suite_psa_crypto_init.function141 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 …]
Dtest_suite_random.function107 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( ) );
Dtest_suite_psa_crypto_op_fail.function93 PSA_ASSERT( psa_import_key( &attributes,
139 PSA_ASSERT( psa_import_key( &attributes,
185 PSA_ASSERT( psa_import_key( &attributes,
233 PSA_ASSERT( psa_import_key( &attributes,
245 PSA_ASSERT( psa_get_key_attributes( key_id, &attributes ) );
287 PSA_ASSERT( psa_import_key( &attributes,
354 PSA_ASSERT( psa_import_key( &attributes,
360 PSA_ASSERT( psa_export_public_key( key_id,
371 PSA_ASSERT( psa_key_derivation_setup( &operation,
Dtest_suite_psa_crypto_not_supported.function21 PSA_ASSERT( psa_crypto_init( ) );
41 PSA_ASSERT( psa_crypto_init( ) );
Dtest_suite_psa_crypto_attributes.function103 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 ) );
Dtest_suite_psa_crypto_storage_format.function31 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,
236 PSA_ASSERT( psa_its_set( uid, representation->len, representation->x, 0 ) );
239 PSA_ASSERT( psa_get_key_attributes( key_id, &actual_attributes ) );
257 PSA_ASSERT( psa_export_key( key_id,
282 PSA_ASSERT( psa_destroy_key( key_id ) );
Dtest_suite_psa_crypto_generate_key.function26 PSA_ASSERT( psa_crypto_init( ) );
36 PSA_ASSERT( psa_get_key_attributes( key_id, &attributes ) );
Dtest_suite_pk.function110 PSA_ASSERT( psa_generate_key( &attributes, &key ) );
131 PSA_ASSERT( psa_generate_key( &attributes, &key ) );
159 PSA_ASSERT( psa_crypto_init( ) );
262 PSA_ASSERT( psa_crypto_init( ) );
275 PSA_ASSERT( psa_generate_key( &attributes, &key ) );
296 PSA_ASSERT( psa_destroy_key( key ) );
1223 PSA_ASSERT( psa_crypto_init( ) );
1273 PSA_ASSERT( psa_get_key_attributes( key_id, &attributes ) );
Dtest_suite_cipher.function888 PSA_ASSERT( psa_crypto_init( ) );
1099 PSA_ASSERT( psa_crypto_init( ) );
Dtest_suite_psa_crypto_metadata.function215 PSA_ASSERT( psa_mac_key_can_do( alg, key_type ) );
/mbedtls-3.4.0/tests/src/
Dpsa_exercise_key.c52 PSA_ASSERT( psa_get_key_attributes( key, &attributes ) ); in check_key_attributes_sanity()
134 PSA_ASSERT( psa_mac_sign_setup( &operation, key, alg ) ); in exercise_mac_key()
135 PSA_ASSERT( psa_mac_update( &operation, in exercise_mac_key()
137 PSA_ASSERT( psa_mac_sign_finish( &operation, in exercise_mac_key()
148 PSA_ASSERT( psa_mac_verify_setup( &operation, key, alg ) ); in exercise_mac_key()
149 PSA_ASSERT( psa_mac_update( &operation, in exercise_mac_key()
177 PSA_ASSERT( psa_get_key_attributes( key, &attributes ) ); in exercise_cipher_key()
183 PSA_ASSERT( psa_cipher_encrypt_setup( &operation, key, alg ) ); in exercise_cipher_key()
186 PSA_ASSERT( psa_cipher_generate_iv( &operation, in exercise_cipher_key()
190 PSA_ASSERT( psa_cipher_update( &operation, in exercise_cipher_key()
[all …]
/mbedtls-3.4.0/tests/include/test/
Dpsa_helpers.h34 #define PSA_ASSERT( expr ) TEST_EQUAL( ( expr ), PSA_SUCCESS ) macro
Dpsa_crypto_helpers.h89 #define PSA_INIT( ) PSA_ASSERT( psa_crypto_init( ) )