Lines Matching refs:status

96     psa_status_t status;  in mbedtls_psa_ecp_load_representation()  local
140 status = check_ecc_parameters(PSA_KEY_TYPE_ECC_GET_FAMILY(type), &curve_bits); in mbedtls_psa_ecp_load_representation()
141 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
149 status = PSA_ERROR_NOT_SUPPORTED; in mbedtls_psa_ecp_load_representation()
153 status = mbedtls_to_psa_error( in mbedtls_psa_ecp_load_representation()
155 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
162 status = mbedtls_to_psa_error( in mbedtls_psa_ecp_load_representation()
166 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
171 status = mbedtls_to_psa_error( in mbedtls_psa_ecp_load_representation()
173 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
178 status = mbedtls_to_psa_error( in mbedtls_psa_ecp_load_representation()
183 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
190 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_load_representation()
195 return status; in mbedtls_psa_ecp_load_representation()
215 psa_status_t status; in mbedtls_psa_ecp_import_key() local
219 status = mbedtls_psa_ecp_load_representation(attributes->type, in mbedtls_psa_ecp_import_key()
224 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_import_key()
238 status = mbedtls_psa_ecp_export_key(attributes->type, in mbedtls_psa_ecp_import_key()
248 return status; in mbedtls_psa_ecp_import_key()
257 psa_status_t status; in mbedtls_psa_ecp_export_key() local
263 status = mbedtls_to_psa_error( in mbedtls_psa_ecp_export_key()
267 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_export_key()
268 return status; in mbedtls_psa_ecp_export_key()
272 status = mbedtls_to_psa_error( in mbedtls_psa_ecp_export_key()
278 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_export_key()
282 return status; in mbedtls_psa_ecp_export_key()
284 status = mbedtls_to_psa_error( in mbedtls_psa_ecp_export_key()
286 return status; in mbedtls_psa_ecp_export_key()
295 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_ecp_export_public_key() local
298 status = mbedtls_psa_ecp_load_representation( in mbedtls_psa_ecp_export_public_key()
301 if (status != PSA_SUCCESS) { in mbedtls_psa_ecp_export_public_key()
302 return status; in mbedtls_psa_ecp_export_public_key()
305 status = mbedtls_psa_ecp_export_key( in mbedtls_psa_ecp_export_public_key()
313 return status; in mbedtls_psa_ecp_export_public_key()
324 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_ecp_generate_key() local
349 status = mbedtls_to_psa_error( in mbedtls_psa_ecp_generate_key()
355 return status; in mbedtls_psa_ecp_generate_key()
371 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_ecdsa_sign_hash() local
377 status = mbedtls_psa_ecp_load_representation(attributes->type, in mbedtls_psa_ecdsa_sign_hash()
382 if (status != PSA_SUCCESS) { in mbedtls_psa_ecdsa_sign_hash()
383 return status; in mbedtls_psa_ecdsa_sign_hash()
457 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_ecdsa_verify_hash() local
464 status = mbedtls_psa_ecp_load_representation(attributes->type, in mbedtls_psa_ecdsa_verify_hash()
469 if (status != PSA_SUCCESS) { in mbedtls_psa_ecdsa_verify_hash()
470 return status; in mbedtls_psa_ecdsa_verify_hash()
478 status = PSA_ERROR_INVALID_SIGNATURE; in mbedtls_psa_ecdsa_verify_hash()
482 status = mbedtls_to_psa_error(mbedtls_mpi_read_binary(&r, in mbedtls_psa_ecdsa_verify_hash()
485 if (status != PSA_SUCCESS) { in mbedtls_psa_ecdsa_verify_hash()
489 status = mbedtls_to_psa_error(mbedtls_mpi_read_binary(&s, in mbedtls_psa_ecdsa_verify_hash()
492 if (status != PSA_SUCCESS) { in mbedtls_psa_ecdsa_verify_hash()
496 status = mbedtls_psa_ecp_load_public_part(ecp); in mbedtls_psa_ecdsa_verify_hash()
497 if (status != PSA_SUCCESS) { in mbedtls_psa_ecdsa_verify_hash()
501 status = mbedtls_to_psa_error(mbedtls_ecdsa_verify(&ecp->grp, hash, in mbedtls_psa_ecdsa_verify_hash()
510 return status; in mbedtls_psa_ecdsa_verify_hash()
528 psa_status_t status; in mbedtls_psa_key_agreement_ecdh() local
534 status = mbedtls_psa_ecp_load_representation( in mbedtls_psa_key_agreement_ecdh()
540 if (status != PSA_SUCCESS) { in mbedtls_psa_key_agreement_ecdh()
541 return status; in mbedtls_psa_key_agreement_ecdh()
549 status = mbedtls_psa_ecp_load_representation( in mbedtls_psa_key_agreement_ecdh()
555 if (status != PSA_SUCCESS) { in mbedtls_psa_key_agreement_ecdh()
559 status = mbedtls_to_psa_error( in mbedtls_psa_key_agreement_ecdh()
561 if (status != PSA_SUCCESS) { in mbedtls_psa_key_agreement_ecdh()
564 status = mbedtls_to_psa_error( in mbedtls_psa_key_agreement_ecdh()
566 if (status != PSA_SUCCESS) { in mbedtls_psa_key_agreement_ecdh()
570 status = mbedtls_to_psa_error( in mbedtls_psa_key_agreement_ecdh()
576 if (status != PSA_SUCCESS) { in mbedtls_psa_key_agreement_ecdh()
580 status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_key_agreement_ecdh()
583 if (status != PSA_SUCCESS) { in mbedtls_psa_key_agreement_ecdh()
591 return status; in mbedtls_psa_key_agreement_ecdh()