Restructure the way driver contexts are declared

Drivers (both built-in and external) need to declare their context
structures in a way such that they are accessible by the
to-be-autogenerated crypto_driver_contexts.h file. That file lives in
include/psa, which means all builtin driver context structure
declarations also need to live in include/psa.

Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
Steven Cooreman 2021-03-09 09:50:44 +01:00
parent 0d58666395
commit 830aff2a98
6 changed files with 106 additions and 68 deletions

View file

@ -70,7 +70,7 @@ extern "C" {
#include "mbedtls/gcm.h"
/* Include the context definition for the compiled-in drivers */
#include "../../library/psa_crypto_driver_wrappers_contexts.h"
#include "psa/crypto_driver_contexts.h"
typedef struct {
/** Unique ID indicating which driver got assigned to do the