Lines Matching refs:PSA_ASSERT
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()
203 PSA_ASSERT(status); in exercise_cipher_key()
205 PSA_ASSERT(psa_cipher_generate_iv(&operation, in exercise_cipher_key()
209 PSA_ASSERT(psa_cipher_update(&operation, in exercise_cipher_key()
213 PSA_ASSERT(psa_cipher_finish(&operation, in exercise_cipher_key()
228 PSA_ASSERT(psa_cipher_abort(&operation)); in exercise_cipher_key()
231 PSA_ASSERT(status); in exercise_cipher_key()
233 PSA_ASSERT(psa_cipher_set_iv(&operation, in exercise_cipher_key()
236 PSA_ASSERT(psa_cipher_update(&operation, in exercise_cipher_key()
251 PSA_ASSERT(status); in exercise_cipher_key()
283 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); in exercise_aead_key()
298 PSA_ASSERT(status); in exercise_aead_key()
380 PSA_ASSERT(status); in exercise_signature_key()
414 PSA_ASSERT(status); in exercise_signature_key()
461 PSA_ASSERT(status); in exercise_asymmetric_encryption_key()
494 PSA_ASSERT(psa_key_derivation_setup(operation, alg)); in mbedtls_test_psa_setup_key_derivation_wrap()
497 PSA_ASSERT(psa_key_derivation_input_bytes(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
507 PSA_ASSERT(status); in mbedtls_test_psa_setup_key_derivation_wrap()
508 PSA_ASSERT(psa_key_derivation_input_bytes(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
513 PSA_ASSERT(psa_key_derivation_input_bytes(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
523 PSA_ASSERT(status); in mbedtls_test_psa_setup_key_derivation_wrap()
532 PSA_ASSERT(status); in mbedtls_test_psa_setup_key_derivation_wrap()
533 PSA_ASSERT(psa_key_derivation_input_bytes(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
539 PSA_ASSERT(psa_key_derivation_input_bytes(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
549 PSA_ASSERT(status); in mbedtls_test_psa_setup_key_derivation_wrap()
550 PSA_ASSERT(psa_key_derivation_input_bytes(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
554 PSA_ASSERT(psa_key_derivation_input_integer(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
557 PSA_ASSERT(psa_key_derivation_input_bytes(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
568 PSA_ASSERT(status); in mbedtls_test_psa_setup_key_derivation_wrap()
570 PSA_ASSERT(psa_key_derivation_input_bytes(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
578 PSA_ASSERT(psa_key_derivation_set_capacity(operation, capacity)); in mbedtls_test_psa_setup_key_derivation_wrap()
614 PSA_ASSERT(psa_key_derivation_abort(&operation)); in exercise_key_derivation_key()
616 PSA_ASSERT(status); in exercise_key_derivation_key()
617 PSA_ASSERT(psa_key_derivation_abort(&operation)); in exercise_key_derivation_key()
646 PSA_ASSERT(status); in mbedtls_test_psa_key_agreement_with_self()
660 PSA_ASSERT(status); in mbedtls_test_psa_key_agreement_with_self()
703 PSA_ASSERT(status); in mbedtls_test_psa_raw_key_agreement_with_self()
718 PSA_ASSERT(status); in mbedtls_test_psa_raw_key_agreement_with_self()
757 PSA_ASSERT(mbedtls_test_psa_raw_key_agreement_with_self(alg, key, in exercise_raw_key_agreement_key()
781 PSA_ASSERT(psa_key_derivation_setup(&operation, alg)); in exercise_key_agreement_key()
784 PSA_ASSERT(psa_key_derivation_input_bytes( in exercise_key_agreement_key()
790 PSA_ASSERT(psa_key_derivation_input_bytes( in exercise_key_agreement_key()
805 PSA_ASSERT(status); in exercise_key_agreement_key()
824 PSA_ASSERT(psa_key_derivation_input_bytes( in exercise_key_agreement_key()
828 PSA_ASSERT(psa_key_derivation_input_bytes( in exercise_key_agreement_key()
832 PSA_ASSERT(psa_key_derivation_output_bytes(&operation, in exercise_key_agreement_key()
835 PSA_ASSERT(psa_key_derivation_abort(&operation)); in exercise_key_agreement_key()
1021 PSA_ASSERT(status); in exercise_export_key()
1039 PSA_ASSERT(status); in exercise_export_key()
1071 PSA_ASSERT(status); in exercise_export_public_key()
1103 PSA_ASSERT(status); in exercise_export_public_key()
1250 PSA_ASSERT(psa_get_key_attributes(psa_key, &psa_attributes)); in mbedtls_test_key_consistency_psa_pk()
1302 PSA_ASSERT(psa_get_key_attributes(pk->priv_id, &pk_attributes)); in mbedtls_test_key_consistency_psa_pk()
1306 PSA_ASSERT(psa_export_public_key(psa_key, in mbedtls_test_key_consistency_psa_pk()
1320 PSA_ASSERT(psa_export_public_key(psa_key, in mbedtls_test_key_consistency_psa_pk()