Lines Matching refs:status
262 psa_status_t status; in mbedtls_cipher_info_from_psa() local
265 status = mbedtls_cipher_values_from_psa(alg, key_type, &key_bits, &mode, &cipher_id_tmp); in mbedtls_cipher_info_from_psa()
266 if (status != PSA_SUCCESS) { in mbedtls_cipher_info_from_psa()
423 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in psa_cipher_update_ecb() local
429 status = PSA_SUCCESS; in psa_cipher_update_ecb()
448 status = mbedtls_to_psa_error( in psa_cipher_update_ecb()
454 if (status != PSA_SUCCESS) { in psa_cipher_update_ecb()
466 status = mbedtls_to_psa_error( in psa_cipher_update_ecb()
471 if (status != PSA_SUCCESS) { in psa_cipher_update_ecb()
489 status = PSA_SUCCESS; in psa_cipher_update_ecb()
492 return status; in psa_cipher_update_ecb()
501 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_cipher_update() local
525 status = psa_cipher_update_ecb(&operation->ctx.cipher, in mbedtls_psa_cipher_update()
535 status = PSA_SUCCESS; in mbedtls_psa_cipher_update()
537 status = mbedtls_to_psa_error( in mbedtls_psa_cipher_update()
546 return status; in mbedtls_psa_cipher_update()
553 psa_status_t status = PSA_ERROR_GENERIC_ERROR; in mbedtls_psa_cipher_finish() local
559 status = PSA_ERROR_INVALID_ARGUMENT; in mbedtls_psa_cipher_finish()
564 status = mbedtls_to_psa_error( in mbedtls_psa_cipher_finish()
568 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_finish()
577 status = PSA_ERROR_BUFFER_TOO_SMALL; in mbedtls_psa_cipher_finish()
584 return status; in mbedtls_psa_cipher_finish()
614 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_cipher_encrypt() local
618 status = mbedtls_psa_cipher_encrypt_setup(&operation, attributes, in mbedtls_psa_cipher_encrypt()
621 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
626 status = mbedtls_psa_cipher_set_iv(&operation, iv, iv_length); in mbedtls_psa_cipher_encrypt()
627 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
632 status = mbedtls_psa_cipher_update(&operation, input, input_length, in mbedtls_psa_cipher_encrypt()
635 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
639 status = mbedtls_psa_cipher_finish( in mbedtls_psa_cipher_encrypt()
643 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
650 if (status == PSA_SUCCESS) { in mbedtls_psa_cipher_encrypt()
651 status = mbedtls_psa_cipher_abort(&operation); in mbedtls_psa_cipher_encrypt()
656 return status; in mbedtls_psa_cipher_encrypt()
670 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_cipher_decrypt() local
674 status = mbedtls_psa_cipher_decrypt_setup(&operation, attributes, in mbedtls_psa_cipher_decrypt()
677 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
682 status = mbedtls_psa_cipher_set_iv(&operation, in mbedtls_psa_cipher_decrypt()
684 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
689 status = mbedtls_psa_cipher_update( in mbedtls_psa_cipher_decrypt()
694 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
700 status = mbedtls_psa_cipher_finish( in mbedtls_psa_cipher_decrypt()
704 if (status != PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
711 if (status == PSA_SUCCESS) { in mbedtls_psa_cipher_decrypt()
712 status = mbedtls_psa_cipher_abort(&operation); in mbedtls_psa_cipher_decrypt()
717 return status; in mbedtls_psa_cipher_decrypt()