Home
last modified time | relevance | path

Searched refs:pUserKey (Results 1 – 10 of 10) sorted by relevance

/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/shared/include/cc_util/
Dmbedtls_cc_util_key_derivation.h94 mbedtls_util_keydata *pUserKey,
133 #define mbedtls_util_key_derivation_cmac(keyType, pUserKey, pLabel, labelSize, pContextData, contex… argument
134 …mbedtls_util_key_derivation(keyType, pUserKey, CC_UTIL_PRF_CMAC, CC_HASH_OperationModeLast, pLabel…
152 #define mbedtls_util_key_derivation_hmac(keyType, pUserKey, hashMode, pLabel, labelSize, pContextDa… argument
153 …mbedtls_util_key_derivation(keyType, pUserKey, CC_UTIL_PRF_HMAC, hashMode, pLabel, labelSize, pCon…
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/
Dcc_util_cmac.c96 CCAesUserKeyData_t *pUserKey, in UtilCmacDeriveKey() argument
135 if ((pUserKey->keySize != CC_UTIL_AES_128BIT_SIZE) && in UtilCmacDeriveKey()
136 (pUserKey->keySize != CC_UTIL_AES_192BIT_SIZE) && in UtilCmacDeriveKey()
137 (pUserKey->keySize != CC_UTIL_AES_256BIT_SIZE)) { in UtilCmacDeriveKey()
142 switch (pUserKey->keySize) { in UtilCmacDeriveKey()
155 CC_PalMemCopy(aesCtxBuf.keyBuf, pUserKey->pKey, pUserKey->keySize); in UtilCmacDeriveKey()
Dcc_util_cmac.h36 CCAesUserKeyData_t *pUserKey,
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/cc3x_sbromlib/
Dbsv_aes_driver.c29 uint32_t *pUserKey, in LoadBsvAesKey() argument
110 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_0) ,pUserKey[0]); in LoadBsvAesKey()
111 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_1) ,pUserKey[1]); in LoadBsvAesKey()
112 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_2) ,pUserKey[2]); in LoadBsvAesKey()
113 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_3) ,pUserKey[3]); in LoadBsvAesKey()
116 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_4) ,pUserKey[4]); in LoadBsvAesKey()
117 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_5) ,pUserKey[5]); in LoadBsvAesKey()
118 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_6) ,pUserKey[6]); in LoadBsvAesKey()
119 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_7) ,pUserKey[7]); in LoadBsvAesKey()
211 uint32_t *pUserKey, in ProcessBsvAes() argument
[all …]
Dbsv_crypto_driver.h131 uint32_t *pUserKey,
172 uint32_t *pUserKey,
Dbsv_crypto_api.h69 uint32_t *pUserKey, /*!< [in] A pointer to the user's key buffer. */
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/utils/
Dmbedtls_cc_util_key_derivation.c28 mbedtls_util_keydata *pUserKey, in mbedtls_util_key_derivation() argument
75 if (!pUserKey) { in mbedtls_util_key_derivation()
78 if (!pUserKey->pKey) { in mbedtls_util_key_derivation()
155 … rc = UtilCmacDeriveKey(utilKeyType, (CCAesUserKeyData_t*)pUserKey, dataIn, dataSize, tmp); in mbedtls_util_key_derivation()
159 pUserKey->pKey, in mbedtls_util_key_derivation()
160 pUserKey->keySize, in mbedtls_util_key_derivation()
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_key_derivation.c75 uint8_t* pUserKey = NULL; in runIt_hmacKeyDerivTest() local
91 ALLOC_AND_COPY(userKeyPtr, pUserKey, userKey, sizeof(userKey)); in runIt_hmacKeyDerivTest()
94 keyData.pKey = pUserKey; in runIt_hmacKeyDerivTest()
137 uint8_t* pUserKey = NULL; in runIt_cmacKeyDerivTest() local
153 ALLOC_AND_COPY(userKeyPtr, pUserKey, userKey, sizeof(userKey)); in runIt_cmacKeyDerivTest()
156 keyData.pKey = (uint8_t*)pUserKey; in runIt_cmacKeyDerivTest()
198 uint8_t* pUserKey = NULL; in runIt_cmacRootKeyDerivTest() local
218 ALLOC_AND_COPY(userKeyPtr, pUserKey, userKey, sizeof(userKey)); in runIt_cmacRootKeyDerivTest()
222 keyData.pKey = (uint8_t*)pUserKey; in runIt_cmacRootKeyDerivTest()
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/common/
Dprod_crypto_driver.c207 uint8_t *pUserKey, in CC_PROD_KeyDerivation() argument
223 ((keyType == USER_KEY) && (pUserKey == NULL)) || in CC_PROD_KeyDerivation()
247 CC_PalMemCopy(aesCtx.keyBuf, pUserKey, CC_AES_BLOCK_SIZE_IN_BYTES); in CC_PROD_KeyDerivation()
Dprod_crypto_driver.h67 uint8_t *pUserKey,