Home
last modified time | relevance | path

Searched refs:inBuffInfo (Results 1 – 15 of 15) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dgcm_alt.c122 CCBuffInfo_t inBuffInfo; in gcm_calc_h() local
132 …SetDataBuffersInfo((uint8_t*)(pAesGcmCtx->tempBuf), CC_AESGCM_GHASH_DIGEST_SIZE_BYTES, &inBuffInfo, in gcm_calc_h()
140 rc = ProcessAesGcm(pAesGcmCtx, &inBuffInfo, &outBuffInfo, CC_AES_BLOCK_SIZE_IN_BYTES); in gcm_calc_h()
245 CCBuffInfo_t inBuffInfo; in gcm_process_j0() local
264 rc = SetDataBuffersInfo(pIv, pAesGcmCtx->ivSize, &inBuffInfo, in gcm_process_j0()
272 rc = ProcessAesGcm(pAesGcmCtx, &inBuffInfo, &outBuffInfo, pAesGcmCtx->ivSize); in gcm_process_j0()
289 …SetDataBuffersInfo((uint8_t*)(pAesGcmCtx->tempBuf), CC_AESGCM_GHASH_DIGEST_SIZE_BYTES, &inBuffInfo, in gcm_process_j0()
297 … rc = ProcessAesGcm(pAesGcmCtx, &inBuffInfo, &outBuffInfo, CC_AESGCM_GHASH_DIGEST_SIZE_BYTES); in gcm_process_j0()
311 CCBuffInfo_t inBuffInfo; in gcm_process_aad() local
328 rc = SetDataBuffersInfo(pAad, pAesGcmCtx->aadSize, &inBuffInfo, in gcm_process_aad()
[all …]
Dmbedtls_hash_common.c30 CCBuffInfo_t inBuffInfo; in mbedtls_hashUpdate() local
49 rc = SetDataBuffersInfo((uint8_t*)localPrevDataIn, pHashCtx->blockSizeInBytes, &inBuffInfo, in mbedtls_hashUpdate()
56 rc = ProcessHashDrv(pHashCtx, &inBuffInfo, pHashCtx->blockSizeInBytes); in mbedtls_hashUpdate()
68 rc = SetDataBuffersInfo(pDataIn, bytesToAdd, &inBuffInfo, in mbedtls_hashUpdate()
75 rc = ProcessHashDrv(pHashCtx, &inBuffInfo, bytesToAdd); in mbedtls_hashUpdate()
149 CCBuffInfo_t inBuffInfo; in mbedtls_sha_finish_internal() local
160 drvRc = SetDataBuffersInfo((uint8_t*)localPrevDataIn, dataInSize, &inBuffInfo, in mbedtls_sha_finish_internal()
167 drvRc = ProcessHashDrv(pHashCtx, &inBuffInfo, dataInSize); in mbedtls_sha_finish_internal()
Daes_alt.c167 CCBuffInfo_t inBuffInfo; in mbedtls_aes_crypt_ecb() local
193 drvRet = SetDataBuffersInfo(input, AES_BLOCK_SIZE, &inBuffInfo, in mbedtls_aes_crypt_ecb()
200 drvRet = ProcessAesDrv(aesCtx, &inBuffInfo, &outBuffInfo, AES_BLOCK_SIZE); in mbedtls_aes_crypt_ecb()
224 CCBuffInfo_t inBuffInfo; in mbedtls_aes_crypt_cbc() local
263 drvRet = SetDataBuffersInfo(input, length, &inBuffInfo, in mbedtls_aes_crypt_cbc()
270 drvRet = ProcessAesDrv(aesCtx, &inBuffInfo, &outBuffInfo, length); in mbedtls_aes_crypt_cbc()
340 CCBuffInfo_t inBuffInfo; in aes_crypt_ctr_ofb() local
365 drvRet = SetDataBuffersInfo(input, length, &inBuffInfo, in aes_crypt_ctr_ofb()
372 drvRet = ProcessAesDrv(aesCtx, &inBuffInfo, &outBuffInfo, length); in aes_crypt_ctr_ofb()
Dcmac_alt.c179 CCBuffInfo_t inBuffInfo; in mbedtls_cipher_cmac_update() local
208 &inBuffInfo, in mbedtls_cipher_cmac_update()
219 &inBuffInfo, in mbedtls_cipher_cmac_update()
242 &inBuffInfo, in mbedtls_cipher_cmac_update()
254 &inBuffInfo, in mbedtls_cipher_cmac_update()
283 CCBuffInfo_t inBuffInfo; in mbedtls_cipher_cmac_finish() local
296 &inBuffInfo, in mbedtls_cipher_cmac_finish()
307 &inBuffInfo, in mbedtls_cipher_cmac_finish()
Dchacha20_alt.c110 CCBuffInfo_t inBuffInfo; in mbedtls_chacha20_update() local
135 drvRc = SetDataBuffersInfo(input, size, &inBuffInfo, in mbedtls_chacha20_update()
144 drvRc = ProcessChacha(chachaCtx, &inBuffInfo, &outBuffInfo, size); in mbedtls_chacha20_update()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_ccm_internal.c46 CCBuffInfo_t inBuffInfo; in ccm_init() local
140 rc = SetDataBuffersInfo(tempBuff, CC_AES_BLOCK_SIZE_IN_BYTES, &inBuffInfo, in ccm_init()
150 rc = ProcessAesCcmDrv(pAesCcmCtx, &inBuffInfo, &outBuffInfo, CC_AES_BLOCK_SIZE_IN_BYTES); in ccm_init()
177 CCBuffInfo_t inBuffInfo; in ccm_ass_data() local
233 rc = SetDataBuffersInfo(pAesCcmCtx->tempBuff, CC_AES_BLOCK_SIZE_IN_BYTES, &inBuffInfo, in ccm_ass_data()
243 rc = ProcessAesCcmDrv(pAesCcmCtx, &inBuffInfo, &outBuffInfo, CC_AES_BLOCK_SIZE_IN_BYTES); in ccm_ass_data()
253 rc = SetDataBuffersInfo(pAssocData, assocDataSize, &inBuffInfo, in ccm_ass_data()
263 rc = ProcessAesCcmDrv(pAesCcmCtx, &inBuffInfo, &outBuffInfo, assocDataSize); in ccm_ass_data()
279 CCBuffInfo_t inBuffInfo; in ccm_text_data() local
316 …rc = SetDataBuffersInfo(pTextDataIn, textDataSize, &inBuffInfo, pTextDataOut, textDataSize, &outBu… in ccm_text_data()
[all …]
Dmbedtls_cc_chacha.c47 CCBuffInfo_t inBuffInfo; in ChachaBlock() local
80 drvRc = SetDataBuffersInfo(pDataIn, dataInSize, &inBuffInfo, in ChachaBlock()
87 drvRc = ProcessChacha(chachaCtx, &inBuffInfo, &outBuffInfo, dataInSize); in ChachaBlock()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_ccm.c137 CCBuffInfo_t inBuffInfo; in ccm_init() local
227 rc = SetDataBuffersInfo(tempBuff, CC_AES_BLOCK_SIZE_IN_BYTES, &inBuffInfo, in ccm_init()
235 rc = ProcessAesCcmDrv(context, &inBuffInfo, &outBuffInfo, in ccm_init()
264 CCBuffInfo_t inBuffInfo; in ccm_ass_data() local
314 &inBuffInfo, NULL, 0, &outBuffInfo); in ccm_ass_data()
321 rc = ProcessAesCcmDrv(context, &inBuffInfo, &outBuffInfo, in ccm_ass_data()
332 rc = SetDataBuffersInfo(pAssocData, assocDataSize, &inBuffInfo, NULL, 0, in ccm_ass_data()
340 rc = ProcessAesCcmDrv(context, &inBuffInfo, &outBuffInfo, assocDataSize); in ccm_ass_data()
355 CCBuffInfo_t inBuffInfo; in ccm_text_data() local
387 rc = SetDataBuffersInfo(pTextDataIn, textDataSize, &inBuffInfo, in ccm_text_data()
[all …]
Dcc3xx_internal_gcm.c87 CCBuffInfo_t inBuffInfo; in gcm_calc_h() local
95 CC_AESGCM_GHASH_DIGEST_SIZE_BYTES, &inBuffInfo, in gcm_calc_h()
105 rc = ProcessAesGcm(context, &inBuffInfo, &outBuffInfo, in gcm_calc_h()
205 CCBuffInfo_t inBuffInfo; in gcm_process_j0() local
229 rc = SetDataBuffersInfo(pIv, iv_size, &inBuffInfo, NULL, 0, in gcm_process_j0()
237 rc = ProcessAesGcm(context, &inBuffInfo, &outBuffInfo, iv_size); in gcm_process_j0()
255 CC_AESGCM_GHASH_DIGEST_SIZE_BYTES, &inBuffInfo, in gcm_process_j0()
263 rc = ProcessAesGcm(context, &inBuffInfo, &outBuffInfo, in gcm_process_j0()
285 CCBuffInfo_t inBuffInfo; in gcm_process_aad() local
308 rc = SetDataBuffersInfo(pAad, aadSize, &inBuffInfo, NULL, 0, in gcm_process_aad()
[all …]
Dcc3xx_psa_hash.c40 CCBuffInfo_t inBuffInfo; in hash_update() local
73 ctx_ptr->blockSizeInBytes, &inBuffInfo, in hash_update()
80 rc = ProcessHashDrv(pHashUserCtx, &inBuffInfo, in hash_update()
94 uint32_t rc = SetDataBuffersInfo(pDataIn, bytesToAdd, &inBuffInfo, in hash_update()
101 rc = ProcessHashDrv(pHashUserCtx, &inBuffInfo, bytesToAdd); in hash_update()
239 CCBuffInfo_t inBuffInfo; in cc3xx_hash_finish() local
260 &inBuffInfo, NULL, 0, NULL); in cc3xx_hash_finish()
266 drvRc = ProcessHashDrv(pHashCtx, &inBuffInfo, dataInSize); in cc3xx_hash_finish()
Dcc3xx_internal_aes.c116 CCBuffInfo_t inBuffInfo; in cc3xx_aes_crypt() local
139 drvRet = SetDataBuffersInfo(input, length, &inBuffInfo, in cc3xx_aes_crypt()
146 drvRet = ProcessAesDrv(ctx, &inBuffInfo, &outBuffInfo, length); in cc3xx_aes_crypt()
Dcc3xx_psa_mac.c146 CCBuffInfo_t inBuffInfo; in cmac_update() local
158 &inBuffInfo, NULL, 0, &outBuffInfo); in cmac_update()
164 ret = ProcessAesDrv(&(cmac_ctx->ctx.aes), &inBuffInfo, &outBuffInfo, in cmac_update()
183 &inBuffInfo, NULL, 0, &outBuffInfo); in cmac_update()
191 ret = ProcessAesDrv(&(cmac_ctx->ctx.aes), &inBuffInfo, &outBuffInfo, in cmac_update()
220 CCBuffInfo_t inBuffInfo; in cmac_finish() local
228 cmac_ctx->unprocessed_size, &inBuffInfo, NULL, in cmac_finish()
235 ret = FinishAesDrv(&(cmac_ctx->ctx.aes), &inBuffInfo, &outBuffInfo, in cmac_finish()
Dcc3xx_internal_chacha20.c27 CCBuffInfo_t inBuffInfo; in chacha_block() local
30 drvRc = SetDataBuffersInfo(input, size, &inBuffInfo, in chacha_block()
37 drvRc = ProcessChacha(ctx, &inBuffInfo, &outBuffInfo, size); in chacha_block()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/common/
Dprod_crypto_driver.c190 CCBuffInfo_t inBuffInfo; in CC_PROD_AesProcess() local
194 error = SetDataBuffersInfo((uint8_t*)pDataIn, dataInSize, &inBuffInfo, in CC_PROD_AesProcess()
201 return ProcessAesDrv(pAesCtx, &inBuffInfo, &outBuffInfo, dataInSize); in CC_PROD_AesProcess()
218 CCBuffInfo_t inBuffInfo; in CC_PROD_KeyDerivation() local
258 drvRc = SetDataBuffersInfo((uint8_t*)dataIn, dataInSize, &inBuffInfo, in CC_PROD_KeyDerivation()
264 drvRc = FinishAesDrv(&aesCtx, &inBuffInfo, &outBuffInfo, dataInSize); in CC_PROD_KeyDerivation()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/
Dcc_util_cmac.c103 CCBuffInfo_t inBuffInfo; in UtilCmacDeriveKey() local
171 rc = SetDataBuffersInfo(pDataIn, dataInSize, &inBuffInfo, in UtilCmacDeriveKey()
178 rc = FinishAesDrv(&aesCtxBuf, &inBuffInfo, &outBuffInfo, dataInSize); in UtilCmacDeriveKey()