/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/ |
D | aes_driver_ext_dma.c | 34 uint32_t pIv[AES_BLOCK_SIZE_WORDS] = {0}; in AesExtDmaInit() local 118 rc = AesExtDmaSetIv(operationMode, pIv); in AesExtDmaInit() 141 drvError_t AesExtDmaSetIv(aesMode_t mode, uint32_t *pIv) in AesExtDmaSetIv() argument 148 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_0) ,pIv[0]); in AesExtDmaSetIv() 149 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_1) ,pIv[1]); in AesExtDmaSetIv() 150 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_2) ,pIv[2]); in AesExtDmaSetIv() 151 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_3) ,pIv[3]); in AesExtDmaSetIv() 156 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_IV_0_0) ,pIv[0]); in AesExtDmaSetIv() 157 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_IV_0_1) ,pIv[1]); in AesExtDmaSetIv() 158 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_IV_0_2) ,pIv[2]); in AesExtDmaSetIv() [all …]
|
D | aes_driver_ext_dma.h | 17 drvError_t finalizeAesExtDma(aesMode_t mode, uint32_t *pIv); 21 drvError_t AesExtDmaSetIv(aesMode_t mode, uint32_t *pIv);
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/cmpu/ |
D | cmpu_derivation.c | 169 uint8_t *pIv) in Derivation_DRBG_Update() argument 189 pIv,CC_PROD_AES_IV_COUNTER_SIZE_IN_BYTES); in Derivation_DRBG_Update() 213 …CC_PalMemCopy(pIv, (uint8_t*)(pOutput+CC_PROD_AES_Key256Bits_SIZE_IN_WORDS), CC_PROD_AES_IV_COUNTE… in Derivation_DRBG_Update() 230 uint8_t *pIv) in CC_PROD_Derivation_Instantiate() argument 235 …if ((NULL == pKey) || (NULL == pIv) || (NULL == pEntrSrc) || (0 == sourceSize) || (!IS_ALIGNED(sou… in CC_PROD_Derivation_Instantiate() 254 CC_PalMemSetZero(pIv, CC_PROD_AES_IV_COUNTER_SIZE_IN_BYTES); in CC_PROD_Derivation_Instantiate() 257 error = Derivation_DRBG_Update(pDfOutput, pKey, pIv); in CC_PROD_Derivation_Instantiate() 278 uint8_t *pIv, in CC_PROD_Derivation_Generate() argument 291 if ((pKey == NULL) || (pIv == NULL) || (pOutputBuff == NULL)) { in CC_PROD_Derivation_Generate() 313 Derivation_incrementVector(pIv, CC_PROD_AES_IV_COUNTER_SIZE_IN_WORDS); in CC_PROD_Derivation_Generate() [all …]
|
D | cmpu_derivation.h | 14 uint8_t *pIv); 16 uint8_t *pIv,
|
D | cmpu.c | 28 uint8_t pIv[CC_PROD_AES_IV_COUNTER_SIZE_IN_BYTES] = { 0 }; in CC_PROD_CalcHuk() local 43 pIv); in CC_PROD_CalcHuk() 49 pIv, in CC_PROD_CalcHuk()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/common/ |
D | prod_crypto_driver.h | 46 uint8_t *pIv, 58 uint8_t *pIv,
|
D | prod_crypto_driver.c | 97 uint8_t *pIv, in CC_PROD_Aes() argument 110 pIv, ivSizeInBytes); in CC_PROD_Aes() 141 uint8_t *pIv, in CC_PROD_AesInit() argument 165 CC_PalMemCopy((uint8_t *)pAesCtx->ivBuf, pIv, ivSizeInBytes); in CC_PROD_AesInit()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | gcm_alt.c | 151 const uint8_t* pIv, in gcm_init() argument 192 if (NULL == pIv) { in gcm_init() 241 static int gcm_process_j0(mbedtls_gcm_context *ctx, const uint8_t* pIv) in gcm_process_j0() argument 253 CC_PalMemCopy(pAesGcmCtx->J0, pIv, MBEDTLS_AESGCM_IV_96_BITS_SIZE_BYTES); in gcm_process_j0() 264 rc = SetDataBuffersInfo(pIv, pAesGcmCtx->ivSize, &inBuffInfo, in gcm_process_j0()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/ |
D | common_crypto_sym.c | 172 int8_t *pIv, in CC_CommonAesCbcMacEncrypt() argument 183 (NULL == pIv) || in CC_CommonAesCbcMacEncrypt() 207 AES_cbc_encrypt(pBuff, pOutBuff, buffSize, &aesKey, pIv, AES_ENCRYPT); in CC_CommonAesCbcMacEncrypt()
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_internal_gcm.c | 116 cryptoDirection_t direction, const uint8_t *pIv, in gcm_init() argument 152 if (NULL == pIv) { in gcm_init() 201 static psa_status_t gcm_process_j0(AesGcmContext_t *context, const uint8_t *pIv, in gcm_process_j0() argument 218 CC_PalMemCopy(context->J0, pIv, CC3XX_GCM_IV_96_BITS_SIZE_BYTES); in gcm_process_j0() 229 rc = SetDataBuffersInfo(pIv, iv_size, &inBuffInfo, NULL, 0, in gcm_process_j0()
|