Closed nquarton closed 4 months ago
Can we add a bool to the drivers struct indicating whether or not the KAT has been run instead?
Can we add a bool to the drivers struct indicating whether or not the KAT has been run instead?
I did consider that. It's an accessible place to put some state. The only issue is the drivers don't bring in KATs as a crate. So either
But if people still like this path (or I'm missing a better option) then I can absolutely do this.
I have updated this implementation to store state in the LMS driver.
This solution isn't fully ideal because:
This is the non-ideal approach of always running the LMS KAT at the start of RT FW (before processing commands). Ideally, this would be run exactly once as/if needed before an LMS operation is performed in runtime. This gets a little tricky in rust though as it requires static state to be shared about whether or not the KAT has been run.This approach adds approximately 1.25 ms of boot time at the start of runtime on 1.1 HW and around 3ms on 1.0 HW.This is updated to add state in the LMS driver to track whether or not this has been run.