Lines Matching refs:status
265 psa_status_t status; in mbedtls_cipher_info_from_psa() local
268 status = mbedtls_cipher_values_from_psa(alg, key_type, &key_bits, &mode, &cipher_id_tmp); in mbedtls_cipher_info_from_psa()
269 if (status != PSA_SUCCESS) { in mbedtls_cipher_info_from_psa()
426 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_update_ecb() local
432 status = PSA_SUCCESS; in psa_cipher_update_ecb()
451 status = mbedtls_to_psa_error( in psa_cipher_update_ecb()
457 if (status != PSA_SUCCESS) { in psa_cipher_update_ecb()
469 status = mbedtls_to_psa_error( in psa_cipher_update_ecb()
474 if (status != PSA_SUCCESS) { in psa_cipher_update_ecb()
492 status = PSA_SUCCESS; in psa_cipher_update_ecb()
495 return status; in psa_cipher_update_ecb()
504 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_cipher_update() local
528 status = psa_cipher_update_ecb(&operation->ctx.cipher, in mbedtls_psa_cipher_update()
538 status = PSA_SUCCESS; in mbedtls_psa_cipher_update()
540 status = mbedtls_to_psa_error( in mbedtls_psa_cipher_update()
549 return status; in mbedtls_psa_cipher_update()
556 psa_status_t status = PSA_ERROR_GENERIC_ERROR; in mbedtls_psa_cipher_finish() local
562 status = PSA_ERROR_INVALID_ARGUMENT; in mbedtls_psa_cipher_finish()
567 status = mbedtls_to_psa_error( in mbedtls_psa_cipher_finish()
571 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_finish()
580 status = PSA_ERROR_BUFFER_TOO_SMALL; in mbedtls_psa_cipher_finish()
587 return status; in mbedtls_psa_cipher_finish()
617 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_cipher_encrypt() local
621 status = mbedtls_psa_cipher_encrypt_setup(&operation, attributes, in mbedtls_psa_cipher_encrypt()
624 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
629 status = mbedtls_psa_cipher_set_iv(&operation, iv, iv_length); in mbedtls_psa_cipher_encrypt()
630 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
635 status = mbedtls_psa_cipher_update(&operation, input, input_length, in mbedtls_psa_cipher_encrypt()
638 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
642 status = mbedtls_psa_cipher_finish( in mbedtls_psa_cipher_encrypt()
646 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
653 if (status == PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
654 status = mbedtls_psa_cipher_abort(&operation); in mbedtls_psa_cipher_encrypt()
659 return status; in mbedtls_psa_cipher_encrypt()
673 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_cipher_decrypt() local
677 status = mbedtls_psa_cipher_decrypt_setup(&operation, attributes, in mbedtls_psa_cipher_decrypt()
680 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
685 status = mbedtls_psa_cipher_set_iv(&operation, in mbedtls_psa_cipher_decrypt()
687 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
692 status = mbedtls_psa_cipher_update( in mbedtls_psa_cipher_decrypt()
697 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
703 status = mbedtls_psa_cipher_finish( in mbedtls_psa_cipher_decrypt()
707 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
714 if (status == PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
715 status = mbedtls_psa_cipher_abort(&operation); in mbedtls_psa_cipher_decrypt()
720 return status; in mbedtls_psa_cipher_decrypt()