Block ciphers

Kalyna-128-256

Ukraine's block cipher standard DSTU 7624:2014, supporting 128- to 512-bit blocks

unverified Root API only
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Kalyna-128-256

Kalyna-128-256 is one of 5 Kalyna variants in the NextSSL registry, a block cipher. It uses a 32-byte (256-bit) key and a 16-byte (128-bit) block. Its registry entry cites DSTU 7624:2014 (Kalyna). NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

Overview

Kalyna is the Ukrainian national block cipher, standardised as DSTU 7624:2014. Unusually, it supports block sizes of 128, 256 and 512 bits with keys of equal or double length.

Kalyna is an AES-like substitution–permutation network operating on 64-bit columns. Each round applies four different 8-bit S-boxes, a row rotation, an 8x8 MDS column mixing over GF(2^8), and key addition, which alternates between XOR and modular addition. Round counts are 10, 14 or 18 depending on key size. It is the block cipher partner of Kupyna.

NextSSL includes Kalyna variants with block/key sizes 128/256, 256/256, 256/512 and 512/512, plus a default Kalyna entry, all wired from source and not yet verified against DSTU test vectors. Kalyna was selected through a Ukrainian national competition. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation.

History

2014–2014
  1. Specified in DSTU 7624:2014

Security notes

No practical attacks on full Kalyna are known; cryptanalysis reaches reduced rounds. NextSSL's implementation is unverified.

Typical uses

Ukrainian standards complianceWide-block encryption research

Sizes

FieldBytesMeaning
key32Secret key
block16Block

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
block = root.call("blockcipher_encrypt", "kalyna-128-256", None, key, plaintext_block)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is Kalyna-128-256?

Kalyna-128-256 is a block cipher in the Kalyna family. Kalyna is the Ukrainian national block cipher, standardised as DSTU 7624:2014.

What are the Kalyna-128-256 sizes?

In NextSSL, Kalyna-128-256 uses: key 32 bytes, block 16 bytes.

Who designed Kalyna-128-256 and when?

Kalyna-128-256 belongs to the Kalyna family, first published in 2014. Its origin: DSTU 7624:2014.

Which standards define Kalyna-128-256?

Kalyna-128-256 is referenced by DSTU 7624:2014 (Kalyna).

Is Kalyna-128-256 safe to use?

Kalyna-128-256 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).

What other Kalyna variants are there?

NextSSL also registers kalyna, kalyna-256-256, kalyna-256-512, kalyna-512-512 in the Kalyna family.