Lines Matching full:status
60 psa_status_t status; in psa_check_rsa_key_byte_aligned() local
62 status = mbedtls_to_psa_error( in psa_check_rsa_key_byte_aligned()
64 if( status == PSA_SUCCESS ) in psa_check_rsa_key_byte_aligned()
67 status = PSA_ERROR_NOT_SUPPORTED; in psa_check_rsa_key_byte_aligned()
70 return( status ); in psa_check_rsa_key_byte_aligned()
77 psa_status_t status; in mbedtls_psa_rsa_load_representation() local
84 status = mbedtls_to_psa_error( in mbedtls_psa_rsa_load_representation()
87 status = mbedtls_to_psa_error( in mbedtls_psa_rsa_load_representation()
89 if( status != PSA_SUCCESS ) in mbedtls_psa_rsa_load_representation()
96 status = PSA_ERROR_INVALID_ARGUMENT; in mbedtls_psa_rsa_load_representation()
106 status = PSA_ERROR_NOT_SUPPORTED; in mbedtls_psa_rsa_load_representation()
109 status = psa_check_rsa_key_byte_aligned( mbedtls_pk_rsa( ctx ) ); in mbedtls_psa_rsa_load_representation()
110 if( status != PSA_SUCCESS ) in mbedtls_psa_rsa_load_representation()
120 return( status ); in mbedtls_psa_rsa_load_representation()
138 psa_status_t status; in mbedtls_psa_rsa_import_key() local
142 status = mbedtls_psa_rsa_load_representation( attributes->core.type, in mbedtls_psa_rsa_import_key()
146 if( status != PSA_SUCCESS ) in mbedtls_psa_rsa_import_key()
155 status = mbedtls_psa_rsa_export_key( attributes->core.type, in mbedtls_psa_rsa_import_key()
165 return( status ); in mbedtls_psa_rsa_import_key()
229 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_rsa_export_public_key() local
232 status = mbedtls_psa_rsa_load_representation( in mbedtls_psa_rsa_export_public_key()
234 if( status != PSA_SUCCESS ) in mbedtls_psa_rsa_export_public_key()
235 return( status ); in mbedtls_psa_rsa_export_public_key()
237 status = mbedtls_psa_rsa_export_key( PSA_KEY_TYPE_RSA_PUBLIC_KEY, in mbedtls_psa_rsa_export_public_key()
246 return( status ); in mbedtls_psa_rsa_export_public_key()
283 psa_status_t status; in mbedtls_psa_rsa_generate_key() local
288 status = psa_rsa_read_exponent( attributes->domain_parameters, in mbedtls_psa_rsa_generate_key()
291 if( status != PSA_SUCCESS ) in mbedtls_psa_rsa_generate_key()
292 return( status ); in mbedtls_psa_rsa_generate_key()
303 status = mbedtls_psa_rsa_export_key( attributes->core.type, in mbedtls_psa_rsa_generate_key()
308 return( status ); in mbedtls_psa_rsa_generate_key()
356 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_rsa_sign_hash() local
361 status = mbedtls_psa_rsa_load_representation( attributes->core.type, in mbedtls_psa_rsa_sign_hash()
365 if( status != PSA_SUCCESS ) in mbedtls_psa_rsa_sign_hash()
366 return( status ); in mbedtls_psa_rsa_sign_hash()
368 status = psa_rsa_decode_md_type( alg, hash_length, &md_alg ); in mbedtls_psa_rsa_sign_hash()
369 if( status != PSA_SUCCESS ) in mbedtls_psa_rsa_sign_hash()
374 status = PSA_ERROR_BUFFER_TOO_SMALL; in mbedtls_psa_rsa_sign_hash()
410 status = PSA_ERROR_INVALID_ARGUMENT; in mbedtls_psa_rsa_sign_hash()
416 status = mbedtls_to_psa_error( ret ); in mbedtls_psa_rsa_sign_hash()
422 return( status ); in mbedtls_psa_rsa_sign_hash()
452 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_rsa_verify_hash() local
457 status = mbedtls_psa_rsa_load_representation( attributes->core.type, in mbedtls_psa_rsa_verify_hash()
461 if( status != PSA_SUCCESS ) in mbedtls_psa_rsa_verify_hash()
464 status = psa_rsa_decode_md_type( alg, hash_length, &md_alg ); in mbedtls_psa_rsa_verify_hash()
465 if( status != PSA_SUCCESS ) in mbedtls_psa_rsa_verify_hash()
470 status = PSA_ERROR_INVALID_SIGNATURE; in mbedtls_psa_rsa_verify_hash()
509 status = PSA_ERROR_INVALID_ARGUMENT; in mbedtls_psa_rsa_verify_hash()
516 status = ( ret == MBEDTLS_ERR_RSA_INVALID_PADDING ) ? in mbedtls_psa_rsa_verify_hash()
524 return( status ); in mbedtls_psa_rsa_verify_hash()