Searched refs:last_ctr (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/crypto/stm32/ |
H A D | stm32-cryp.c | 153 __be32 last_ctr[4]; member 1062 memset(cryp->last_ctr, 0, sizeof(cryp->last_ctr)); in stm32_cryp_prepare_req() 1210 if (unlikely(cryp->last_ctr[3] == cpu_to_be32(0xFFFFFFFF))) { in stm32_cryp_check_ctr_counter() 1215 crypto_inc((u8 *)cryp->last_ctr, sizeof(cryp->last_ctr)); in stm32_cryp_check_ctr_counter() 1220 stm32_cryp_hw_write_iv(cryp, cryp->last_ctr); in stm32_cryp_check_ctr_counter() 1226 cryp->last_ctr[0] = cpu_to_be32(stm32_cryp_read(cryp, CRYP_IV0LR)); in stm32_cryp_check_ctr_counter() 1227 cryp->last_ctr[1] = cpu_to_be32(stm32_cryp_read(cryp, CRYP_IV0RR)); in stm32_cryp_check_ctr_counter() 1228 cryp->last_ctr[ in stm32_cryp_check_ctr_counter() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/stm32/ |
H A D | stm32-cryp.c | 198 __be32 last_ctr[4]; member 1228 memset(cryp->last_ctr, 0, sizeof(cryp->last_ctr)); in stm32_cryp_prepare_req() 1360 if (unlikely(cryp->last_ctr[3] == cpu_to_be32(0xFFFFFFFF))) { in stm32_cryp_check_ctr_counter() 1365 crypto_inc((u8 *)cryp->last_ctr, sizeof(cryp->last_ctr)); in stm32_cryp_check_ctr_counter() 1370 stm32_cryp_hw_write_iv(cryp, cryp->last_ctr); in stm32_cryp_check_ctr_counter() 1376 cryp->last_ctr[0] = cpu_to_be32(stm32_cryp_read(cryp, cryp->caps->iv0l)); in stm32_cryp_check_ctr_counter() 1377 cryp->last_ctr[1] = cpu_to_be32(stm32_cryp_read(cryp, cryp->caps->iv0r)); in stm32_cryp_check_ctr_counter() 1378 cryp->last_ctr[ in stm32_cryp_check_ctr_counter() [all...] |
Completed in 5 milliseconds