MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClPsaDriver.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------*/
2
/* Copyright 2022-2023 NXP */
3
/* */
4
/* NXP Confidential. This software is owned or controlled by NXP and may */
5
/* only be used strictly in accordance with the applicable license terms. */
6
/* By expressly accepting such terms or by downloading, installing, */
7
/* activating and/or otherwise using the software, you are agreeing that */
8
/* you have read, and that you agree to comply with and are bound by, such */
9
/* license terms. If you do not agree to be bound by the applicable license */
10
/* terms, then you may not retain, install, activate or otherwise use the */
11
/* software. */
12
/*--------------------------------------------------------------------------*/
13
18
#ifndef MCUXCLPSADRIVER_H_
19
#define MCUXCLPSADRIVER_H_
20
21
22
#include <common.h>
23
#include <psa/crypto.h>
24
#include <psa_crypto_driver_wrappers.h>
25
#include <mcuxClConfig.h>
// Exported features flags header
26
27
/* Include TF-M builtin key driver added from TFM v1.8 updates */
28
#if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER)
29
#include "tfm_builtin_key_loader.h"
30
#endif
/* PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER */
31
32
/* If TF-M builtin key driver is enabled (only aplicable for tfm examples) */
33
#if defined(PSA_CRYPTO_DRIVER_TFM_BUILTIN_KEY_LOADER)
34
#define MCUXCLPSADRIVER_IS_LOCAL_STORAGE(location) ((location) == PSA_KEY_LOCATION_LOCAL_STORAGE || (location) == TFM_BUILTIN_KEY_LOADER_KEY_LOCATION)
35
#else
36
#define MCUXCLPSADRIVER_IS_LOCAL_STORAGE(location) ((location) == PSA_KEY_LOCATION_LOCAL_STORAGE)
37
#endif
38
39
#define PSA_KEY_LOCATION_EXTERNAL_STORAGE ((psa_key_location_t)(PSA_KEY_LOCATION_VENDOR_FLAG | 0x00U))
40
41
#endif
/* MCUXCLPSADRIVER_H_ */
mcuxClPsaDriver.h
Generated by
1.9.7