Home
last modified time | relevance | path

Searched refs:bytesToAdd (Results 1 – 2 of 2) sorted by relevance

/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dmbedtls_hash_common.c28 size_t bytesToAdd = 0; in mbedtls_hashUpdate() local
34bytesToAdd = CC_MIN(((pHashCtx->blockSizeInBytes - pHashCtx->prevDataInSize) % pHashCtx->blockSize… in mbedtls_hashUpdate()
35 if (bytesToAdd > 0) { in mbedtls_hashUpdate()
37 …_PalMemCopy(&(((uint8_t *)(pHashCtx->prevDataIn))[pHashCtx->prevDataInSize]), pDataIn, bytesToAdd); in mbedtls_hashUpdate()
38 pHashCtx->prevDataInSize += bytesToAdd; in mbedtls_hashUpdate()
39 pDataIn += bytesToAdd; in mbedtls_hashUpdate()
40 dataInSize -= bytesToAdd; in mbedtls_hashUpdate()
65 bytesToAdd = (dataInSize / pHashCtx->blockSizeInBytes) * pHashCtx->blockSizeInBytes; in mbedtls_hashUpdate()
66 if (bytesToAdd > 0) { in mbedtls_hashUpdate()
68 rc = SetDataBuffersInfo(pDataIn, bytesToAdd, &inBuffInfo, in mbedtls_hashUpdate()
[all …]
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_hash.c38 size_t bytesToAdd = 0; in hash_update() local
46 bytesToAdd = CC_MIN( in hash_update()
50 if (bytesToAdd > 0) { in hash_update()
54 pDataIn, bytesToAdd); in hash_update()
55 ctx_ptr->prevDataInSize += bytesToAdd; in hash_update()
56 pDataIn += bytesToAdd; in hash_update()
57 dataInSize -= bytesToAdd; in hash_update()
90 bytesToAdd = (dataInSize / ctx_ptr->blockSizeInBytes) * in hash_update()
92 if (bytesToAdd > 0) { in hash_update()
94 uint32_t rc = SetDataBuffersInfo(pDataIn, bytesToAdd, &inBuffInfo, in hash_update()
[all …]