-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hmac, rtl] Do not skip padding after a hash stop command #25590
base: master
Are you sure you want to change the base?
[hmac, rtl] Do not skip padding after a hash stop command #25590
Conversation
2e5c716
to
f2b230b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Splatting the exclusion list might be right (I haven't reviewed it carefully, but it seems reasonable). But doesn't the RTL change also imply that the UNR list might change?
Thank you for the review @rswarbrick. You're right, the UNR file should be updated too. Unfortunately, we cannot generate these exclusion files with our VCS license on the Zurich workstation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me from an RTL perspective. Thanks for the PR @andrea-caforio !
Did you run a full regression for this and inspect the coverage yet?
f2b230b
to
8d79a9b
Compare
Thank you @vogelpi for the review. I ran a full regression and all the transitions are now properly covered (see screenshot). I further added a second commit that updates the exclusion file with the list in #24692. @martin-velay you might want to double-check this. |
Hi @andrea-caforio, I would prefer to have the exclusions in a separate PR as there is no direct link between this RTL fix and the exclusions. Thanks in advance ! |
This commit removes some conditional FSM states transition that were deemed undesirable in `prim_sha2_pad`, see lowRISC#23936. They made it possible to cancel an ongoing padding operation, which is disallowed by the HMAC module. This change makes it impossible to transition into the `StFifoReceive` state from either `StPad80`, `StPad00`, `StLenHi` or `StLenLo` by asserting the `hash_go` signal. Signed-off-by: Andrea Caforio <[email protected]>
8d79a9b
to
54425d2
Compare
Here you go #25696. |
This commit removes some conditional FSM states transition that were deemed undesirable in
prim_sha2_pad
, see #23936. It made it possible to cancel an ongoing padding operation, which is disallowed by the HMAC module. As a side-effect, the removal plugs some existing FSM transition coverage holes inprim_sha2_pad
whose manual exclusions can be removed as well.This change makes it impossible to transition into the
StFifoReceive
state from eitherStPad80
,StPad00
,StLenHi
orStLenLo
by asserting thehash_go
signal.