/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/ |
D | mbedtls_aes_ext_dma.c | 60 drvError_t drvRc = AES_DRV_OK; in mbedtls_aes_ext_dma_init() local 103 drvRc = AesExtDmaInit((cryptoDirection_t)encryptDecryptFlag, mode, keySizeId); in mbedtls_aes_ext_dma_init() 105 return drvRc; in mbedtls_aes_ext_dma_init() 113 drvError_t drvRc = AES_DRV_OK; in mbedtls_aes_ext_dma_set_key() local 121 drvRc = EXT_DMA_AES_ILLEGAL_KEY_SIZE_ERROR; in mbedtls_aes_ext_dma_set_key() 132 drvRc = EXT_DMA_AES_ILLEGAL_OPERATION_MODE_ERROR; in mbedtls_aes_ext_dma_set_key() 149 drvRc = EXT_DMA_AES_ILLEGAL_KEY_SIZE_ERROR; in mbedtls_aes_ext_dma_set_key() 155 drvRc = AesExtDmaSetKey(mode, keyBuffer, keySizeId); in mbedtls_aes_ext_dma_set_key() 156 if (drvRc != AES_DRV_OK) in mbedtls_aes_ext_dma_set_key() 167 return drvRc; in mbedtls_aes_ext_dma_set_key() [all …]
|
D | mbedtls_chacha_ext_dma.c | 18 static CCError_t Driver2ExtDMAChachaErr(drvError_t drvRc) in Driver2ExtDMAChachaErr() argument 20 switch (drvRc) { in Driver2ExtDMAChachaErr() 41 drvError_t drvRc = CHACHA_DRV_OK; in mbedtls_ext_dma_chacha_init() local 84 …drvRc = InitChachaExtDma(nonceBuffer, (chachaNonceSize_t)nonceSizeFlag, keyBufferWords, initialCou… in mbedtls_ext_dma_chacha_init() 86 return Driver2ExtDMAChachaErr(drvRc); in mbedtls_ext_dma_chacha_init() 92 drvError_t drvRc = CHACHA_DRV_OK; in mbedtls_chacha_ext_dma_finish() local 94 drvRc = terminateChachaExtDma(); in mbedtls_chacha_ext_dma_finish() 96 return Driver2ExtDMAChachaErr(drvRc); in mbedtls_chacha_ext_dma_finish()
|
D | mbedtls_hash_ext_dma.c | 22 static int Driver2ExtDmaHashErr(drvError_t drvRc) in Driver2ExtDmaHashErr() argument 24 switch (drvRc) { in Driver2ExtDmaHashErr() 37 drvError_t drvRc = HASH_DRV_OK; in mbedtls_hash_ext_dma_init() local 61 drvRc = InitHashExtDma(mode, dataSize); in mbedtls_hash_ext_dma_init() 62 error = Driver2ExtDmaHashErr(drvRc); in mbedtls_hash_ext_dma_init()
|
D | mbedtls_cc_chacha.c | 18 static CCError_t Driver2CCChachaErr(drvError_t drvRc) in Driver2CCChachaErr() argument 20 switch (drvRc) { in Driver2CCChachaErr() 43 drvError_t drvRc = CHACHA_DRV_OK; in ChachaBlock() local 80 drvRc = SetDataBuffersInfo(pDataIn, dataInSize, &inBuffInfo, in ChachaBlock() 82 if (drvRc != 0) { in ChachaBlock() 87 drvRc = ProcessChacha(chachaCtx, &inBuffInfo, &outBuffInfo, dataInSize); in ChachaBlock() 89 return Driver2CCChachaErr(drvRc); in ChachaBlock()
|
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/ |
D | aes_driver.c | 296 drvError_t drvRc = AES_DRV_OK; in finalizeCmac() local 321 drvRc = CC_PalMutexLock(&CCSymCryptoMutex, CC_INFINITE); in finalizeCmac() 322 if (drvRc != 0) { in finalizeCmac() 327 drvRc = CC_IS_WAKE; in finalizeCmac() 328 if (drvRc != 0) { in finalizeCmac() 336 drvRc = InitAes(aesCtx); in finalizeCmac() 337 if (drvRc != AES_DRV_OK) { in finalizeCmac() 342 drvRc = LoadAesKey(aesCtx); in finalizeCmac() 343 if (drvRc != 0){ in finalizeCmac() 347 drvRc = LoadIVState(aesCtx); in finalizeCmac() [all …]
|
D | chacha_driver.c | 150 drvError_t drvRc = CHACHA_DRV_OK; in ProcessChacha() local 169 drvRc = CC_PalMutexLock(&CCSymCryptoMutex, CC_INFINITE); in ProcessChacha() 170 if (drvRc != 0) { in ProcessChacha() 175 drvRc = CC_IS_WAKE; in ProcessChacha() 176 if (drvRc != 0) { in ProcessChacha() 184 drvRc = InitChacha(chachaCtx); in ProcessChacha() 185 if (drvRc != CHACHA_DRV_OK) { in ProcessChacha() 190 drvRc = LoadChachaState(chachaCtx); in ProcessChacha() 191 if (drvRc != CHACHA_DRV_OK) { in ProcessChacha() 196 drvRc = LoadChachaKey(chachaCtx); in ProcessChacha() [all …]
|
D | chacha_driver_ext_dma.c | 79 drvError_t drvRc = CHACHA_DRV_OK; in InitChachaExtDma() local 86 drvRc = CC_PalMutexLock(&CCSymCryptoMutex, CC_INFINITE); in InitChachaExtDma() 87 if (drvRc != 0) { in InitChachaExtDma() 92 drvRc = CC_IS_WAKE; in InitChachaExtDma() 93 if (drvRc != 0) { in InitChachaExtDma() 120 drvRc = LoadChachaExtDmaState(pNonceBuf, nonceSizeFlag, initialCounter); in InitChachaExtDma() 121 if (drvRc != CHACHA_DRV_OK) { in InitChachaExtDma() 126 drvRc = LoadChachaKeyExtDma(keyBuf); in InitChachaExtDma() 127 if (drvRc != CHACHA_DRV_OK) { in InitChachaExtDma() 148 return drvRc; in InitChachaExtDma()
|
D | hash_driver_ext_dma.c | 63 drvError_t drvRc = HASH_DRV_OK; in InitHashExtDma() local 68 drvRc = CC_PalMutexLock(&CCSymCryptoMutex, CC_INFINITE); in InitHashExtDma() 69 if (drvRc != 0) { in InitHashExtDma() 74 drvRc = CC_IS_WAKE; in InitHashExtDma() 75 if (drvRc != 0) { in InitHashExtDma() 96 drvRc = HASH_DRV_ILLEGAL_OPERATION_MODE_ERROR; in InitHashExtDma() 146 drvRc = HASH_DRV_ILLEGAL_OPERATION_MODE_ERROR; in InitHashExtDma() 167 return drvRc; in InitHashExtDma()
|
D | hash_driver.c | 103 drvError_t drvRc = HASH_DRV_OK; in ProcessHashDrv() local 134 drvRc = CC_PalMutexLock(&CCSymCryptoMutex, CC_INFINITE); in ProcessHashDrv() 135 if (drvRc != 0) { in ProcessHashDrv() 140 drvRc = CC_IS_WAKE; in ProcessHashDrv() 141 if (drvRc != 0) { in ProcessHashDrv() 218 drvRc = CC_HalWaitInterrupt(irrVal); in ProcessHashDrv() 237 if (drvRc != HASH_DRV_OK) { in ProcessHashDrv() 252 return drvRc; in ProcessHashDrv()
|
D | aesccm_driver.c | 216 drvError_t drvRc = AES_DRV_OK; in ProcessAesCcmDrv() local 236 drvRc = CC_PalMutexLock(&CCSymCryptoMutex, CC_INFINITE); in ProcessAesCcmDrv() 237 if (drvRc != 0) { in ProcessAesCcmDrv() 242 drvRc = CC_IS_WAKE; in ProcessAesCcmDrv() 243 if (drvRc != 0) { in ProcessAesCcmDrv() 251 drvRc = InitAesCcm(pAesCcmCtx); in ProcessAesCcmDrv() 252 if (drvRc != AES_DRV_OK) { in ProcessAesCcmDrv() 295 drvRc = CC_HalWaitInterrupt(irrVal); in ProcessAesCcmDrv() 296 if (drvRc != AES_DRV_OK) { in ProcessAesCcmDrv() 324 return drvRc; in ProcessAesCcmDrv()
|
D | aesgcm_driver.c | 326 drvError_t drvRc = AES_DRV_OK; in ProcessAesGcm() local 352 drvRc = CC_IS_WAKE; in ProcessAesGcm() 353 if (drvRc != 0) { in ProcessAesGcm() 368 drvRc = initAesGcm(pAesGcmCtx); in ProcessAesGcm() 369 if (drvRc != AES_DRV_OK) { in ProcessAesGcm() 398 drvRc = CC_HalWaitInterrupt(irrVal); in ProcessAesGcm() 399 if (drvRc != AES_DRV_OK) { in ProcessAesGcm() 425 drvRc = AES_DRV_ILLEGAL_OPERATION_MODE_ERROR; in ProcessAesGcm() 460 return drvRc; in ProcessAesGcm()
|
D | bypass_driver.c | 28 drvError_t drvRc = BYPASS_DRV_OK; in ProcessBypass() local 105 drvRc = CC_HalWaitInterrupt(irrVal); in ProcessBypass() 110 return drvRc; in ProcessBypass()
|
D | aes_driver_ext_dma.c | 227 drvError_t drvRc = AES_DRV_OK; in finalizeAesExtDma() local 231 drvRc = AesExtDmaStoreIv(mode, pIv); in finalizeAesExtDma() 234 return drvRc; in finalizeAesExtDma()
|
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | mbedtls_hash_common.c | 147 drvError_t drvRc = HASH_DRV_OK; in mbedtls_sha_finish_internal() local 160 drvRc = SetDataBuffersInfo((uint8_t*)localPrevDataIn, dataInSize, &inBuffInfo, in mbedtls_sha_finish_internal() 162 if (drvRc != 0) { in mbedtls_sha_finish_internal() 167 drvRc = ProcessHashDrv(pHashCtx, &inBuffInfo, dataInSize); in mbedtls_sha_finish_internal() 168 if (drvRc != HASH_DRV_OK){ in mbedtls_sha_finish_internal() 169 CC_PAL_LOG_ERR( "ProcessHashDrv failed, ret = %d\n", drvRc ); in mbedtls_sha_finish_internal() 172 drvRc = FinishHashDrv(pHashCtx); in mbedtls_sha_finish_internal() 173 if (drvRc != HASH_DRV_OK) { in mbedtls_sha_finish_internal() 174 CC_PAL_LOG_ERR( "FinishHashDrv failed, ret = %d\n", drvRc ); in mbedtls_sha_finish_internal()
|
D | chacha20_alt.c | 107 drvError_t drvRc; in mbedtls_chacha20_update() local 135 drvRc = SetDataBuffersInfo(input, size, &inBuffInfo, in mbedtls_chacha20_update() 137 if (drvRc != 0) { in mbedtls_chacha20_update() 144 drvRc = ProcessChacha(chachaCtx, &inBuffInfo, &outBuffInfo, size); in mbedtls_chacha20_update() 145 if (drvRc != 0) { in mbedtls_chacha20_update() 146 CC_PAL_LOG_ERR("\nProcessChacha failed %d", drvRc); in mbedtls_chacha20_update()
|
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_hash.c | 238 drvError_t drvRc = HASH_DRV_OK; in cc3xx_hash_finish() local 259 drvRc = SetDataBuffersInfo((uint8_t *)localPrevDataIn, dataInSize, in cc3xx_hash_finish() 261 if (drvRc != 0) { in cc3xx_hash_finish() 266 drvRc = ProcessHashDrv(pHashCtx, &inBuffInfo, dataInSize); in cc3xx_hash_finish() 267 if (drvRc != HASH_DRV_OK) { in cc3xx_hash_finish() 268 CC_PAL_LOG_ERR("ProcessHashDrv failed, ret = %d", drvRc); in cc3xx_hash_finish() 271 drvRc = FinishHashDrv(pHashCtx); in cc3xx_hash_finish() 272 if (drvRc != HASH_DRV_OK) { in cc3xx_hash_finish() 273 CC_PAL_LOG_ERR("FinishHashDrv failed, ret = %d", drvRc); in cc3xx_hash_finish()
|
D | cc3xx_internal_chacha20.c | 26 drvError_t drvRc; in chacha_block() local 30 drvRc = SetDataBuffersInfo(input, size, &inBuffInfo, in chacha_block() 32 if (drvRc != 0) { in chacha_block() 37 drvRc = ProcessChacha(ctx, &inBuffInfo, &outBuffInfo, size); in chacha_block() 38 if (drvRc != 0) { in chacha_block() 39 CC_PAL_LOG_ERR("cc3xx_chacha20_update failed: %d", drvRc); in chacha_block()
|
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/common/ |
D | prod_crypto_driver.c | 215 drvError_t drvRc; in CC_PROD_KeyDerivation() local 258 drvRc = SetDataBuffersInfo((uint8_t*)dataIn, dataInSize, &inBuffInfo, in CC_PROD_KeyDerivation() 260 if (drvRc != 0) { in CC_PROD_KeyDerivation() 262 return drvRc; in CC_PROD_KeyDerivation() 264 drvRc = FinishAesDrv(&aesCtx, &inBuffInfo, &outBuffInfo, dataInSize); in CC_PROD_KeyDerivation() 265 if (drvRc != 0) { in CC_PROD_KeyDerivation() 266 return drvRc; in CC_PROD_KeyDerivation()
|