Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Fix padder bug (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadephilipoom authored Sep 6, 2021
1 parent f51c81a commit f01399e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions silveroak-opentitan/hmac/hw/Sha256.v
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ Section Var.
`Constant (BitVec 32) 0x80000000`
else if state == `padder_writing_length` then
if current_offset == `K 14`
then `bvslice 32 32` (length << 3)
else `bvslice 0 32` (length << 3)
then `bvslice 32 32` (`bvresize 64` length << 3)
else `bvslice 0 32` (`bvresize 64` length << 3)

else `K 0`
in
Expand Down

0 comments on commit f01399e

Please sign in to comment.