#include "attest_public_key.h"
#include "psa/crypto.h"
#include <stdint.h>
#include "attest.h"
Go to the source code of this file.
Calculates the size of ECC public key in bytes based on the bit size of the curve.
Definition at line 19 of file attest_public_key.c.
Register the initial attestation public key to Crypto service to verify the signature of the token.
- Parameters
-
[out] | key_handle_public | Pointer to the key handle allocated for the public key |
- Return values
-
PSA_ATTEST_ERR_SUCCESS | Key was registered. |
PSA_ATTEST_ERR_GENERAL | Key could not be registered. |
Definition at line 39 of file attest_public_key.c.
Unregister the initial attestation public key from Crypto service to do not occupy key slot.
- Parameters
-
[in] | key_handle_public | Key handle associated to the public key |
- Return values
-
PSA_ATTEST_ERR_SUCCESS | Key was unregistered. |
PSA_ATTEST_ERR_GENERAL | Key could not be unregistered. |
Definition at line 81 of file attest_public_key.c.