81 #ifndef ti_drivers_cryptoutils_cyptokey_CryptoKey__include 82 #define ti_drivers_cryptoutils_cyptokey_CryptoKey__include 87 #if (ENABLE_KEY_STORAGE == 1) || (SPE_ENABLED == 1) 117 #define CryptoKey_STATUS_RESERVED (-32) 132 #define CryptoKey_STATUS_SUCCESS (0) 140 #define CryptoKey_STATUS_ERROR (-1) 148 #define CryptoKey_STATUS_UNDEFINED_ENCODING (-2) 186 #if (ENABLE_KEY_STORAGE == 1) || (SPE_ENABLED == 1) CryptoKey_Plaintext plaintext
Definition: CryptoKey.h:203
static const CryptoKey_Encoding CryptoKey_KEYSTORE
Definition: CryptoKey.h:161
uint8_t CryptoKey_Encoding
List of the different types of CryptoKey.
Definition: CryptoKey.h:158
int_fast16_t CryptoKey_verifySecureOutputKey(CryptoKey *secureKey)
Function to verify a secure output CryptoKey.
static const CryptoKey_Encoding CryptoKey_BLANK_PLAINTEXT
Definition: CryptoKey.h:160
CryptoKeyKeyStore_PSA driver header.
CryptoKey datastructure.
Definition: CryptoKey.h:198
Key store CryptoKey datastructure.
Definition: CryptoKey.h:182
int_fast16_t CryptoKey_getCryptoKeyType(CryptoKey *keyHandle, CryptoKey_Encoding *keyType)
Gets the key type of the CryptoKey.
uint32_t keyID
Definition: CryptoKey.h:185
static const CryptoKey_Encoding CryptoKey_PLAINTEXT
Definition: CryptoKey.h:159
int_fast16_t CryptoKey_verifySecureInputKey(CryptoKey *secureKey)
Function to verify a secure CryptoKey.
uint32_t keyLength
Definition: CryptoKey.h:184
int_fast16_t CryptoKey_markAsBlank(CryptoKey *keyHandle)
Marks a CryptoKey as 'blank'.
CryptoKey_Encoding encoding
Definition: CryptoKey.h:200
Plaintext CryptoKey datastructure.
Definition: CryptoKey.h:170
int_fast16_t CryptoKey_initSecurityPolicy(CryptoKey_SecurityPolicy *policy)
Function to initialize the CryptoKey_SecurityPolicy struct to its defaults.
int_fast16_t CryptoKey_isBlank(CryptoKey *keyHandle, bool *isBlank)
Wheather the CryptoKey is 'blank' or represents valid keying material.
CryptoKey_KeyStore keyStore
Definition: CryptoKey.h:204
struct CryptoKey_SecurityPolicy_ CryptoKey_SecurityPolicy
Structure that specifies the restrictions on a CryptoKey.
Definition: CryptoKey.h:218
static const CryptoKey_Encoding CryptoKey_BLANK_KEYSTORE
Definition: CryptoKey.h:162
uint8_t * keyMaterial
Definition: CryptoKey.h:172
psa_key_attributes_t KeyStore_PSA_KeyAttributes
Definition: CryptoKeyKeyStore_PSA.h:866
uint32_t keyLength
Definition: CryptoKey.h:173