Home
last modified time | relevance | path

Searched refs:pHashCtx (Results 1 – 4 of 4) sorted by relevance

/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dmbedtls_hash_common.c27 HashContext_t *pHashCtx = NULL; in mbedtls_hashUpdate() local
32 pHashCtx = (HashContext_t *)pHashUserCtx; in mbedtls_hashUpdate()
34 …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 …CC_PalMemCopy(localPrevDataIn, pHashCtx->prevDataIn, CC_MIN(HASH_SHA512_BLOCK_SIZE_IN_WORDS*sizeof… in mbedtls_hashUpdate()
49 rc = SetDataBuffersInfo((uint8_t*)localPrevDataIn, pHashCtx->blockSizeInBytes, &inBuffInfo, in mbedtls_hashUpdate()
56 rc = ProcessHashDrv(pHashCtx, &inBuffInfo, pHashCtx->blockSizeInBytes); in mbedtls_hashUpdate()
61 pHashCtx->prevDataInSize = 0; in mbedtls_hashUpdate()
[all …]
Dsha256_alt.c107 HashContext_t *pHashCtx = NULL; in mbedtls_sha256_finish() local
119 pHashCtx = (HashContext_t *)ctx; in mbedtls_sha256_finish()
127 switch (pHashCtx->mode) in mbedtls_sha256_finish()
130 CC_PalMemCopy(output, pHashCtx->digest, SHA224_DIGEST_SIZE_IN_BYTES); in mbedtls_sha256_finish()
133 CC_PalMemCopy(output, pHashCtx->digest, SHA256_DIGEST_SIZE_IN_BYTES); in mbedtls_sha256_finish()
136 CC_PAL_LOG_ERR( "Unsupported HASH type (%d)\n", pHashCtx->mode ); in mbedtls_sha256_finish()
Dsha1_alt.c100 HashContext_t *pHashCtx = NULL; in mbedtls_sha1_finish_ret() local
105 pHashCtx = (HashContext_t *)ctx; in mbedtls_sha1_finish_ret()
113 CC_PalMemCopy(output, pHashCtx->digest, SHA1_DIGEST_SIZE_IN_BYTES); in mbedtls_sha1_finish_ret()
/trusted-firmware-m-3.5.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_hash.c133 HashContext_t *pHashCtx = NULL; in cc3xx_hash_setup() local
140 pHashCtx = &(operation->ctx); in cc3xx_hash_setup()
141 CC_PalMemSetZero(pHashCtx, sizeof(HashContext_t)); in cc3xx_hash_setup()
145 pHashCtx->mode = HASH_SHA1; in cc3xx_hash_setup()
150 pHashCtx->mode = HASH_SHA224; in cc3xx_hash_setup()
155 pHashCtx->mode = HASH_SHA256; in cc3xx_hash_setup()
167 pHashCtx->blockSizeInBytes = HASH_BLOCK_SIZE_IN_BYTES; in cc3xx_hash_setup()
240 HashContext_t *pHashCtx = NULL; in cc3xx_hash_finish() local
246 pHashCtx = &(operation->ctx); in cc3xx_hash_finish()
247 if (pHashCtx->prevDataInSize != 0) { in cc3xx_hash_finish()
[all …]