Kupyna
Ukraine's national hash standard, DSTU 7564:2014, an AES-like wide-pipe design
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 Kupyna
Kupyna is a cryptographic hash function. It produces a 28–64-byte output. It takes the parameter out_len (default 32). Its registry entry cites DSTU 7564:2014 (Kupyna). 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
Kupyna is the Ukrainian national hash function standardised as DSTU 7564:2014. It supports outputs from 8 to 512 bits and shares its round structure with the Kalyna block cipher.
Kupyna's compression function is modelled on Grøstl: two distinct AES-like permutations, T⊕ and T+, are applied to the chaining value XOR the message and to the message alone, and their outputs are combined. The state is 512 bits for outputs up to 256 bits and 1024 bits for longer outputs, making it a wide-pipe design. A final output transformation truncates the state.
The rounds use four 8-bit S-boxes, row rotation and MDS column mixing like Kalyna. NextSSL carries a Kupyna entry wired from source; which output lengths are exposed follows the implementation and has not yet been verified against DSTU test vectors. Kupyna-256 and Kupyna-512 are the most commonly cited instances, and the standard also defines a keyed MAC mode.
History
2014–2014Adopted as Ukrainian standard DSTU 7564:2014
Security notes
Published cryptanalysis reaches reduced-round versions only, and no practical attack on full Kupyna is known. Outside Ukrainian compliance it has limited deployment and tooling.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 28 – 64 | Output |
Parameters
| Name | Type | Range | Default | Required |
|---|---|---|---|---|
| out_len | u64 | 28 – 64 | 32 | no |
Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
digest = root.call("hash_with", "kupyna", None, b"abc")[0]
nextssl_root_hash_with("kupyna", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "kupyna", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is Kupyna?
Kupyna is a hash in the Kupyna family. Kupyna is the Ukrainian national hash function standardised as DSTU 7564:2014.
What are the Kupyna sizes?
In NextSSL, Kupyna uses: output 28 to 64 bytes.
Who designed Kupyna and when?
Kupyna belongs to the Kupyna family, first published in 2014. Its origin: DSTU 7564:2014.
Which standards define Kupyna?
Kupyna is referenced by DSTU 7564:2014 (Kupyna).
Is Kupyna safe to use?
Kupyna 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).