目录

TrustedAppService

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

1011500001 Invalid Algorithm Parameter

Message

algorithm param is invalid.

Symptom

The key parameter is not supported.

Possible causes

The passed attestation key algorithm or key length is not supported.

Solution

Pass an enumerated algorithm and key length provided by the kit.

1011500002 Some Parameters Are Missing

Message

algorithm param is missing.

Symptom

Some parameters are missing.

Possible causes

Not all parameters required by the API are passed.

Solution

Pass all the mandatory parameters by referring to the API description.

1011500003 Key Generation Failed

Message

create attestation key failed.

Symptom

Failed to generate the key.

Possible causes

The device is not connected to the network.

Solution

Connect the device to the network.

1011500004 Certificate Creation Failed

Message

create anonymous certificate failed.

Symptom

Failed to create the certificate file.

Possible causes

The certificate file storage path conflicts with another file.

Solution

Change the storage path or name of the file that causes the conflict.

1011500005 File Operation Failed

Message

operate file failed.

Symptom

The key file operation failed.

Possible causes

The file system operation failed.

Solution

Send the request again. If the issue persists, submit a ticket online.

1011500006 IPC Failed

Message

ipc communication failed.

Symptom

IPC failed.

Possible causes

The SA of TrustedAppService is not started.

Solution

Send the request again. If the issue persists, submit a ticket online.

1011500007 The Key Does Not Exist

Message

item not found.

Symptom

The key does not exist.

Possible causes

The attestation key is not created before the attestation session is initialized.

Solution

Create an attestation key and then initialize an attestation session. For details, please refer to Enabling Device Security Kit.

1011500008 Certificate Verification Failed

Message

verify anonymous certificate failed.

Symptom

Certificate verification failed.

Possible causes

The certificate file is damaged.

Solution

Destroy the attestation key, re-create it, and then initialize the attestation session.

1011500009 Certificate Has Expired

Message

anonymous certificate has expired.

Symptom

The certificate has expired.

Possible causes

The certificate is out of the validity period.

Solution

Destroy the attestation key, re-create it, and then initialize the attestation session.

1011500010 Unmatching Key

Message

get attestation key failed.

Symptom

The key does not match.

Possible causes

The certificate and key do not match.

Solution

Destroy the attestation key, re-create it, and then initialize the attestation session.

1011500011 Failed to Initialize the Camera in Secure Mode

Message

initialize secure camera failed.

Symptom

Failed to initialize the camera in secure mode.

Possible causes

The device serial number passed for initializing the attestation session is invalid.

Solution

Obtain the serial number of the camera in secure mode again. For details, please refer to the Camera Kit Development Guide.

1011500012 Attestation Session Context Is Abnormal

Message

attestation context not initialized.

Symptom

The attestation session is abnormal.

Possible causes

The attestation session is ended in the process of obtaining the data to verify location security or during secure image compression and cropping.

Solution

Re-initialize the attestation session, and then obtain the data to verify location security or compress and crop the secure image.

1011500013 Key Has Expired

Message

attestation key has expired.

Symptom

The key has expired.

Possible causes

The key is out of the validity period.

Solution

Destroy the attestation key, re-create it, and then initialize the attestation session.

1011500014 Location Service Unavailable

Message

location service is unavailable.

Symptom

The location service is not available.

Possible causes

The location service is faulty.

Solution

Send the request again. If the issue persists, submit a ticket online.

1011500015 Location Service Is Disabled

Message

location switch is off.

Symptom

The location service is disabled.

Possible causes

The location service is disabled on the device.

Solution

Enable the location service in Control Panel.

1011500016 Failed to Obtain Location Information

Message

get secure location failed.

Symptom

Failed to obtain the location information.

Possible causes

  1. GPS signals cannot be obtained.

  2. The sensor is faulty.

Solution

Send the request again. If the issue persists, submit a ticket online.

1011500017 Signature Verification Failed

Message

signature verification failed.

Symptom

Signature verification failed.

Possible causes

The signature file is damaged.

Solution

Obtain the secure image data or secure geographical location data again, and initiate a new processing request.

1011500018 Failed to Process the Secure Image

Message

secure image process failed.

Symptom

Failed to process the secure image.

Possible causes

The secure image data is damaged.

