Hash functions

Ripemd256

The European RIPE-project hashes, best known as RIPEMD-160 in Bitcoin addresses

legacy Root API only
Legacy tier.

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 Ripemd256

Ripemd256 is one of 4 RIPEMD variants in the NextSSL registry, a cryptographic hash function. It produces a 32-byte (256-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–2004
  1. Original RIPEMD developed in the EU RIPE project

  2. RIPEMD-160 published by Dobbertin, Bosselaers and Preneel

  3. 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

Bitcoin and cryptocurrency address derivationLegacy OpenPGP fingerprintsInteroperability with ISO/IEC 10118-3

Sizes

FieldBytesMeaning
out32Output

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", "ripemd256", None, b"abc")[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other RIPEMD variants

3

Frequently asked questions

What is Ripemd256?

Ripemd256 is a hash in the RIPEMD family. RIPEMD is a family of hash functions from the European RIPE project.

What are the Ripemd256 sizes?

In NextSSL, Ripemd256 uses: output 32 bytes.

Who designed Ripemd256 and when?

Ripemd256 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 Ripemd256?

Ripemd256 is referenced by ISO/IEC 10118-3.

Is Ripemd256 safe to use?

Ripemd256 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, ripemd160, ripemd320 in the RIPEMD family.