Hash functions

Streebog512

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

standard Safe API

About Streebog512

Streebog512 is one of 2 Streebog variants in the NextSSL registry, a cryptographic hash function. It produces a 64-byte (512-bit) output. Its registry entry cites GOST R 34.11-2012 and RFC 6986. It is also known as gost-r-34-11-2012-512. 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
out64Output

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
digest = ns.call("hash_with", "streebog512", 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 Streebog512?

Streebog512 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-512.

What are the Streebog512 sizes?

In NextSSL, Streebog512 uses: output 64 bytes.

Who designed Streebog512 and when?

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

Which standards define Streebog512?

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

Is Streebog512 safe to use?

Streebog512 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 streebog256 in the Streebog family.