Lines Matching refs:status

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