Kalyna
Ukraine's block cipher standard DSTU 7624:2014, supporting 128- to 512-bit blocks
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
Kalyna is a block cipher. It uses a 16-byte (128-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–2014Specified 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| block | 16 | Block |
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", None, key, plaintext_block)[0]
nextssl_root_blockcipher_encrypt("kalyna", 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, "kalyna", &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 Kalyna variants
4Similar names
Looking for something else?More block ciphers
All 84Frequently asked questions
What is Kalyna?
Kalyna is a block cipher in the Kalyna family. Kalyna is the Ukrainian national block cipher, standardised as DSTU 7624:2014.
What are the Kalyna sizes?
In NextSSL, Kalyna uses: key 16 bytes, block 16 bytes.
Who designed Kalyna and when?
Kalyna belongs to the Kalyna family, first published in 2014. Its origin: DSTU 7624:2014.
Which standards define Kalyna?
Kalyna is referenced by DSTU 7624:2014 (Kalyna).
Is Kalyna safe to use?
Kalyna 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-128-256, kalyna-256-256, kalyna-256-512, kalyna-512-512 in the Kalyna family.