Lines Matching refs:status
27 static int local_err_translation(psa_status_t status) in local_err_translation() argument
29 return psa_status_to_mbedtls(status, psa_to_ssl_errors, in local_err_translation()
33 #define PSA_TO_MBEDTLS_ERR(status) local_err_translation(status) argument
2522 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in ssl_get_ecdh_params_from_cert() local
2548 status = psa_get_key_attributes(pk->priv_id, &key_attributes); in ssl_get_ecdh_params_from_cert()
2549 if (status != PSA_SUCCESS) { in ssl_get_ecdh_params_from_cert()
2550 ret = PSA_TO_MBEDTLS_ERR(status); in ssl_get_ecdh_params_from_cert()
2569 status = psa_export_key(pk->priv_id, buf, sizeof(buf), &key_len); in ssl_get_ecdh_params_from_cert()
2570 if (status != PSA_SUCCESS) { in ssl_get_ecdh_params_from_cert()
2571 ret = PSA_TO_MBEDTLS_ERR(status); in ssl_get_ecdh_params_from_cert()
2574 status = psa_import_key(&key_attributes, buf, key_len, in ssl_get_ecdh_params_from_cert()
2576 if (status != PSA_SUCCESS) { in ssl_get_ecdh_params_from_cert()
2577 ret = PSA_TO_MBEDTLS_ERR(status); in ssl_get_ecdh_params_from_cert()
2770 psa_status_t status = PSA_ERROR_GENERIC_ERROR; in ssl_prepare_server_key_exchange() local
2812 status = psa_generate_key(&key_attributes, in ssl_prepare_server_key_exchange()
2814 if (status != PSA_SUCCESS) { in ssl_prepare_server_key_exchange()
2815 ret = PSA_TO_MBEDTLS_ERR(status); in ssl_prepare_server_key_exchange()
2835 status = psa_export_public_key(handshake->xxdh_psa_privkey, in ssl_prepare_server_key_exchange()
2838 if (status != PSA_SUCCESS) { in ssl_prepare_server_key_exchange()
2839 ret = PSA_TO_MBEDTLS_ERR(status); in ssl_prepare_server_key_exchange()
3222 psa_status_t status = PSA_ERROR_GENERIC_ERROR; in ssl_parse_client_key_exchange() local
3255 status = psa_raw_key_agreement( in ssl_parse_client_key_exchange()
3260 if (status != PSA_SUCCESS) { in ssl_parse_client_key_exchange()
3261 ret = PSA_TO_MBEDTLS_ERR(status); in ssl_parse_client_key_exchange()
3271 status = psa_destroy_key(handshake->xxdh_psa_privkey); in ssl_parse_client_key_exchange()
3273 if (status != PSA_SUCCESS) { in ssl_parse_client_key_exchange()
3274 ret = PSA_TO_MBEDTLS_ERR(status); in ssl_parse_client_key_exchange()
3301 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in ssl_parse_client_key_exchange() local
3361 status = psa_raw_key_agreement(PSA_ALG_ECDH, in ssl_parse_client_key_exchange()
3372 if (status != PSA_SUCCESS) { in ssl_parse_client_key_exchange()
3373 return PSA_TO_MBEDTLS_ERR(status); in ssl_parse_client_key_exchange()