Kuznyechik
Russia's 128-bit block cipher standard, GOST R 34.12-2015
About Kuznyechik
Kuznyechik is a block cipher. It uses a 32-byte (256-bit) key and a 16-byte (128-bit) block. Its registry entry cites GOST R 34.12-2015 and RFC 7801. NextSSL lists it in the standard tier and exposes it through the safe API.
Overview
Kuznyechik (Grasshopper) is the 128-bit block cipher in the Russian standard GOST R 34.12-2015, documented in RFC 7801. It is used in Russian TLS profiles and government systems alongside Magma.
Kuznyechik is a substitution–permutation network with a 128-bit block and 256-bit key. Each of its nine full rounds applies a key XOR, a byte-wise S-box and a linear transformation implemented as a linear feedback shift register over GF(2^8); a tenth round is a final key XOR. Its key schedule reuses the round function in a Feistel structure.
The S-box is the same as that used in Streebog. Kuznyechik is used with MGM, CTR-ACPKM and other GOST modes defined in Russian standards and RFC 9058, and appears in GOST TLS 1.3 cipher suites. Its 128-bit block makes it the preferred GOST cipher for bulk encryption, while Magma is retained for compatibility.
History
2015–2016Specified in GOST R 34.12-2015
Specified in RFC 7801
Security notes
No practical attacks on full Kuznyechik are known. Researchers have shown that its S-box has a hidden structure that contradicts the designers' claim of random generation, which has raised concerns about the design process rather than demonstrating an exploitable weakness.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 32 | Secret key |
| block | 16 | Block |
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
block = ns.call("blockcipher_encrypt", "kuznyechik", None, key, plaintext_block)[0]
nextssl_blockcipher_encrypt("kuznyechik", NULL, key, block, out); /* exactly one block */
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_blockcipher_in(reg::all(), Policy::Safe, "kuznyechik", &Params::new())?;
let out = alg.encrypt_block(&key, &block)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
More block ciphers
All 84Frequently asked questions
What is Kuznyechik?
Kuznyechik is a block cipher in the Kuznyechik family. Kuznyechik (Grasshopper) is the 128-bit block cipher in the Russian standard GOST R 34.12-2015, documented in RFC 7801.
What are the Kuznyechik sizes?
In NextSSL, Kuznyechik uses: key 32 bytes, block 16 bytes.
Who designed Kuznyechik and when?
Kuznyechik belongs to the Kuznyechik family, first published in 2015. Its origin: GOST R 34.12-2015; RFC 7801.
Which standards define Kuznyechik?
Kuznyechik is referenced by GOST R 34.12-2015, RFC 7801.
Is Kuznyechik safe to use?
Kuznyechik is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.