31#ifndef _KEY_PROVIDER_H
32#define _KEY_PROVIDER_H
37#include "boot_config.h"
40#ifndef KEY_PROVIDER_SUPPORT
41#define KEY_PROVIDER_SUPPORT DISABLED
42#elif ((KEY_PROVIDER_SUPPORT != ENABLED) && (KEY_PROVIDER_SUPPORT != DISABLED))
43#error KEY_PROVIDER_SUPPORT parameter is not valid!
47#define KEY_PROVIDER_MAX_KEY_SIZE 32
cboot_error_t
Error codes.
Definition cboot_error.h:57
cboot_error_t keyProviderRegisterCallback(KeyProviderCallback callback)
Register cipher key provider callback function.
Definition key_provider.c:51
cboot_error_t keyProviderGetKey(uint8_t *key, size_t *keyLen)
Retrieve the cipher key from the registered provider.
Definition key_provider.c:71
cboot_error_t(* KeyProviderCallback)(uint8_t *key, size_t *keyLen)
Cipher key provider callback function.
Definition key_provider.h:67