Mistake on this page? Email us
pal_plat_rot.h File Reference

PAL RoT - platform. This file contains the RoT (Root of Trust) API. More...

#include "pal.h"
#include <stdint.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define PAL_SHA256_DEVICE_KEY_SIZE_IN_BYTES   32
 
#define PAL_DEVICE_KEY_SIZE_IN_BITS   (128)
 
#define PAL_DEVICE_KEY_SIZE_IN_BYTES   (PAL_DEVICE_KEY_SIZE_IN_BITS / 8)
 

Functions

palStatus_t pal_plat_osGetRoT (uint8_t *keyBuf, size_t keyLenBytes)
 Retrieves a platform Root of Trust certificate. More...
 

Detailed Description

PAL RoT - platform. This file contains the RoT (Root of Trust) API.

Macro Definition Documentation

#define PAL_DEVICE_KEY_SIZE_IN_BITS   (128)
#define PAL_DEVICE_KEY_SIZE_IN_BYTES   (PAL_DEVICE_KEY_SIZE_IN_BITS / 8)
#define PAL_SHA256_DEVICE_KEY_SIZE_IN_BYTES   32

Function Documentation

palStatus_t pal_plat_osGetRoT ( uint8_t *  keyBuf,
size_t  keyLenBytes 
)

Retrieves a platform Root of Trust certificate.

Parameters
[in,out]*keyBufA pointer to the buffer that holds the RoT. The buffer needs to be able to hold 16 bytes of data.
[in]keyLenBytesThe size of the buffer must be 16 bytes.
Returns
PAL_SUCCESS(0) in case of success. A negative value indicating a specific error code in case of failure.