Lines Matching refs:status

319     psa_status_t status;
321 status = psa_get_key_attributes(ctx->priv_id, &attributes);
322 if (status != PSA_SUCCESS) {
526 psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
527 status = psa_get_key_attributes(pk->priv_id, &old_attributes);
528 if (status != PSA_SUCCESS) {
598 psa_status_t status = psa_export_key(old_key_id,
601 if (status != PSA_SUCCESS) {
602 return status;
604 status = psa_import_key(attributes, key_buffer, key_length, new_key_id);
606 return status;
615 psa_status_t status = psa_copy_key(old_key_id, attributes, new_key_id);
616 if (status == PSA_ERROR_NOT_PERMITTED /*missing COPY usage*/ ||
617 status == PSA_ERROR_INVALID_ARGUMENT /*incompatible policy*/) {
630 status = psa_get_key_attributes(old_key_id, &old_attributes);
631 if (status != PSA_SUCCESS) {
639 status = export_import_into_psa(old_key_id, attributes, new_key_id);
641 return PSA_PK_TO_MBEDTLS_ERR(status);
812 psa_status_t status =
814 if (status != PSA_SUCCESS) {
822 status = psa_export_public_key(pk->priv_id,
825 if (status != PSA_SUCCESS) {
826 return PSA_PK_TO_MBEDTLS_ERR(status);
868 psa_status_t status;
882 status = psa_get_key_attributes(key_id, &key_attr);
883 if (status != PSA_SUCCESS) {
888 status = psa_export_public_key(key_id, exp_key, sizeof(exp_key), &exp_key_len);
890 status = psa_export_key(key_id, exp_key, sizeof(exp_key), &exp_key_len);
892 if (status != PSA_SUCCESS) {
893 ret = PSA_PK_TO_MBEDTLS_ERR(status);
1157 psa_status_t status = PSA_ERROR_DATA_CORRUPT;
1175 status = psa_import_key(&attributes,
1178 if (status != PSA_SUCCESS) {
1180 return PSA_PK_TO_MBEDTLS_ERR(status);
1190 status = psa_verify_hash(key_id, psa_sig_alg, hash,
1194 if (status == PSA_SUCCESS && sig_len > mbedtls_pk_get_len(ctx)) {
1198 if (status == PSA_SUCCESS) {
1199 status = destruction_status;
1202 return PSA_PK_RSA_TO_MBEDTLS_ERR(status);
1335 psa_status_t status;
1337 status = psa_get_key_attributes(ctx->priv_id, &key_attr);
1338 if (status != PSA_SUCCESS) {
1339 return PSA_PK_RSA_TO_MBEDTLS_ERR(status);
1364 status = psa_sign_hash(ctx->priv_id, sign_alg,
1367 return PSA_PK_RSA_TO_MBEDTLS_ERR(status);