This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Message
get secure location failed.
Symptom
Failed to obtain the location information.
Possible causes
GPS signals cannot be obtained.
The sensor is faulty.
Solution
Send the request again. If the issue persists, submit a ticket online.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.