Searched refs:hashBlockSize (Results 1 – 2 of 2) sorted by relevance
| /hal_infineon-latest/mtb-pdl-cat1/drivers/source/ |
| D | cy_crypto_core_sha_v2.c | 406 uint32_t hashBlockSize = hashState->blockSize; in Cy_Crypto_Sha3_Update() local 428 while ((hashBlockIdx + messageSize) >= hashBlockSize) in Cy_Crypto_Sha3_Update() 430 uint32_t tempBlockSize = hashBlockSize - hashBlockIdx; in Cy_Crypto_Sha3_Update() 432 …if(hashBlockSize>128U) // This condition is for the SHA3_224 & SHA3_256 where the rate size is mor… in Cy_Crypto_Sha3_Update() 438 Cy_Crypto_Core_V2_RBXor(base, 0U, hashBlockSize-128U); in Cy_Crypto_Sha3_Update() 444 Cy_Crypto_Core_V2_RBXor(base, hashBlockIdx - 128U, hashBlockSize-hashBlockIdx); in Cy_Crypto_Sha3_Update() 464 if(hashBlockSize>128U) in Cy_Crypto_Sha3_Update() 547 uint32_t hashBlockSize = hashState->blockSize; in Cy_Crypto_Sha3_Finish() local 552 hashState->hash[hashBlockSize-1U] = hashState->hash[hashBlockSize-1U] ^ 0x80U; in Cy_Crypto_Sha3_Finish() 625 uint32_t hashBlockSize = hashState->blockSize; in Cy_Crypto_Sha1_Sha2_Update() local [all …]
|
| D | cy_crypto_core_sha_v1.c | 395 uint32_t hashBlockSize = hashState->blockSize; in Cy_Crypto_Core_V1_Sha_Update() local 398 while ((hashBlockIdx + messageSize) >= hashBlockSize) in Cy_Crypto_Core_V1_Sha_Update() 400 uint32_t tempBlockSize = hashBlockSize - hashBlockIdx; in Cy_Crypto_Core_V1_Sha_Update() 458 uint32_t hashBlockSize = hashState->blockSize; in Cy_Crypto_Core_V1_Sha_Finish() local 463 if (CY_CRYPTO_SHA512_BLOCK_SIZE == hashBlockSize) in Cy_Crypto_Core_V1_Sha_Finish() 476 …_MemSet(base, (void* )&blockPtr[hashBlockIdx + 1U], 0x00U, (uint16_t)(hashBlockSize - hashBlockIdx… in Cy_Crypto_Core_V1_Sha_Finish() 484 Cy_Crypto_Core_V1_MemSet(base, (void*)blockPtr, 0x00u, (uint16_t)hashBlockSize); in Cy_Crypto_Core_V1_Sha_Finish() 487 blockPtr[hashBlockSize - 8U] = (uint8_t)((finalMessageSizeInBits) >> 56U); in Cy_Crypto_Core_V1_Sha_Finish() 488 blockPtr[hashBlockSize - 7U] = (uint8_t)((finalMessageSizeInBits) >> 48U); in Cy_Crypto_Core_V1_Sha_Finish() 489 blockPtr[hashBlockSize - 6U] = (uint8_t)((finalMessageSizeInBits) >> 40U); in Cy_Crypto_Core_V1_Sha_Finish() [all …]
|