46 #ifndef ti_drivers_cryptoutils_cryptokey_CryptoKeyKeyStore_PSA_helpers__include 47 #define ti_drivers_cryptoutils_cryptokey_CryptoKeyKeyStore_PSA_helpers__include 54 #include <ti/drivers/dpl/SemaphoreP.h> 55 #include <ti/devices/DeviceFamily.h> 57 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X4_CC26X3_CC26X4) 58 #include <third_party/mbedtls/library/psa_crypto_core.h> 59 #include <third_party/mbedtls/library/psa_crypto_slot_management.h> 60 #include <third_party/mbedtls/library/psa_crypto_storage.h> 61 #elif ((DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) || (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX)) 64 #error "Unsupported DeviceFamily_Parent for CryptoKeyKeyStore_PSA_helpers" 85 #define FLETCHER_CHECKSUM_ALGORITHM 32 126 #if ((DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) || (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX)) 186 size_t keyBufferSize,
187 uint32_t *keyAssetID,
225 uint32_t *
const pAssetId,
psa_key_usage_t KeyStore_PSA_KeyUsage
Encoding of permitted usage on a key.
Definition: CryptoKeyKeyStore_PSA.h:133
The CryptoKey type is an opaque representation of a cryptographic key.
Definition: CryptoKeyKeyStore_PSA_helpers.h:76
CryptoKeyKeyStore_PSA driver header.
CryptoKey datastructure.
Definition: CryptoKey.h:211
KeyStore_accessSemaphoreObject KeyStore_semaphoreObject
mbedtls_svc_key_id_t KeyStore_PSA_KeyFileId
Definition: CryptoKeyKeyStore_PSA.h:1182
bool KeyStore_acquireLock(void)
Attempt to acquire lock to access KeyStore. This function is used to synchronize drivers and the appl...
psa_algorithm_t KeyStore_PSA_Algorithm
Encoding of a cryptographic algorithm.
Definition: CryptoKeyKeyStore_PSA.h:575
SemaphoreP_Struct KeyStore_accessSemaphore
Definition: CryptoKeyKeyStore_PSA_helpers.h:78
int_fast16_t KeyStore_PSA_getKey(KeyStore_PSA_KeyFileId key, uint8_t *data, size_t dataSize, size_t *dataLength, KeyStore_PSA_Algorithm alg, KeyStore_PSA_KeyUsage usage)
Get the plaintext key in binary format.
int_fast16_t KeyStore_PSA_getKeyAssetId(KeyStore_PSA_KeyFileId key, uint32_t *const pAssetId, KeyStore_PSA_Algorithm targetAlg, KeyStore_PSA_KeyUsage targetUsage)
Get the asset ID for a given key ID.
bool isAcquired
Definition: CryptoKeyKeyStore_PSA_helpers.h:80
bool isInitialized
Definition: CryptoKeyKeyStore_PSA_helpers.h:79
int_fast16_t KeyStore_PSA_retrieveFromKeyStore(const CryptoKey *key, uint8_t *keyBuffer, size_t keyBufferSize, uint32_t *keyAssetID, KeyStore_PSA_Algorithm targetAlg, KeyStore_PSA_KeyUsage targetUsage)
Retrieve the key in either plaintext format or as an Asset ID.
int_fast16_t KeyStore_PSA_init(void)
Initialize the Key Store.
void KeyStore_releaseLock(void)
Release lock to access KeyStore.