Skip to content

Commit b9a909b

Browse files
committed
[ot] hw/opentitan: ot_otbn: fix FIPS compliance management
FIPS status should be reset after each entropy packet is delivered to the OTBN core. Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent 106fc51 commit b9a909b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hw/opentitan/ot_otbn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ static void ot_otbn_fill_entropy(void *opaque, uint32_t bits, bool fips)
328328
break;
329329
}
330330
ot_fifo32_reset(&rnd->packer);
331+
rnd->no_fips = false;
331332
if (res) {
332333
trace_ot_otbn_error("cannot push entropy");
333334
}

0 commit comments

Comments
 (0)