Magma (GOST 28147-89)
The Soviet-era 64-bit Feistel cipher retained in GOST R 34.12-2015
Overview
Magma is the 64-bit block cipher originally standardised in the USSR as GOST 28147-89 and retained under the name Magma in GOST R 34.12-2015, documented in RFC 8891. It has a 256-bit key and very small S-boxes.
Magma is a 32-round Feistel network. The round function adds a 32-bit subkey modulo 2^32, applies eight 4-bit S-boxes and rotates the result left by 11 bits. The 256-bit key is split into eight 32-bit words used in a fixed order. In GOST 28147-89 the S-boxes were unspecified parameters; GOST R 34.12-2015 fixes one set.
Magma is used in Russian government and banking systems and in GOST TLS cipher suites. The 2015 standard renamed the cipher and fixed its S-boxes to a single set defined by the Russian standardisation technical committee TC 26. Its 64-bit block means that no more than a few gigabytes should be encrypted under a single key, since block collisions become likely around 2^32 blocks.
History
1989–2015Magma published
Specified in GOST R 34.12-2015
Security notes
Academic attacks on the full cipher exist with very high complexity, including attacks in the multi-key and reflection settings, but none are practical. Its 64-bit block limits safe data volume per key.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Magma magma |
standard | key 32 · block 8 | GOST R 34.12-2015, RFC 8891 | safe |
Frequently asked questions
Which Magma (GOST 28147-89) variants does NextSSL include?
NextSSL registers 1 Magma (GOST 28147-89) variant: magma.