#include <stddef.h>
#include <stdint.h>
#include "attest_key.h"
#include "tfm_plat_crypto_keys.h"
#include "psa/crypto.h"
#include "tfm_memory_utils.h"
Go to the source code of this file.
Get the buffer of Instance ID data.
- Parameters
-
[out] | id_buf | Address and length of Instance ID buffer |
- Return values
-
PSA_ATTEST_ERR_SUCCESS | Instance ID was successfully returned. |
PSA_ATTEST_ERR_CLAIM_UNAVAILABLE | Instance ID is unavailable |
PSA_ATTEST_ERR_GENERAL | Instance ID could not be returned. |
Definition at line 240 of file attest_symmetric_key.c.
Get the handle of the key for signing token In asymmetric key algorithm based initial attestation, it is the handle of the initial attestation private key. In symmetric key algorithm based initial attestation, it is the handle of symmetric initial attestation key.
- Parameters
-
[out] | key_handle | The handle of the key for signing token. |
- Return values
-
PSA_ATTEST_ERR_SUCCESS | Key handle was successfully returned. |
PSA_ATTEST_ERR_GENERAL | Key handle could not be returned. |
Definition at line 228 of file attest_symmetric_key.c.
Register the initial attestation private key to Crypto service. Loads the public key if the key has not already been loaded.
- Note
- Private key MUST be present on the device, otherwise initial attestation token cannot be signed.
- Return values
-
PSA_ATTEST_ERR_SUCCESS | Key(s) was registered. |
PSA_ATTEST_ERR_GENERAL | Key(s) could not be registered. |
Definition at line 134 of file attest_symmetric_key.c.
Unregister the initial attestation private key from Crypto service to do not occupy key slot.
- Return values
-
PSA_ATTEST_ERR_SUCCESS | Key(s) was unregistered. |
PSA_ATTEST_ERR_GENERAL | Key(s) could not be unregistered. |
Definition at line 208 of file attest_symmetric_key.c.