Home
last modified time | relevance | path

Searched refs:messageSize (Results 1 – 21 of 21) sorted by relevance

/hal_infineon-3.4.0/mtb-pdl-cat1/drivers/include/
Dcy_crypto_core_sha.h46 uint32_t messageSize,
82 uint32_t messageSize, in Cy_Crypto_Core_Sha() argument
90 tmpResult = Cy_Crypto_Core_V1_Sha(base, message, messageSize, digest, mode); in Cy_Crypto_Core_Sha()
94 tmpResult = Cy_Crypto_Core_V2_Sha(base, message, messageSize, digest, mode); in Cy_Crypto_Core_Sha()
204 uint32_t messageSize) in Cy_Crypto_Core_Sha_Update() argument
210 tmpResult = Cy_Crypto_Core_V1_Sha_Update(base, hashState, message, messageSize); in Cy_Crypto_Core_Sha_Update()
214 tmpResult = Cy_Crypto_Core_V2_Sha_Update(base, hashState, message, messageSize); in Cy_Crypto_Core_Sha_Update()
Dcy_crypto_core_hmac.h48 uint32_t messageSize,
92 uint32_t messageSize, in Cy_Crypto_Core_Hmac() argument
101 tmpResult = Cy_Crypto_Core_V1_Hmac(base, hmac, message, messageSize, key, keyLength, mode); in Cy_Crypto_Core_Hmac()
105 tmpResult = Cy_Crypto_Core_V2_Hmac(base, hmac, message, messageSize, key, keyLength, mode); in Cy_Crypto_Core_Hmac()
Dcy_crypto_core_cmac.h96 uint32_t messageSize, in Cy_Crypto_Core_Cmac() argument
106 … tmpResult = Cy_Crypto_Core_V1_Cmac(base, message, messageSize, key, keyLength, cmac, aesState); in Cy_Crypto_Core_Cmac()
110 … tmpResult = Cy_Crypto_Core_V2_Cmac(base, message, messageSize, key, keyLength, cmac, aesState); in Cy_Crypto_Core_Cmac()
Dcy_crypto_core_cmac_v2.h59 uint32_t messageSize);
67 uint32_t messageSize,
Dcy_crypto_core_rsa.h44 uint32_t messageSize,
60 uint32_t messageSize,
Dcy_crypto_core_cmac_v1.h75 uint32_t messageSize);
84 uint32_t messageSize,
Dcy_crypto_core_sha_v2.h79 uint32_t messageSize);
89 uint32_t messageSize,
Dcy_crypto_core_sha_v1.h94 uint32_t messageSize);
105 uint32_t messageSize,
Dcy_crypto.h1277 uint32_t messageSize,
1326 uint32_t messageSize,
1812 uint32_t messageSize,
Dcy_crypto_common.h617 uint32_t messageSize; member
804 uint32_t messageSize; member
959 uint32_t messageSize; member
Dcy_crypto_core_hmac_v1.h43 uint32_t messageSize,
Dcy_crypto_core_hmac_v2.h43 uint32_t messageSize,
/hal_infineon-3.4.0/mtb-pdl-cat1/drivers/source/
Dcy_crypto_core_sha_v2.c276 hashState->messageSize = 0U; in Cy_Crypto_Core_V2_Sha_Start()
319 uint32_t messageSize) in Cy_Crypto_Core_V2_Sha_Update() argument
327 if (messageSize != 0U) in Cy_Crypto_Core_V2_Sha_Update()
329 hashState->messageSize += messageSize; in Cy_Crypto_Core_V2_Sha_Update()
352 Cy_Crypto_Core_V2_FFContinue(base, CY_CRYPTO_V2_RB_FF_LOAD0, message, messageSize); in Cy_Crypto_Core_V2_Sha_Update()
355 while ((hashBlockIdx + messageSize) >= hashBlockSize) in Cy_Crypto_Core_V2_Sha_Update()
363 messageSize -= tempBlockSize; in Cy_Crypto_Core_V2_Sha_Update()
369 hashState->blockIdx = hashBlockIdx + messageSize; in Cy_Crypto_Core_V2_Sha_Update()
372 if (messageSize != 0U) in Cy_Crypto_Core_V2_Sha_Update()
374 Cy_Crypto_Core_V2_RBXor(base, hashBlockIdx, messageSize); in Cy_Crypto_Core_V2_Sha_Update()
[all …]
Dcy_crypto_core_sha_v1.c333 hashState->messageSize = 0U; in Cy_Crypto_Core_V1_Sha_Start()
376 uint32_t messageSize) in Cy_Crypto_Core_V1_Sha_Update() argument
384 if (messageSize != 0U) in Cy_Crypto_Core_V1_Sha_Update()
386 hashState->messageSize += messageSize; in Cy_Crypto_Core_V1_Sha_Update()
392 while ((hashBlockIdx + messageSize) >= hashBlockSize) in Cy_Crypto_Core_V1_Sha_Update()
400 messageSize -= tempBlockSize; in Cy_Crypto_Core_V1_Sha_Update()
407 hashState->blockIdx = hashBlockIdx + messageSize; in Cy_Crypto_Core_V1_Sha_Update()
410 if (messageSize != 0U) in Cy_Crypto_Core_V1_Sha_Update()
412 …_MemCpy(base, (void *)((uint32_t)hashState->block + hashBlockIdx), message, (uint16_t)messageSize); in Cy_Crypto_Core_V1_Sha_Update()
454 uint64_t finalMessageSizeInBits = (uint64_t)hashState->messageSize * 8U; in Cy_Crypto_Core_V1_Sha_Finish()
[all …]
Dcy_crypto_core_cmac_v1.c170 uint32_t messageSize) in Cy_Crypto_Core_V1_Cmac_Update() argument
179 while (messageSize > CY_CRYPTO_AES_BLOCK_SIZE) in Cy_Crypto_Core_V1_Cmac_Update()
190 messageSize -= CY_CRYPTO_AES_BLOCK_SIZE; in Cy_Crypto_Core_V1_Cmac_Update()
194 aesState->blockIdx = messageSize; in Cy_Crypto_Core_V1_Cmac_Update()
287 uint32_t messageSize, in Cy_Crypto_Core_V1_Cmac() argument
306 Cy_Crypto_Core_V1_Cmac_Update(base, aesState, myCmacState, message, messageSize); in Cy_Crypto_Core_V1_Cmac()
Dcy_crypto_core_cmac_v2.c161 uint32_t messageSize) in Cy_Crypto_Core_V2_Cmac_Update() argument
163 uint32_t myBlockIdx = cmacState->block_idx + messageSize; in Cy_Crypto_Core_V2_Cmac_Update()
165 Cy_Crypto_Core_V2_FFContinue(base, CY_CRYPTO_V2_RB_FF_LOAD0, message, messageSize); in Cy_Crypto_Core_V2_Cmac_Update()
262 uint32_t messageSize, in Cy_Crypto_Core_V2_Cmac() argument
280 Cy_Crypto_Core_V2_Cmac_Update(base, cmacStateLoc, message, messageSize); in Cy_Crypto_Core_V2_Cmac()
Dcy_crypto_core_hmac_v2.c76 uint32_t messageSize,
154 uint32_t messageSize, in Cy_Crypto_Core_V2_Hmac_Calculate() argument
218 tmpResult = Cy_Crypto_Core_V2_Sha_Update(base, hashState, message, messageSize); in Cy_Crypto_Core_V2_Hmac_Calculate()
305 uint32_t messageSize, in Cy_Crypto_Core_V2_Hmac() argument
328 …e_V2_Hmac_Calculate(base, hmacStateTmp, &hashStateLoc, key, keyLength, message, messageSize, hmac); in Cy_Crypto_Core_V2_Hmac()
Dcy_crypto_core_hmac_v1.c77 uint32_t messageSize,
156 uint32_t messageSize, in Cy_Crypto_Core_V1_Hmac_Calculate() argument
219 tmpResult = Cy_Crypto_Core_V1_Sha_Update (base, hashState, message, messageSize); in Cy_Crypto_Core_V1_Hmac_Calculate()
308 uint32_t messageSize, in Cy_Crypto_Core_V1_Hmac() argument
330 …_V1_Hmac_Calculate (base, hmacStateTmp, &hashStateLoc, key, keyLength, message, messageSize, hmac); in Cy_Crypto_Core_V1_Hmac()
Dcy_crypto.c538 uint32_t messageSize, in Cy_Crypto_Sha_Run() argument
551 cfContext->messageSize = messageSize; in Cy_Crypto_Sha_Run()
564 uint32_t messageSize, in Cy_Crypto_Hmac_Run() argument
578 cfContext->messageSize = messageSize; in Cy_Crypto_Hmac_Run()
806 uint32_t messageSize, in Cy_Crypto_Rsa_Proc() argument
819 cfContext->messageSize = messageSize; in Cy_Crypto_Rsa_Proc()
Dcy_crypto_server.c578 (uint8_t *)cfContext->message, cfContext->messageSize, in Cy_Crypto_Server_Process()
588 … (uint8_t *)cfContext->dst, (uint8_t *)cfContext->message, cfContext->messageSize, in Cy_Crypto_Server_Process()
675 …cfContext->key, (uint8_t const *)cfContext->message, cfContext->messageSize, (uint8_t *)cfContext-… in Cy_Crypto_Server_Process()
Dcy_crypto_core_rsa.c782 uint32_t messageSize, in Cy_Crypto_Core_Rsa_Proc() argument
821 … Cy_Crypto_Core_Vu_SetMemValue(base, xReg, (uint8_t const *)message, messageSize * (uint32_t)8u); in Cy_Crypto_Core_Rsa_Proc()