Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ripemd160

RIPEMD-160 Hash Function Implementation

This module provides a complete implementation of the RIPEMD-160 cryptographic hash function as specified in the RIPEMD-160 standard. RIPEMD-160 produces a 160-bit (20-byte) hash digest.

Based on the original Cairo implementation by j1mbo64: https://github.com/j1mbo64/ripemd160_cairo

Algorithm Overview

RIPEMD-160 processes input data in 512-bit (64-byte) blocks through:

  • 5 rounds of 16 operations each on the left side
  • 5 rounds of 16 operations each on the right side
  • Final combination of left and right results

Fully qualified path: alexandria_math::ripemd160

Free functions

ripemd160_context_as_bytes
ripemd160_context_as_array
ripemd160_context_as_u256
ripemd160_hashRIPEMD-160 hash function entrypoint Computes the RIPEMD-160 hash of the input data. This implementation is based on the original work by j1mbo64: https://github.com/j1mbo64/ripemd160_cairo…

Structs

Impls