Skip to content

Commit f0ed8c8

Browse files
rivos-eblotluismarques
authored andcommitted
[ot] hw/opentitan: ot_aes: fix invalid IV size definition
Signed-off-by: Emmanuel Blot <eblot@rivosinc.com> (cherry picked from commit d224436)
1 parent fc5eb74 commit f0ed8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/opentitan/ot_aes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ REG32(STATUS, 0x84u)
122122

123123
#define OT_AES_DATA_SIZE (PARAM_NUM_REGS_DATA * sizeof(uint32_t))
124124
#define OT_AES_KEY_SIZE (PARAM_NUM_REGS_KEY * sizeof(uint32_t))
125-
#define OT_AES_IV_SIZE (PARAM_NUM_REGS_KEY * sizeof(uint32_t))
125+
#define OT_AES_IV_SIZE (PARAM_NUM_REGS_IV * sizeof(uint32_t))
126126

127127
/* arbitrary value long enough to give back execution to vCPU */
128128
#define OT_AES_RETARD_DELAY_NS 10000u /* 10 us */

0 commit comments

Comments
 (0)