Home
last modified time | relevance | path

Searched refs:prevDataInSize (Results 1 – 3 of 3) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dmbedtls_hash_common.c34 …bytesToAdd = CC_MIN(((pHashCtx->blockSizeInBytes - pHashCtx->prevDataInSize) % pHashCtx->blockSize… in mbedtls_hashUpdate()
37 …CC_PalMemCopy(&(((uint8_t *)(pHashCtx->prevDataIn))[pHashCtx->prevDataInSize]), pDataIn, bytesToAd… in mbedtls_hashUpdate()
38 pHashCtx->prevDataInSize += bytesToAdd; in mbedtls_hashUpdate()
44 if (pHashCtx->prevDataInSize == pHashCtx->blockSizeInBytes) { in mbedtls_hashUpdate()
47 …x->prevDataIn, CC_MIN(HASH_SHA512_BLOCK_SIZE_IN_WORDS*sizeof(uint32_t), pHashCtx->prevDataInSize)); in mbedtls_hashUpdate()
61 pHashCtx->prevDataInSize = 0; in mbedtls_hashUpdate()
87 …CC_PalMemCopy((uint8_t *)&((pHashCtx->prevDataIn)[pHashCtx->prevDataInSize]), pDataIn, bytesToAdd); in mbedtls_hashUpdate()
88 pHashCtx->prevDataInSize += bytesToAdd; in mbedtls_hashUpdate()
152 if (pHashCtx->prevDataInSize != 0) { in mbedtls_sha_finish_internal()
155 …x->prevDataIn, CC_MIN(HASH_SHA512_BLOCK_SIZE_IN_WORDS*sizeof(uint32_t), pHashCtx->prevDataInSize)); in mbedtls_sha_finish_internal()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_hash.c47 ((ctx_ptr->blockSizeInBytes - ctx_ptr->prevDataInSize) % in hash_update()
53 (ctx_ptr->prevDataIn))[ctx_ptr->prevDataInSize]), in hash_update()
55 ctx_ptr->prevDataInSize += bytesToAdd; in hash_update()
63 if (ctx_ptr->prevDataInSize == ctx_ptr->blockSizeInBytes){ in hash_update()
70 ctx_ptr->prevDataInSize)); in hash_update()
86 ctx_ptr->prevDataInSize = 0; in hash_update()
115 &((ctx_ptr->prevDataIn)[ctx_ptr->prevDataInSize]), in hash_update()
117 ctx_ptr->prevDataInSize += bytesToAdd; in hash_update()
247 if (pHashCtx->prevDataInSize != 0) { in cc3xx_hash_finish()
254 pHashCtx->prevDataInSize)); in cc3xx_hash_finish()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/
Dhash_driver.h40 uint32_t prevDataInSize; member