Hash functions

Streebog256

Russia's current hash standard, GOST R 34.11-2012, with 256- and 512-bit outputs

standard Safe API

About Streebog256

Streebog256 is one of 2 Streebog variants in the NextSSL registry, a cryptographic hash function. It produces a 32-byte (256-bit) output. Its registry entry cites GOST R 34.11-2012 and RFC 6986. It is also known as gost-r-34-11-2012-256. NextSSL lists it in the standard tier and exposes it through the safe API.

Overview

Streebog is the Russian national hash function, standardised as GOST R 34.11-2012 and documented in RFC 6986. It replaced GOST R 34.11-94 and is used in Russian TLS profiles, signatures and certificates.

Streebog uses a Merkle–Damgård-like iteration with a Miyaguchi–Preneel compression function built from an AES-like 512-bit block cipher. Each round applies the LPS transformation: byte substitution through the Kuznyechik S-box, a byte transposition and a linear transformation over GF(2). In addition to the chaining value, the function maintains a running message length and a modular checksum of all blocks, which are mixed in at finalisation.

NextSSL includes Streebog-256 and Streebog-512. The two share the same compression function and differ only in their initial values and output truncation. Streebog-256 is not a truncation of Streebog-512 computed on the same state; the different starting value means the two outputs are unrelated. Both are used with the GOST R 34.10-2012 signature algorithm and in Russian certificate profiles, and both appear in GOST cipher suites for TLS.

History

2012–2013
  1. Published as GOST R 34.11-2012

  2. Specified in RFC 6986

Security notes

No practical attacks on full Streebog are known; rebound and second-preimage results apply to reduced rounds or have impractical complexity. Researchers have shown that its S-box has hidden algebraic structure that its designers did not document, which has raised questions about its design process rather than demonstrated a break.

Typical uses

Russian GOST complianceGOST signatures and certificatesTLS GOST cipher suites

Sizes

FieldBytesMeaning
out32Output

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
digest = ns.call("hash_with", "streebog256", None, b"abc")[0]

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

Other Streebog variants

1

Frequently asked questions

What is Streebog256?

Streebog256 is a hash in the Streebog family. Streebog is the Russian national hash function, standardised as GOST R 34.11-2012 and documented in RFC 6986. It is also known as gost-r-34-11-2012-256.

What are the Streebog256 sizes?

In NextSSL, Streebog256 uses: output 32 bytes.

Who designed Streebog256 and when?

Streebog256 belongs to the Streebog family, first published in 2012. Its origin: GOST R 34.11-2012; RFC 6986.

Which standards define Streebog256?

Streebog256 is referenced by GOST R 34.11-2012, RFC 6986.

Is Streebog256 safe to use?

Streebog256 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.

What other Streebog variants are there?

NextSSL also registers streebog512 in the Streebog family.