RIPEMD-160
The European RIPE-project hashes, best known as RIPEMD-160 in Bitcoin addresses
Old but not broken. Kept for interoperability; root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About RIPEMD-160
RIPEMD-160 is one of 4 RIPEMD variants in the NextSSL registry, a cryptographic hash function. It produces a 20-byte (160-bit) output. Its registry entry cites ISO/IEC 10118-3. It is also known as rmd160. NextSSL lists it in the legacy tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
RIPEMD is a family of hash functions from the European RIPE project. RIPEMD-160, designed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel in 1996, is standardised in ISO/IEC 10118-3 and remains unbroken, though it sees little new use outside Bitcoin.
RIPEMD-160 is a Merkle–Damgård hash with an unusual compression function: two independent lines of five rounds each process the same 512-bit block in parallel with different constants and boolean functions, and their results are combined at the end. This dual-line design was a response to attacks on MD4 and on the original 1992 RIPEMD.
NextSSL includes RIPEMD-128, RIPEMD-160, RIPEMD-256 and RIPEMD-320. RIPEMD-256 and RIPEMD-320 are double-width variants of the 128- and 160-bit versions that keep the two lines separate; they offer longer outputs but are not designed to be stronger than their base functions. RIPEMD-160 is used in Bitcoin, where public keys are hashed with SHA-256 followed by RIPEMD-160.
History
1992–2004Original RIPEMD developed in the EU RIPE project
RIPEMD-160 published by Dobbertin, Bosselaers and Preneel
Collision found in the original RIPEMD
Security notes
No practical collision attack on full RIPEMD-160 is known, though reduced-round collisions continue to improve. RIPEMD-128 has a 64-bit collision bound and is too short for modern use. The 256- and 320-bit variants should not be assumed to give more than 128- or 160-bit security.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 20 | Output |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'legacy' is reachable from the root API only
digest = root.call("hash_with", "ripemd160", None, b"abc")[0]
nextssl_root_hash_with("ripemd160", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "ripemd160", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other RIPEMD variants
3More hash functions
All 424Frequently asked questions
What is RIPEMD-160?
RIPEMD-160 is a hash in the RIPEMD family. RIPEMD is a family of hash functions from the European RIPE project. It is also known as rmd160.
What are the RIPEMD-160 sizes?
In NextSSL, RIPEMD-160 uses: output 20 bytes.
Who designed RIPEMD-160 and when?
RIPEMD-160 belongs to the RIPEMD family, first published in 1996 by Hans Dobbertin, Antoon Bosselaers, Bart Preneel. Its origin: RIPE project; ISO/IEC 10118-3.
Which standards define RIPEMD-160?
RIPEMD-160 is referenced by ISO/IEC 10118-3.
Is RIPEMD-160 safe to use?
RIPEMD-160 is in the legacy tier. Old but not broken. Kept for interoperability; root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
What other RIPEMD variants are there?
NextSSL also registers ripemd128, ripemd256, ripemd320 in the RIPEMD family.