Rotate the bottom 32 bits of x left by i bits.
(x, i)
| 66 | |
| 67 | |
| 68 | def rol(x, i): |
| 69 | """Rotate the bottom 32 bits of x left by i bits.""" |
| 70 | return ((x << i) | ((x & 0xffffffff) >> (32 - i))) & 0xffffffff |
| 71 | |
| 72 | |
| 73 | def compress(h0, h1, h2, h3, h4, block): |