Hash functions

Gost-R-34-11-94

The former Russian hash standard, built around the GOST 28147-89 block cipher

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 Gost-R-34-11-94

Gost-R-34-11-94 is a cryptographic hash function from the GOST R 34.11-94 family. It produces a 32-byte (256-bit) output. Its registry entry cites GOST R 34.11-94, RFC 5831 and RFC 4357 (CryptoPro parameter set). It is also known as gost94 and gost94-cryptopro. 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

GOST R 34.11-94 is the earlier Russian national hash function, producing a 256-bit digest. It was superseded by Streebog in 2012 but remains present in older GOST-based certificates and software.

The compression function encrypts four 64-bit words of the chaining value under keys derived from the message block using the GOST 28147-89 block cipher, then applies a linear mixing transformation that combines the result with the message and previous state. A 256-bit block checksum and the total length are hashed in at the end. The S-boxes of the underlying cipher are parameters; RFC 4357 defines the widely used CryptoPro parameter set.

NextSSL includes GOST R 34.11-94 with the CryptoPro parameters as described in RFC 4357 and RFC 5831, enabling verification of legacy GOST data. Because the S-boxes are parameters, two implementations using different parameter sets will produce different digests for the same input. The original test parameter set from the standard and the CryptoPro set are both common in older software, so the parameter set must be identified before comparing values.

History

1994–2010
  1. Specified in GOST R 34.11-94

  2. Specified in RFC 4357

  3. Specified in RFC 5831

Security notes

A collision attack with complexity around 2^105 and preimage attacks below the generic bound were published in 2008. These are not practical, but the function is formally withdrawn and slow; use Streebog for new GOST deployments.

Typical uses

Verifying legacy GOST certificates and signaturesInteroperability with older Russian software

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", "gost-r-34-11-94", None, b"abc")[0]

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

Frequently asked questions

What is Gost-R-34-11-94?

Gost-R-34-11-94 is a hash in the GOST R 34.11-94 family. GOST R 34.11-94 is the earlier Russian national hash function, producing a 256-bit digest. It is also known as gost94, gost94-cryptopro.

What are the Gost-R-34-11-94 sizes?

In NextSSL, Gost-R-34-11-94 uses: output 32 bytes.

Who designed Gost-R-34-11-94 and when?

Gost-R-34-11-94 belongs to the GOST R 34.11-94 family, first published in 1994. Its origin: GOST R 34.11-94; RFC 5831.

Which standards define Gost-R-34-11-94?

Gost-R-34-11-94 is referenced by GOST R 34.11-94, RFC 5831, RFC 4357 (CryptoPro parameter set).

Is Gost-R-34-11-94 safe to use?

Gost-R-34-11-94 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).