TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
attest_public_key.c File Reference
#include "attest_public_key.h"
#include "psa/crypto.h"
#include <stdint.h>
#include "attest.h"
Include dependency graph for attest_public_key.c:

Go to the source code of this file.

Data Structures

struct  ecc_public_key_t
 

Macros

#define ECC_CURVE_SECP256R1_PUBLIC_KEY_LENGTH   (1 + 2 * PSA_BITS_TO_BYTES(256))
 Calculates the size of ECC public key in bytes based on the bit size of the curve. More...
 

Functions

enum psa_attest_err_t attest_register_initial_attestation_public_key (psa_key_handle_t *public_key)
 Register the initial attestation public key to Crypto service to verify the signature of the token. More...
 
enum psa_attest_err_t attest_unregister_initial_attestation_public_key (psa_key_handle_t public_key)
 Unregister the initial attestation public key from Crypto service to do not occupy key slot. More...
 

Macro Definition Documentation

#define ECC_CURVE_SECP256R1_PUBLIC_KEY_LENGTH   (1 + 2 * PSA_BITS_TO_BYTES(256))

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.

Function Documentation

enum psa_attest_err_t attest_register_initial_attestation_public_key ( psa_key_handle_t key_handle_public)

Register the initial attestation public key to Crypto service to verify the signature of the token.

Parameters
[out]key_handle_publicPointer to the key handle allocated for the public key
Return values
PSA_ATTEST_ERR_SUCCESSKey was registered.
PSA_ATTEST_ERR_GENERALKey could not be registered.

Definition at line 39 of file attest_public_key.c.

Here is the call graph for this function:

Here is the caller graph for this function:

enum psa_attest_err_t attest_unregister_initial_attestation_public_key ( psa_key_handle_t  key_handle_public)

Unregister the initial attestation public key from Crypto service to do not occupy key slot.

Parameters
[in]key_handle_publicKey handle associated to the public key
Return values
PSA_ATTEST_ERR_SUCCESSKey was unregistered.
PSA_ATTEST_ERR_GENERALKey could not be unregistered.

Definition at line 81 of file attest_public_key.c.

Here is the caller graph for this function: