Block cipher family

Magma (GOST 28147-89)

The Soviet-era 64-bit Feistel cipher retained in GOST R 34.12-2015

standard 1 variant GOST 28147-89; GOST R 34.12-2015; RFC 8891

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–2015
  1. Magma published

  2. 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

Russian GOST complianceLegacy GOST 28147-89 data

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
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.