Solution

Send the request again. If the issue persists, submit a ticket online.

1027200001 Incorrect Attestation Image Type

Message

Incorrect image format.

Symptom

Incorrect attestation image type.

Possible causes

The input image data is incorrect or does not match the specified type.

Solution

Verify the image data format and send the request again. If the issue persists, submit a ticket online.

1027200002 Insufficient Storage for Attestation Processing

Message

Insufficient storage space for the service.

Symptom

The attestation processing failed due to insufficient storage.

Possible causes

The image data exceeds the storage size of the app, and the storage application fails.

Solution

Verify the image data size and the data size that can be applied for by the app. If the issue persists, submit a ticket online.

1027200003 Signing Certificate Error

Message

Invalid signature certificate parameters.

Symptom

An error occurred when obtaining the attestation signing certificate.

Possible causes

The network connection is abnormal or the certificate obtaining service is unavailable.

Solution

Ensure that the network connection is normal and send the request again. If the issue persists, submit a ticket online.

1027200004 Attestation Integrity Check Failed

Message

Image data hash check failed.

Symptom

Failed to check the integrity of the attestation image signature data.

Possible causes

The image data is damaged or the attestation signing process is faulty.

Solution

Verify the image content and send the request again. If the issue persists, submit a ticket online.

1027200005 Attestation Signing Failed

Message

Image signature calculation failed.

Symptom

Failed to sign the attestation image.

Possible causes

Failed to send the signing request or the internal service timed out.

Solution

Send the request again. If the issue persists, submit a ticket online.

1027200006 Insufficient Storage for Attestation Processing

Message

Signature verification failed.

Symptom

Failed to verify the signature of the attestation image.

Possible causes

The image attestation signature data is incorrect.

Solution

Verify the image data and send the request again. If the issue persists, submit a ticket online.

1027200007 Attestation Signature Assertion Error

Message

No signature assertion found in the image signature.

Symptom

No signature assertion found in the attestation signature.

Possible causes

The image data is damaged or a data error occurred in the signing process.

Solution

Verify the image content and send the request again. If the issue persists, submit a ticket online.

1027200008 Attestation Signature Manifest Error

Message

No signature manifest found in the image signature.

Symptom

No signature manifest found in the attestation signature.

Possible causes

The image data is damaged or a data error occurred in the signing process.

Solution

Verify the image content and send the request again. If the issue persists, submit a ticket online.

1027200009 Incorrect Certificate Chain Information in the Attestation Signature

Message

Certificate chain verification failed or the root certificate is invalid in the signature information.

Symptom

The certificate chain information in the attestation signature is incorrect, or the image does not contain certificate chain information.

Possible causes

The signature source of the image to be verified is untrusted, or the certificate chain information was not correctly written during the signing process.

Solution

Verify the image signature source and send the request again. If the issue persists, submit a ticket online.

1027200010 Not Supported by the Platform

Message

APIs not supported on the platform.

Symptom

The platform does not support this API.

Possible causes

The platform does not support this API.

Solution

The platform does not support this API.

1027200011 Incorrect Attestation Metadata

Message

Incorrect signature metadata.

Symptom

The attestation metadata is incorrect.

Possible causes

The attestation metadata does not match or the mandatory attestation metadata is missing.

Solution

Verify that the attestation metadata format and try again. If the issue persists, submit a ticket online.

1027200012 Attestation Signature Claim Information Error

Message

Invalid claim information during signature verification.

Symptom

The claim information in the attestation signature is incorrect.

Possible causes

The claim information in the attestation signing process is incorrect or damaged.

Solution

Verify the image signature source and image content, and then send the request again. If the issue persists, submit a ticket online.

1027200013 Attestation File Operation Failed

Message

File operation failed.

Symptom

The attestation file operation failed.

Possible causes

No permission to perform operations on the passed attestation file, or the file does not exist.

Solution

Verify that the file path and permission, and try again. If the issue persists, submit a ticket online.

1027200014 Incorrect Attestation Function Parameter

Message

The input argument is invalid.

Symptom

Incorrect attestation function parameter.

Possible causes

The attestation process failed due to incorrect input parameter.

Solution

Verify the input parameter and send the request again. If the issue persists, submit a ticket online.