81 #ifndef ti_drivers_cryptoutils_cyptokey_CryptoKey__include 82 #define ti_drivers_cryptoutils_cyptokey_CryptoKey__include 113 #define CryptoKey_STATUS_RESERVED (-32) 128 #define CryptoKey_STATUS_SUCCESS (0) 136 #define CryptoKey_STATUS_ERROR (-1) 144 #define CryptoKey_STATUS_UNDEFINED_ENCODING (-2) 154 #define CRYPTOKEY_HSM 0x20U 156 #define CRYPTOKEY_PLAINTEXT 0x02U 157 #define CRYPTOKEY_BLANK_PLAINTEXT 0x04U 158 #define CRYPTOKEY_KEYSTORE 0x08U 159 #define CRYPTOKEY_BLANK_KEYSTORE 0x10U CryptoKey_Plaintext plaintext
Definition: CryptoKey.h:213
static const CryptoKey_Encoding CryptoKey_KEYSTORE
Definition: CryptoKey.h:168
uint8_t CryptoKey_Encoding
List of the different types of CryptoKey. _HSM encodings are only available for select devices...
Definition: CryptoKey.h:165
#define CRYPTOKEY_HSM
Definition: CryptoKey.h:154
#define CRYPTOKEY_KEYSTORE
Definition: CryptoKey.h:158
#define CRYPTOKEY_BLANK_PLAINTEXT
Definition: CryptoKey.h:157
static const CryptoKey_Encoding CryptoKey_BLANK_PLAINTEXT
Definition: CryptoKey.h:167
CryptoKey datastructure.
Definition: CryptoKey.h:208
int_fast16_t CryptoKey_copySecureOutputKey(CryptoKey *dst, CryptoKey **src)
Function to copy and verify a secure output CryptoKey.
Key store CryptoKey datastructure.
Definition: CryptoKey.h:194
uint32_t keyID
Definition: CryptoKey.h:197
int_fast16_t CryptoKey_verifySecureOutputKey(const CryptoKey *secureKey)
Function to verify a secure output CryptoKey.
int_fast16_t CryptoKey_getCryptoKeyType(const CryptoKey *keyHandle, CryptoKey_Encoding *keyType)
Gets the key type of the CryptoKey.
static const CryptoKey_Encoding CryptoKey_PLAINTEXT
Definition: CryptoKey.h:166
uint32_t keyLength
Definition: CryptoKey.h:196
static const CryptoKey_Encoding CryptoKey_PLAINTEXT_HSM
Definition: CryptoKey.h:170
#define CRYPTOKEY_BLANK_KEYSTORE
Definition: CryptoKey.h:159
int_fast16_t CryptoKey_isBlank(const CryptoKey *keyHandle, bool *isBlank)
Whether the CryptoKey is 'blank' or represents valid keying material.
int_fast16_t CryptoKey_verifySecureInputKey(const CryptoKey *secureKey)
Function to verify a secure CryptoKey.
#define CRYPTOKEY_PLAINTEXT
Definition: CryptoKey.h:156
CryptoKey_Encoding encoding
Definition: CryptoKey.h:210
int_fast16_t CryptoKey_copySecureInputKey(CryptoKey *dst, const CryptoKey **src)
Function to copy and verify a secure input CryptoKey.
Plaintext CryptoKey datastructure.
Definition: CryptoKey.h:178
int_fast16_t CryptoKey_initSecurityPolicy(CryptoKey_SecurityPolicy *policy)
Function to initialize the CryptoKey_SecurityPolicy struct to its defaults.
void * keyAttributes
Definition: CryptoKey.h:198
CryptoKey_KeyStore keyStore
Definition: CryptoKey.h:214
struct CryptoKey_SecurityPolicy_ CryptoKey_SecurityPolicy
Structure that specifies the restrictions on a CryptoKey.
Definition: CryptoKey.h:228
static const CryptoKey_Encoding CryptoKey_BLANK_KEYSTORE
Definition: CryptoKey.h:169
uint8_t * keyMaterial
Definition: CryptoKey.h:180
uint32_t keyLength
Definition: CryptoKey.h:181