Ripemd128
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 Ripemd128
Ripemd128 is one of 4 RIPEMD variants in the NextSSL registry, a cryptographic hash function. It produces a 16-byte (128-bit) output. Its registry entry cites ISO/IEC 10118-3. 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 | 16 | 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", "ripemd128", None, b"abc")[0]
nextssl_root_hash_with("ripemd128", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "ripemd128", &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
3Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is Ripemd128?
Ripemd128 is a hash in the RIPEMD family. RIPEMD is a family of hash functions from the European RIPE project.
What are the Ripemd128 sizes?
In NextSSL, Ripemd128 uses: output 16 bytes.
Who designed Ripemd128 and when?
Ripemd128 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 Ripemd128?
Ripemd128 is referenced by ISO/IEC 10118-3.
Is Ripemd128 safe to use?
Ripemd128 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 ripemd160, ripemd256, ripemd320 in the RIPEMD family.