Lines Matching refs:operation

125     psa_mac_operation_t operation = PSA_MAC_OPERATION_INIT;  in exercise_mac_key()  local
136 status = psa_mac_sign_setup(&operation, key, alg); in exercise_mac_key()
139 PSA_ASSERT(psa_mac_abort(&operation)); 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()
155 status = psa_mac_verify_setup(&operation, key, alg); in exercise_mac_key()
158 PSA_ASSERT(psa_mac_abort(&operation)); in exercise_mac_key()
162 PSA_ASSERT(psa_mac_update(&operation, in exercise_mac_key()
164 TEST_EQUAL(psa_mac_verify_finish(&operation, mac, mac_length), in exercise_mac_key()
171 psa_mac_abort(&operation); in exercise_mac_key()
180 psa_cipher_operation_t operation = PSA_CIPHER_OPERATION_INIT; in exercise_cipher_key() local
197 status = psa_cipher_encrypt_setup(&operation, key, alg); in exercise_cipher_key()
200 PSA_ASSERT(psa_cipher_abort(&operation)); 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()
225 status = psa_cipher_decrypt_setup(&operation, key, alg); in exercise_cipher_key()
228 PSA_ASSERT(psa_cipher_abort(&operation)); 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()
240 status = psa_cipher_finish(&operation, in exercise_cipher_key()
258 psa_cipher_abort(&operation); in exercise_cipher_key()
487 psa_key_derivation_operation_t *operation, in mbedtls_test_psa_setup_key_derivation_wrap() argument
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()
500 status = psa_key_derivation_input_key(operation, 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()
516 status = psa_key_derivation_input_key(operation, in mbedtls_test_psa_setup_key_derivation_wrap()
525 status = psa_key_derivation_input_key(operation, 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()
542 status = psa_key_derivation_input_key(operation, 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()
561 status = psa_key_derivation_input_key(operation, 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()
593 psa_key_derivation_operation_t operation = PSA_KEY_DERIVATION_OPERATION_INIT; in exercise_key_derivation_key() local
602 if (!mbedtls_test_psa_setup_key_derivation_wrap(&operation, key, alg, in exercise_key_derivation_key()
609 psa_status_t status = psa_key_derivation_output_bytes(&operation, in exercise_key_derivation_key()
614 PSA_ASSERT(psa_key_derivation_abort(&operation)); in exercise_key_derivation_key()
617 PSA_ASSERT(psa_key_derivation_abort(&operation)); in exercise_key_derivation_key()
630 psa_key_derivation_operation_t *operation, in mbedtls_test_psa_key_agreement_with_self() argument
663 operation, PSA_KEY_DERIVATION_INPUT_SECRET, key, in mbedtls_test_psa_key_agreement_with_self()
771 psa_key_derivation_operation_t operation = PSA_KEY_DERIVATION_OPERATION_INIT; in exercise_key_agreement_key() local
781 PSA_ASSERT(psa_key_derivation_setup(&operation, alg)); in exercise_key_agreement_key()
785 &operation, PSA_KEY_DERIVATION_INPUT_SEED, in exercise_key_agreement_key()
791 &operation, PSA_KEY_DERIVATION_INPUT_SALT, in exercise_key_agreement_key()
814 TEST_EQUAL(mbedtls_test_psa_key_agreement_with_self(&operation, key, in exercise_key_agreement_key()
825 &operation, PSA_KEY_DERIVATION_INPUT_LABEL, in exercise_key_agreement_key()
829 &operation, PSA_KEY_DERIVATION_INPUT_INFO, 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()