| /mbedtls-latest/tests/suites/ |
| D | test_suite_psa_crypto.function | 169 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key)); 173 PSA_ASSERT(psa_mac_abort(operation)); 201 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key)); 205 PSA_ASSERT(psa_cipher_abort(operation)); 370 PSA_ASSERT(psa_crypto_init()); 381 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 384 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); 430 PSA_ASSERT(status); 433 PSA_ASSERT(psa_aead_set_nonce(&operation, nonce->x, nonce->len)); 435 PSA_ASSERT(psa_aead_set_lengths(&operation, additional_data->len, [all …]
|
| D | test_suite_psa_crypto_hash.function | 21 PSA_ASSERT(psa_crypto_init()); 23 PSA_ASSERT(psa_hash_setup(&operation, alg)); 24 PSA_ASSERT(psa_hash_update(&operation, 26 PSA_ASSERT(psa_hash_finish(&operation, 52 PSA_ASSERT(psa_crypto_init()); 57 PSA_ASSERT(psa_import_key(&attributes, key_data, sizeof(key_data), &key)); 63 PSA_ASSERT(psa_mac_compute(key, alg, (uint8_t const *) input, input_len, mac, sizeof(mac), 70 PSA_ASSERT(psa_mac_verify(key, alg, (uint8_t const *) input, input_len, expected_mac->x, 78 PSA_ASSERT(psa_destroy_key(key)); 90 PSA_ASSERT(psa_crypto_init()); [all …]
|
| D | test_suite_psa_crypto_slot_management.function | 53 PSA_ASSERT(psa_close_key(key)); 57 PSA_ASSERT(psa_destroy_key(key)); 62 PSA_ASSERT(psa_purge_key(key)); 93 PSA_ASSERT(psa_crypto_init()); 147 PSA_ASSERT(psa_crypto_init()); 161 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 164 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); 186 PSA_ASSERT(psa_purge_key(key)); 187 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); 245 PSA_ASSERT(psa_crypto_init()); [all …]
|
| D | test_suite_psa_crypto_pake.function | 148 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_KEY_SHARE, 157 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_ZK_PUBLIC, 166 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_ZK_PROOF, 175 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_KEY_SHARE, 184 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_ZK_PUBLIC, 193 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_ZK_PROOF, 261 PSA_ASSERT(psa_pake_output(client, PSA_PAKE_STEP_KEY_SHARE, 270 PSA_ASSERT(psa_pake_output(client, PSA_PAKE_STEP_ZK_PUBLIC, 279 PSA_ASSERT(psa_pake_output(client, PSA_PAKE_STEP_ZK_PROOF, 288 PSA_ASSERT(psa_pake_output(client, PSA_PAKE_STEP_KEY_SHARE, [all …]
|
| D | test_suite_psa_crypto_driver_wrappers.function | 58 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_KEY_SHARE, 66 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_ZK_PUBLIC, 74 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_ZK_PROOF, 82 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_KEY_SHARE, 90 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_ZK_PUBLIC, 98 PSA_ASSERT(psa_pake_output(server, PSA_PAKE_STEP_ZK_PROOF, 155 PSA_ASSERT(psa_pake_output(client, PSA_PAKE_STEP_KEY_SHARE, 163 PSA_ASSERT(psa_pake_output(client, PSA_PAKE_STEP_ZK_PUBLIC, 171 PSA_ASSERT(psa_pake_output(client, PSA_PAKE_STEP_ZK_PROOF, 179 PSA_ASSERT(psa_pake_output(client, PSA_PAKE_STEP_KEY_SHARE, [all …]
|
| D | test_suite_psa_crypto_persistent_key.function | 130 PSA_ASSERT(psa_crypto_init()); 139 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, 172 PSA_ASSERT(psa_crypto_init()); 177 PSA_ASSERT(psa_destroy_key(key_id)); 184 PSA_ASSERT(psa_crypto_init()); 189 PSA_ASSERT(psa_import_key(&attributes, second_data->x, second_data->len, 192 PSA_ASSERT(psa_destroy_key(key_id)); 210 PSA_ASSERT(psa_crypto_init()); [all …]
|
| D | test_suite_psa_crypto_se_driver_hal.function | 83 /** Like #PSA_ASSERT for a PSA API call that calls a driver underneath. 545 PSA_ASSERT(psa_get_key_attributes(key, &actual_attributes)); 578 PSA_ASSERT(status); 620 PSA_ASSERT(psa_its_get_info(uid, &info)); 622 PSA_ASSERT(psa_its_get(uid, 0, info.size, loaded, NULL)); 695 PSA_ASSERT(psa_destroy_key(key2)); 699 PSA_ASSERT(psa_mac_abort(&mac_operation)); 702 PSA_ASSERT(psa_mac_abort(&mac_operation)); 706 PSA_ASSERT(psa_cipher_abort(&cipher_operation)); 709 PSA_ASSERT(psa_cipher_abort(&cipher_operation)); [all …]
|
| D | test_suite_psa_its.function | 97 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 …]
|
| D | test_suite_psa_crypto_entropy.function | 80 PSA_ASSERT(psa_crypto_init()); 82 PSA_ASSERT(psa_generate_random(output, sizeof(output))); 83 PSA_ASSERT(psa_generate_key(&attributes, &key)); 84 PSA_ASSERT(psa_destroy_key(key)); 120 PSA_ASSERT(psa_crypto_init()); 121 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 123 PSA_ASSERT(psa_sign_hash(key, alg, 127 PSA_ASSERT(psa_destroy_key(key)); 132 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 139 PSA_ASSERT(psa_destroy_key(key)); [all …]
|
| D | test_suite_psa_crypto_se_driver_hal_mocks.function | 345 PSA_ASSERT(psa_register_se_driver(location, &driver)); 346 PSA_ASSERT(psa_crypto_init()); 378 PSA_ASSERT(psa_destroy_key(id)); 412 PSA_ASSERT(psa_register_se_driver(location, &driver)); 413 PSA_ASSERT(psa_crypto_init()); 419 PSA_ASSERT(psa_import_key(&attributes, 429 PSA_ASSERT(psa_destroy_key(id)); 462 PSA_ASSERT(psa_register_se_driver(location, &driver)); 463 PSA_ASSERT(psa_crypto_init()); 493 PSA_ASSERT(psa_destroy_key(id)); [all …]
|
| D | test_suite_random.function | 122 PSA_ASSERT(psa_crypto_init()); 128 PSA_ASSERT(psa_crypto_init()); 148 PSA_ASSERT(psa_crypto_init()); 149 PSA_ASSERT(psa_generate_random(output1, sizeof(output1))); 153 PSA_ASSERT(psa_crypto_init()); 154 PSA_ASSERT(psa_generate_random(output2, sizeof(output2))); 180 PSA_ASSERT(psa_crypto_init()); 205 PSA_ASSERT(psa_crypto_init());
|
| D | test_suite_psa_crypto_init.function | 146 PSA_ASSERT(psa_crypto_init()); 209 PSA_ASSERT(status); 216 PSA_ASSERT(status); 232 PSA_ASSERT(psa_crypto_init()); 308 PSA_ASSERT(status); 327 PSA_ASSERT(status); 344 PSA_ASSERT(mbedtls_psa_crypto_configure_entropy_sources( 352 PSA_ASSERT(psa_generate_random(random, sizeof(random))); 389 PSA_ASSERT(mbedtls_psa_crypto_configure_entropy_sources( 397 PSA_ASSERT(psa_generate_random(random, sizeof(random))); [all …]
|
| D | test_suite_psa_crypto_op_fail.function | 92 PSA_ASSERT(psa_import_key(&attributes, 138 PSA_ASSERT(psa_import_key(&attributes, 184 PSA_ASSERT(psa_import_key(&attributes, 239 PSA_ASSERT(psa_import_key(&attributes, 252 PSA_ASSERT(psa_sign_hash_abort(&sign_operation)); 257 PSA_ASSERT(psa_get_key_attributes(key_id, &attributes)); 276 PSA_ASSERT(psa_verify_hash_abort(&verify_operation)); 307 PSA_ASSERT(psa_import_key(&attributes, 373 PSA_ASSERT(psa_import_key(&attributes, 378 PSA_ASSERT(psa_export_public_key(key_id, [all …]
|
| 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, 159 PSA_ASSERT(psa_its_set(uid, representation->len, representation->x, 0)); 162 PSA_ASSERT(psa_get_key_attributes(key_id, &actual_attributes)); 179 PSA_ASSERT(psa_export_key(key_id, 200 PSA_ASSERT(psa_destroy_key(key_id));
|
| D | test_suite_psa_crypto_attributes.function | 106 PSA_ASSERT(psa_get_key_slot_number(&attributes, &slot_number)); 111 PSA_ASSERT(psa_get_key_slot_number(&attributes, &slot_number)); 126 PSA_ASSERT(psa_get_key_slot_number(&attributes, &slot_number));
|
| D | test_suite_psa_crypto_not_supported.function | 21 PSA_ASSERT(psa_crypto_init()); 41 PSA_ASSERT(psa_crypto_init());
|
| D | test_suite_psa_crypto_generate_key.function | 26 PSA_ASSERT(psa_crypto_init()); 35 PSA_ASSERT(psa_get_key_attributes(key_id, &attributes));
|
| D | test_suite_pk.function | 546 PSA_ASSERT(psa_destroy_key(pk->priv_id)); 592 PSA_ASSERT(psa_get_key_attributes(priv_id, &attributes)); 599 PSA_ASSERT(psa_export_public_key(priv_id, pub_key_buf, sizeof(pub_key_buf), &pub_key_len)); 612 PSA_ASSERT(psa_import_key(&attributes, pub_key_buf, pub_key_len, &pub_key)); 627 PSA_ASSERT(psa_get_key_attributes(orig_key_id, &orig_attr)); 631 PSA_ASSERT(psa_copy_key(orig_key_id, &new_attr, &new_key_id)); 674 PSA_ASSERT(pk_psa_setup(PSA_KEY_TYPE_RSA_KEY_PAIR, 1024, PSA_KEY_USAGE_SIGN_HASH, 679 PSA_ASSERT(pk_psa_setup(PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1), 256, 766 PSA_ASSERT(pk_psa_setup(key_type, curve_or_keybits, key_usage, 784 PSA_ASSERT(psa_destroy_key(key)); [all …]
|
| D | test_suite_cipher.function | 900 PSA_ASSERT(psa_crypto_init()); 1109 PSA_ASSERT(psa_crypto_init());
|
| D | test_suite_psa_crypto_metadata.function | 215 PSA_ASSERT(psa_mac_key_can_do(alg, key_type));
|
| D | test_suite_ssl.function | 3516 PSA_ASSERT(psa_import_key(&attributes, pwd_string, 3530 PSA_ASSERT(psa_import_key(&attributes, pwd_string,
|
| /mbedtls-latest/tests/src/ |
| D | psa_exercise_key.c | 56 PSA_ASSERT(status); in check_key_attributes_sanity() 139 PSA_ASSERT(psa_mac_abort(&operation)); in exercise_mac_key() 142 PSA_ASSERT(status); in exercise_mac_key() 143 PSA_ASSERT(psa_mac_update(&operation, in exercise_mac_key() 145 PSA_ASSERT(psa_mac_sign_finish(&operation, in exercise_mac_key() 158 PSA_ASSERT(psa_mac_abort(&operation)); in exercise_mac_key() 161 PSA_ASSERT(status); in exercise_mac_key() 162 PSA_ASSERT(psa_mac_update(&operation, in exercise_mac_key() 192 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in exercise_cipher_key() 200 PSA_ASSERT(psa_cipher_abort(&operation)); in exercise_cipher_key() [all …]
|
| /mbedtls-latest/tests/include/test/ |
| D | psa_helpers.h | 22 #define PSA_ASSERT(expr) TEST_EQUAL((expr), PSA_SUCCESS) macro
|
| D | psa_crypto_helpers.h | 23 #define PSA_INIT() PSA_ASSERT(psa_crypto_init())
|