Gost28147-89-Cryptopro-C
The Soviet-era GOST 28147-89 Feistel block cipher, with 256-bit keys and CryptoPro S-box sets
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 Gost28147-89-Cryptopro-C
Gost28147-89-Cryptopro-C is one of 6 GOST 28147-89 variants in the NextSSL registry, a block cipher. It uses a 32-byte (256-bit) key and an 8-byte (64-bit) block. Its registry entry cites GOST 28147-89, RFC 5830 and RFC 4357. 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 28147-89 is a 64-bit block cipher with a 256-bit key, specified in the Soviet and later Russian standard GOST 28147-89. It is a 32-round Feistel network, and RFC 5830 and RFC 4357 document its use. NextSSL carries four CryptoPro S-box variants, all marked legacy.
GOST 28147-89 is the block cipher of the Soviet-era standard GOST 28147-89, which remained in use in Russia and nearby states for decades. It is a 64-bit block cipher with a 256-bit key and a 32-round Feistel structure. The round function combines key addition, eight 4-bit S-boxes and a rotation, and the S-boxes are a parameter of the standard.
NextSSL carries the four CryptoPro parameter sets, gost28147-89-cryptopro-a through -d, each with a 32-byte key and an 8-byte block. The S-box choice is the only difference between them. The family page also lists test and TC26 parameter sets as other variants. RFC 5830 and RFC 4357 document the cipher and its use in Russian cryptographic profiles.
The 64-bit block raises the birthday bound: after about 2 to the power of 32 blocks under one key, collisions become likely, which limits safe data volume. The tier is legacy, so the cipher is kept for interoperability with older Russian systems and for research.
History
1989–2010Specified in GOST 28147-89
Specified in RFC 4357
Specified in RFC 5830
How it works
- The 256-bit key supplies eight 32-bit subkeys, used in a set order across the 32 rounds.
- Each round adds a subkey to one half of the block, passes it through the S-boxes, and rotates the result before XORing it into the other half.
- Decryption uses the same rounds with the subkeys applied in reverse order.
Security notes
Legacy. The cipher has published attacks, and the 64-bit block limits data per key. Use AES or a modern cipher for new designs.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 32 | Secret key |
| block | 8 | Block |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'legacy' is reachable from the root API only
block = root.call("blockcipher_encrypt", "gost28147-89-cryptopro-c", None, key, plaintext_block)[0]
nextssl_root_blockcipher_encrypt("gost28147-89-cryptopro-c", 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::Any, "gost28147-89-cryptopro-c", &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.
Other GOST 28147-89 variants
5Similar names
Looking for something else?More block ciphers
All 84Frequently asked questions
What is Gost28147-89-Cryptopro-C?
Gost28147-89-Cryptopro-C is a block cipher in the GOST 28147-89 family. GOST 28147-89 is a 64-bit block cipher with a 256-bit key, specified in the Soviet and later Russian standard GOST 28147-89.
What are the Gost28147-89-Cryptopro-C sizes?
In NextSSL, Gost28147-89-Cryptopro-C uses: key 32 bytes, block 8 bytes.
Who designed Gost28147-89-Cryptopro-C and when?
Gost28147-89-Cryptopro-C belongs to the GOST 28147-89 family, first published in 1989. Its origin: GOST 28147-89 (Soviet standard), documented in RFC 5830 and RFC 4357.
Which standards define Gost28147-89-Cryptopro-C?
Gost28147-89-Cryptopro-C is referenced by GOST 28147-89, RFC 5830, RFC 4357.
Is Gost28147-89-Cryptopro-C safe to use?
Gost28147-89-Cryptopro-C 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 GOST 28147-89 variants are there?
NextSSL also registers gost28147-89-cryptopro-a, gost28147-89-cryptopro-b, gost28147-89-cryptopro-d, gost28147-89-tc26-z, gost28147-89-test in the GOST 28147-89 family.
Related families
The 1977 US standard cipher, broken by exhaustive search, and its three-pass extension
IDEAThe International Data Encryption Algorithm: a Lai–Massey cipher mixing three groups
KASUMIThe 3GPP block cipher behind A5/3, derived from MISTY1
KuznyechikRussia's 128-bit block cipher standard, GOST R 34.12-2015
Magma (GOST 28147-89)The Soviet-era 64-bit Feistel cipher retained in GOST R 34.12-2015