Home
last modified time | relevance | path

Searched refs:dataSize (Results 1 – 25 of 41) sorted by relevance

12

/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/kdf/
Dcc_kdf.c66 uint8_t *data_ptr, uint32_t dataSize, in KdfHashUnalignUpdate() argument
78 if (dataSize >= blockSizeBytes - *remBuffSize_ptr) { in KdfHashUnalignUpdate()
93 dataSize -= blockSizeBytes - *remBuffSize_ptr; in KdfHashUnalignUpdate()
97 CC_PalMemCopy(tmp_ptr, data_ptr, dataSize); in KdfHashUnalignUpdate()
98 *remBuffSize_ptr += dataSize; in KdfHashUnalignUpdate()
103 tmpSize = dataSize % blockSizeBytes; in KdfHashUnalignUpdate()
105 dataSize -= tmpSize; in KdfHashUnalignUpdate()
106 CC_PalMemCopy(tmp_ptr, data_ptr + dataSize, tmpSize); in KdfHashUnalignUpdate()
110 if (dataSize > 0){ in KdfHashUnalignUpdate()
112 error = mbedtls_md_update(p_hash_ctx, data_ptr, dataSize); in KdfHashUnalignUpdate()
[all …]
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_chacha_ext_dma.c39 uint32_t dataSize) in mbedtls_ext_dma_chacha_init() argument
48 if ((dataSize == 0) || (dataSize > CPU_DIN_MAX_SIZE)){ in mbedtls_ext_dma_chacha_init()
84 …chaExtDma(nonceBuffer, (chachaNonceSize_t)nonceSizeFlag, keyBufferWords, initialCounter, dataSize); in mbedtls_ext_dma_chacha_init()
Dmbedtls_hash_ext_dma.c35 int mbedtls_hash_ext_dma_init(CCHashOperationMode_t operationMode, uint32_t dataSize) in mbedtls_hash_ext_dma_init() argument
57 if (dataSize > CPU_DIN_MAX_SIZE){ in mbedtls_hash_ext_dma_init()
61 drvRc = InitHashExtDma(mode, dataSize); in mbedtls_hash_ext_dma_init()
Dmbedtls_aes_ext_dma.c170 int mbedtls_aes_ext_dma_set_data_size(uint32_t dataSize, CCAesOperationMode_t operationMode) in mbedtls_aes_ext_dma_set_data_size() argument
186 if ( (dataSize == 0) || (dataSize > CPU_DIN_MAX_SIZE) ){ in mbedtls_aes_ext_dma_set_data_size()
193 (dataSize % AES_BLOCK_SIZE != 0) ){ in mbedtls_aes_ext_dma_set_data_size()
199 AesExtDmaSetDataSize(dataSize); in mbedtls_aes_ext_dma_set_data_size()
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/common/Native_Driver/drivers/
Dfsl_rng.c165 status_t RNG_GetRandomData(RNG_Type *base, void *data, size_t dataSize) in RNG_GetRandomData() argument
175 if (!((base != NULL) && (data != NULL) && (dataSize != 0U))) in RNG_GetRandomData()
190 if (dataSize < sizeof(random32)) in RNG_GetRandomData()
192 randomSize = dataSize; in RNG_GetRandomData()
204 dataSize -= randomSize; in RNG_GetRandomData()
205 } while (dataSize > 0U); in RNG_GetRandomData()
Dfsl_rng.h83 status_t RNG_GetRandomData(RNG_Type *base, void *data, size_t dataSize);
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/utils/
Dmbedtls_cc_util_key_derivation.c39 uint32_t dataSize, i, iterationNum, numIteration, bytesToCopy; in mbedtls_util_key_derivation() local
124 dataSize = CC_UTIL_FIX_DATA_MAX_SIZE_IN_BYTES; in mbedtls_util_key_derivation()
126 dataSize = CC_UTIL_FIX_DATA_MIN_SIZE_IN_BYTES; in mbedtls_util_key_derivation()
129 dataSize += labelSize+contextSize; in mbedtls_util_key_derivation()
155 … rc = UtilCmacDeriveKey(utilKeyType, (CCAesUserKeyData_t*)pUserKey, dataIn, dataSize, tmp); in mbedtls_util_key_derivation()
162 dataSize, in mbedtls_util_key_derivation()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/crypto_driver/reg/
Dcrypto_driver.h29 #define SBROM_CryptoHash(wBaseAddress, inputDataAddr, dataSize, hashBuff) \ argument
30 CC_BsvSHA256(hwBaseAddress, (uint8_t *)inputDataAddr, (size_t)dataSize, hashBuff);
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dgcm_alt.c156 size_t dataSize, in gcm_init() argument
170 if (MBEDTLS_AESGCM_DATA_IN_MAX_SIZE_BYTES < dataSize) { in gcm_init()
174 if (0 != dataSize) { in gcm_init()
224 pAesGcmCtx->dataSize = dataSize; in gcm_init()
356 if (0 == pAesGcmCtx->dataSize) { in gcm_process_cipher()
364 rc = SetDataBuffersInfo(pTextDataIn, pAesGcmCtx->dataSize, &inBuffInfo, in gcm_process_cipher()
365 pTextDataOut, pAesGcmCtx->dataSize, &outBuffInfo); in gcm_process_cipher()
371 rc = ProcessAesGcm(pAesGcmCtx, &inBuffInfo, &outBuffInfo, pAesGcmCtx->dataSize); in gcm_process_cipher()
394 pAesGcmCtx->tempBuf[3] = (pAesGcmCtx->dataSize << 3) & BITMASK(CC_BITS_IN_32BIT_WORD); in gcm_process_lenA_lenC()
523 CC_PalMemSetZero(output, pAesGcmCtx->dataSize); in gcm_crypt_and_tag()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_sbromlib/
Dbsv_aes_driver.c216 uint32_t dataSize, in ProcessBsvAes() argument
258 … drvRet = CC_PalDataBufferAttrGet((uint8_t*)outputDataAddr, dataSize, OUTPUT_DATA_BUFFER, &buffNs); in ProcessBsvAes()
269 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, DST_LLI_WORD1) ,dataSize); in ProcessBsvAes()
281 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_REMAINING_BYTES) ,dataSize); in ProcessBsvAes()
286 if(dataSize == 0) in ProcessBsvAes()
292 … drvRet = CC_PalDataBufferAttrGet((uint8_t*)inputDataAddr, dataSize, INPUT_DATA_BUFFER, &buffNs); in ProcessBsvAes()
305 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, SRC_LLI_WORD1) ,dataSize); in ProcessBsvAes()
Dbsv_crypto_driver.h136 size_t dataSize,
149 size_t dataSize,
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/
Dsbrt_int_func.c235 size_t dataSize, in SBRT_SHA256() argument
241 if ( dataSize >= CC_BSV_SHA256_MAX_DATA_SIZE_IN_BYTES) { in SBRT_SHA256()
246 if ( (pDataIn == NULL) && (dataSize!=0) ) { in SBRT_SHA256()
269 error = ProcessBsvHash(hwBaseAddress, (uint32_t)pDataIn, dataSize); in SBRT_SHA256()
329 size_t dataSize, in SBRT_CryptoImageUpdate() argument
337 error = ProcessBsvHash(hwBaseAddress, (uint32_t)pDataIn, dataSize); in SBRT_CryptoImageUpdate()
340 … pCtrStateBuf, (uint32_t)pDataIn, (uint32_t)pDataOut, dataSize, isLoadIV); in SBRT_CryptoImageUpdate()
Dsbrt_int_func.h66 size_t dataSize,
79 size_t dataSize,
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_gcm.c118 const uint8_t *pDataIn, size_t dataSize, in gcm_init() argument
130 if (CC3XX_GCM_DATA_IN_MAX_SIZE_BYTES < dataSize) { in gcm_init()
134 if (0 != dataSize) { in gcm_init()
184 context->dataSize = dataSize; in gcm_init()
371 context->tempBuf[3] = (context->dataSize << 3) & CC_32BIT_MAX_VALUE; in gcm_process_lenA_lenC()
490 status = gcm_process_cipher(&context, context.dataSize, input, output); in gcm_crypt_and_tag()
516 CC_PalMemSetZero(output, context.dataSize); in gcm_crypt_and_tag()
683 size_t dataSize) in cc3xx_gcm_set_lengths() argument
691 (dataSize > CC3XX_GCM_DATA_IN_MAX_SIZE_BYTES)) { in cc3xx_gcm_set_lengths()
696 ctx->dataSize = dataSize; in cc3xx_gcm_set_lengths()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/platform/stage/rt/cc3x/
Dsecureboot_stage_defs.h83 #define CC_BsvSHA256(hwBaseAddress, pDataIn, dataSize, hashBuff) \ argument
84 SBRT_SHA256(hwBaseAddress, pDataIn, dataSize, hashBuff)
89 …geUpdate(hwBaseAddress, mode, keyType, pCtrStateBuf, pDataIn, pDataOut, dataSize, hashBuff, isLoad… argument
90 …SBRT_CryptoImageUpdate(hwBaseAddress, mode, keyType, pCtrStateBuf, pDataIn, pDataOut, dataSize, ha…
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/
Dcc3xx_internal_ccm.h83 size_t dataSize);
108 size_t dataSize,
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/
Dhash_driver_ext_dma.c59 drvError_t InitHashExtDma(hashMode_t mode, uint32_t dataSize) in InitHashExtDma() argument
149 if (dataSize == 0) { in InitHashExtDma()
157 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, DIN_CPU_DATA_SIZE) , dataSize); in InitHashExtDma()
Dhash_driver_ext_dma.h15 drvError_t InitHashExtDma(hashMode_t mode, uint32_t dataSize);
Daes_driver_ext_dma.c135 void AesExtDmaSetDataSize(uint32_t dataSize) in AesExtDmaSetDataSize() argument
137 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_REMAINING_BYTES), dataSize); in AesExtDmaSetDataSize()
138 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, DIN_CPU_DATA_SIZE) , dataSize); in AesExtDmaSetDataSize()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/cc3x/
Dmbedtls_hash_ext_dma.h43 uint32_t dataSize
Dmbedtls_chacha_ext_dma.h54 uint32_t dataSize
Dmbedtls_aes_ext_dma.h91 uint32_t dataSize,
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/lpcxpresso55s69/project_template/bl2/
Dboard.c73 masterXfer.dataSize = txBuffSize; in BOARD_I2C_Send()
93 masterXfer.dataSize = rxBuffSize; in BOARD_I2C_Receive()
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/lpcxpresso55s69/project_template/ns/
Dboard.c73 masterXfer.dataSize = txBuffSize; in BOARD_I2C_Send()
93 masterXfer.dataSize = rxBuffSize; in BOARD_I2C_Receive()
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/lpcxpresso55s69/project_template/s/
Dboard.c73 masterXfer.dataSize = txBuffSize; in BOARD_I2C_Send()
93 masterXfer.dataSize = rxBuffSize; in BOARD_I2C_Receive()

12