PAL ROT. This file contains the ROT (root of trust) API. More...
#include <stdint.h>Go to the source code of this file.
Typedefs | |
| typedef enum palDeviceKeyType | palDevKeyType_t |
| Device key types supported in PAL. More... | |
Enumerations | |
| enum | palDeviceKeyType { palOsStorageEncryptionKey128Bit = 0, palOsStorageSignatureKey128Bit = 1, palOsStorageHmacSha256 = 2 } |
| Device key types supported in PAL. More... | |
Functions | |
| palStatus_t | pal_osGetDeviceKey (palDevKeyType_t keyType, uint8_t *key, size_t keyLenBytes) |
| palStatus_t | pal_osSetRoT (uint8_t *key, size_t keyLenBytes) |
PAL ROT. This file contains the ROT (root of trust) API.
| typedef enum palDeviceKeyType palDevKeyType_t |
Device key types supported in PAL.
| enum palDeviceKeyType |
| palStatus_t pal_osGetDeviceKey | ( | palDevKeyType_t | keyType, |
| uint8_t * | key, | ||
| size_t | keyLenBytes | ||
| ) |
Return a device unique key derived from the root of trust.
| [in] | keyType | The type of key to derive. |
| [in,out] | key | A 128-bit OR 256-bit buffer to hold the derived key, size is defined according to the keyType. |
| [in] | keyLenBytes | The size of buffer to hold the 128-bit OR 256-bit key. |
| palStatus_t pal_osSetRoT | ( | uint8_t * | key, |
| size_t | keyLenBytes | ||
| ) |
Sets a root of trust key. The size of the key must be 16 bytes. This function is not implemented for HW RoT configuration.
| [in] | key | A 16 bytes buffer with a root of trust key to set. |
| [in] | keyLenBytes | The size of the buffer must be 16 bytes. |