Home
last modified time | relevance | path

Searched refs:keyLength (Results 1 – 19 of 19) sorted by relevance

/hal_infineon-3.4.0/mtb-pdl-cat1/drivers/source/
Dcy_crypto_core_hmac_v2.c74 uint32_t keyLength,
152 uint32_t keyLength, in Cy_Crypto_Core_V2_Hmac_Calculate() argument
169 if (keyLength > blockSizeTmp) in Cy_Crypto_Core_V2_Hmac_Calculate()
176 tmpResult = Cy_Crypto_Core_V2_Sha_Update (base, hashState, key, keyLength); in Cy_Crypto_Core_V2_Hmac_Calculate()
186 else if (keyLength < blockSizeTmp) in Cy_Crypto_Core_V2_Hmac_Calculate()
189 Cy_Crypto_Core_V2_MemCpy(base, m0KeyPtrTmp, key, (uint16_t)keyLength); in Cy_Crypto_Core_V2_Hmac_Calculate()
190 …Cy_Crypto_Core_V2_MemSet(base, m0KeyPtrTmp + keyLength, 0x00u, (uint16_t)(blockSizeTmp - keyLength in Cy_Crypto_Core_V2_Hmac_Calculate()
194 Cy_Crypto_Core_V2_MemCpy(base, m0KeyPtrTmp, key, (uint16_t)keyLength); in Cy_Crypto_Core_V2_Hmac_Calculate()
307 uint32_t keyLength, in Cy_Crypto_Core_V2_Hmac() argument
328 …y_Crypto_Core_V2_Hmac_Calculate(base, hmacStateTmp, &hashStateLoc, key, keyLength, message, messag… in Cy_Crypto_Core_V2_Hmac()
Dcy_crypto_core_hmac_v1.c75 uint32_t keyLength,
154 uint32_t keyLength, in Cy_Crypto_Core_V1_Hmac_Calculate() argument
167 if (keyLength > hashState->blockSize) in Cy_Crypto_Core_V1_Hmac_Calculate()
173 tmpResult = Cy_Crypto_Core_V1_Sha_Update(base, hashState, key, keyLength); in Cy_Crypto_Core_V1_Hmac_Calculate()
187 else if (keyLength < hashState->blockSize) in Cy_Crypto_Core_V1_Hmac_Calculate()
190 Cy_Crypto_Core_V1_MemCpy(base, m0KeyPtrTmp, key, (uint16_t)keyLength); in Cy_Crypto_Core_V1_Hmac_Calculate()
191 …y_Crypto_Core_V1_MemSet(base, (m0KeyPtrTmp + keyLength), 0x00u, (uint16_t)(hashState->blockSize - in Cy_Crypto_Core_V1_Hmac_Calculate()
195 Cy_Crypto_Core_V1_MemCpy(base, m0KeyPtrTmp, key, (uint16_t)keyLength); in Cy_Crypto_Core_V1_Hmac_Calculate()
310 uint32_t keyLength, in Cy_Crypto_Core_V1_Hmac() argument
330 …_Crypto_Core_V1_Hmac_Calculate (base, hmacStateTmp, &hashStateLoc, key, keyLength, message, messag… in Cy_Crypto_Core_V1_Hmac()
Dcy_crypto_core_aes_v2.c44 #define CY_CRYPTO_IS_KEYLENGTH_VALID(keyLength) ((CY_CRYPTO_KEY_AES_128 == (keyLength)) || \ argument
45 (CY_CRYPTO_KEY_AES_192 == (keyLength)) || \
46 (CY_CRYPTO_KEY_AES_256 == (keyLength)))
66 uint32_t keySize = CY_CRYPTO_AES_128_KEY_SIZE + ((uint32_t)aesState->keyLength * 8u); in Cy_Crypto_Core_V2_Aes_LoadEncKey()
78 REG_CRYPTO_AES_CTL(base) = (uint32_t)(_VAL2FLD(CRYPTO_AES_CTL_KEY_SIZE, aesState->keyLength)); in Cy_Crypto_Core_V2_Aes_LoadEncKey()
101 uint32_t keySize = CY_CRYPTO_AES_128_KEY_SIZE + ((uint32_t)aesState->keyLength * 8u); in Cy_Crypto_Core_V2_Aes_LoadDecKey()
172 cy_en_crypto_aes_key_length_t keyLength, in Cy_Crypto_Core_V2_Aes_Init() argument
179 CY_ASSERT_L3(CY_CRYPTO_IS_KEYLENGTH_VALID(keyLength)); in Cy_Crypto_Core_V2_Aes_Init()
181 uint16_t keySize = CY_CRYPTO_AES_128_KEY_SIZE + ((uint16_t)keyLength * 8u); in Cy_Crypto_Core_V2_Aes_Init()
186 aesState->keyLength = keyLength; in Cy_Crypto_Core_V2_Aes_Init()
Dcy_crypto_core_aes_v1.c74 …PTO_AES_CTL(base) = (uint32_t)(_VAL2FLD(CRYPTO_AES_CTL_KEY_SIZE, (uint32_t)(aesState->keyLength))); in Cy_Crypto_Core_V1_Aes_ProcessBlock()
124 …PTO_AES_CTL(base) = (uint32_t)(_VAL2FLD(CRYPTO_AES_CTL_KEY_SIZE, (uint32_t)(aesState->keyLength))); in Cy_Crypto_Core_V1_Aes_Xor()
161 …PTO_AES_CTL(base) = (uint32_t)(_VAL2FLD(CRYPTO_AES_CTL_KEY_SIZE, (uint32_t)(aesState->keyLength))); in Cy_Crypto_Core_V1_Aes_InvKey()
205 cy_en_crypto_aes_key_length_t keyLength, in Cy_Crypto_Core_V1_Aes_Init() argument
209 uint16_t keySize = CY_CRYPTO_AES_128_KEY_SIZE + ((uint16_t)keyLength * 8u); in Cy_Crypto_Core_V1_Aes_Init()
211 aesState->keyLength = keyLength; in Cy_Crypto_Core_V1_Aes_Init()
Dcy_crypto.c392 cy_en_crypto_aes_key_length_t keyLength, in Cy_Crypto_Aes_Init() argument
403 cfContext->keyLength = keyLength; in Cy_Crypto_Aes_Init()
513 cy_en_crypto_aes_key_length_t keyLength, in Cy_Crypto_Aes_Cmac_Run() argument
528 cfContext->keyLength = keyLength; in Cy_Crypto_Aes_Cmac_Run()
566 uint32_t keyLength, in Cy_Crypto_Hmac_Run() argument
582 cfContext->keyLength = keyLength; in Cy_Crypto_Hmac_Run()
Dcy_crypto_core_cmac_v2.c264 cy_en_crypto_aes_key_length_t keyLength, in Cy_Crypto_Core_V2_Cmac() argument
275 (void)Cy_Crypto_Core_V2_Aes_Init(base, key, keyLength, aesState, &aesBuffersData); in Cy_Crypto_Core_V2_Cmac()
Dcy_crypto_core_cmac_v1.c289 cy_en_crypto_aes_key_length_t keyLength, in Cy_Crypto_Core_V1_Cmac() argument
302 (void)Cy_Crypto_Core_V1_Aes_Init(base, key, keyLength, aesState, aesBuffers); in Cy_Crypto_Core_V1_Cmac()
Dcy_crypto_server.c500 …(uint8_t*)cfContext->key, cfContext->keyLength, &cfContext->aesState, (cy_stc_crypto_aes_buffers_t… in Cy_Crypto_Server_Process()
568 … (uint8_t*)cfContext->src, cfContext->srcSize, (uint8_t*)cfContext->key, cfContext->keyLength, in Cy_Crypto_Server_Process()
589 (uint8_t *)cfContext->key, cfContext->keyLength, cfContext->mode); in Cy_Crypto_Server_Process()
/hal_infineon-3.4.0/mtb-pdl-cat1/drivers/include/
Dcy_crypto_core_cmac.h51 cy_en_crypto_aes_key_length_t keyLength,
98 cy_en_crypto_aes_key_length_t keyLength, 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_hmac.h50 uint32_t keyLength,
94 uint32_t keyLength, 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_aes.h48 cy_en_crypto_aes_key_length_t keyLength,
113 cy_en_crypto_aes_key_length_t keyLength, in Cy_Crypto_Core_Aes_Init() argument
122 tmpResult = Cy_Crypto_Core_V1_Aes_Init(base, key, keyLength, aesState, aesBuffers); in Cy_Crypto_Core_Aes_Init()
126 tmpResult = Cy_Crypto_Core_V2_Aes_Init(base, key, keyLength, aesState, aesBuffers); in Cy_Crypto_Core_Aes_Init()
160 cy_en_crypto_aes_key_length_t keyLength, in Cy_Crypto_Core_Aes_InitContext() argument
168 tmpResult = Cy_Crypto_Core_V1_Aes_Init(base, key, keyLength, aesState, aesBuffers); in Cy_Crypto_Core_Aes_InitContext()
172 tmpResult = Cy_Crypto_Core_V2_Aes_Init(base, key, keyLength, aesState, aesBuffers); in Cy_Crypto_Core_Aes_InitContext()
Dcy_crypto.h1032 cy_en_crypto_aes_key_length_t keyLength,
1234 cy_en_crypto_aes_key_length_t keyLength,
1328 uint32_t keyLength,
Dcy_crypto_common.h588 cy_en_crypto_aes_key_length_t keyLength; member
770 cy_en_crypto_aes_key_length_t keyLength; member
812 uint32_t keyLength; member
Dcy_crypto_core_hmac_v1.h45 uint32_t keyLength,
Dcy_crypto_core_hmac_v2.h45 uint32_t keyLength,
Dcy_crypto_core_cmac_v2.h69 cy_en_crypto_aes_key_length_t keyLength,
Dcy_crypto_core_cmac_v1.h86 cy_en_crypto_aes_key_length_t keyLength,
Dcy_crypto_core_aes_v2.h49 cy_en_crypto_aes_key_length_t keyLength,
Dcy_crypto_core_aes_v1.h56 cy_en_crypto_aes_key_length_t keyLength,