Skip to content

Commit

Permalink
fix SM3 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ww-rm committed Mar 31, 2024
1 parent f059e35 commit 689b547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gmalg/sm3.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def update(self, data: bytes) -> None:
B.clear()

pos = begin
while pos + 64 < d_len:
while pos + 63 < d_len:
_expand(data[pos:pos+64], W1, W2)
_compress(W1, W2, V)
pos += 64
Expand Down

0 comments on commit 689b547

Please sign in to comment.