graphenebase.ripemd160 module

graphenebase.ripemd160.compress(h0, h1, h2, h3, h4, block)

Compress state (h0, h1, h2, h3, h4) with block., y, z, i)

The f1, f2, f3, f4, and f5 functions from the specification.


Compute the RIPEMD-160 hash of data.

graphenebase.ripemd160.rol(x, i)

Rotate the bottom 32 bits of x left by i bits.