Skip to content

Commit e4a22ca

Browse files
rivos-eblotluismarques
authored andcommitted
[ot] hw/opentitan: ot_aes: fix invalid register reference to read current IV value
Signed-off-by: Emmanuel Blot <eblot@rivosinc.com> (cherry picked from commit 9185a7a)
1 parent f0ed8c8 commit e4a22ca

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
@@ -1009,7 +1009,7 @@ static uint64_t ot_aes_read(void *opaque, hwaddr addr, unsigned size)
10091009
case R_IV_1:
10101010
case R_IV_2:
10111011
case R_IV_3:
1012-
val32 = r->keyshare[reg - R_IV_0];
1012+
val32 = r->iv[reg - R_IV_0];
10131013
break;
10141014
case R_DATA_OUT_0:
10151015
case R_DATA_OUT_1:

0 commit comments

Comments
 (0)