Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfettes committed Sep 2, 2024
1 parent d64bb07 commit 232ded7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crypto/md5.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ fn MD5Context::md5_compute(self : MD5Context) -> Bytes {
for i = 0; i < 4; i = i + 1 {
digest[j] = (self.state[i] & 0xff).reinterpret_as_int().to_byte()
digest[j + 1] = (self.state[i].lsr(8) & 0xff).reinterpret_as_int().to_byte()
digest[j + 2] = (self.state[i].lsr(16) & 0xff).reinterpret_as_int().to_byte()
digest[j + 3] = (self.state[i].lsr(24) & 0xff).reinterpret_as_int().to_byte()
digest[j + 2] = (self.state[i].lsr(16) & 0xff)
.reinterpret_as_int()
.to_byte()
digest[j + 3] = (self.state[i].lsr(24) & 0xff)
.reinterpret_as_int()
.to_byte()
j += 4
}
digest
Expand Down

0 comments on commit 232ded7

Please sign in to comment.