Kupyna explained in plain terms means understanding the hash Ukraine made its national standard in 2014, a design built around a wide state and a Davies-Meyer construction that replaced the country’s older Soviet-era hash. The central question is why a country would write its own hash standard instead of adopting SHA-256, and the answer is that Kupyna was built for independence, so Ukraine’s signatures and certificates would rest on a design its own researchers had built and studied, and that independence is the whole point of the story.
Kupyna is a cryptographic hash function standardised as DSTU 7564:2014, the Ukrainian national hash standard. It turns a message of any length into a fixed fingerprint of 256, 384 or 512 bits, and it is built from a compression function based on permutations with AES-like S-boxes and mixing layers, which means the design treats hashing as a series of carefully chosen shuffles, and that approach is what makes it unusual among national standards.
This article explains what Kupyna is, how it works, and where it runs in the real world.
Key takeaways
- Kupyna is Ukraine’s national hash standard, DSTU 7564:2014.
- It was published in 2014, replacing the older GOST hash.
- It offers 256-bit, 384-bit and 512-bit digests.
- It is built on a Davies-Meyer compression function.
- It is used in Ukrainian government and industry signatures.
What Kupyna is
Kupyna is a hash that turns a message into a short fingerprint, and that fingerprint is what lets software check whether a file or a message has changed. A user feeds in a document of any size, Kupyna processes it in blocks, and out comes a fixed-length digest, which means two different files should never produce the same digest, and that promise is the whole point of a hash function.
Its signature feature is the wide state. Most hashes keep a few hundred bits of state, but Kupyna-512 keeps 1024 bits, which means the design has far more room than it needs, and because the state is so large, the message is a small guest inside a very large house.
The design was a reaction to the end of the Soviet standard. By 2014, Ukraine’s old GOST hash was ageing, and the country wanted a modern standard of its own, so its researchers built one around permutations they could analyse deeply, because a standard your own engineers understand is a standard you can implement fast and trust.
It became one of the best-known national hashes in the world, and it is named in the histories of hash standardisation. Kupyna was adopted for digital signatures, certificates and government documents across Ukraine, it was studied by cryptanalysts for years, and it is still the approved hash for new Ukrainian signatures, which means the design carries legal weight as well as technical respect.
Its most famous property is the pair of permutations at its heart. Kupyna’s compression function uses two related permutations, one for mixing the message and one for mixing the state, which means the design gets its strength from two different shuffles working together, and because both use the same S-box, the whole construction is easy to describe in a few pages.
Our guide to GOST explains the older cipher family Kupyna replaced, and our guide to SHA-3 explains the international standard Kupyna sits beside.
How Kupyna works
Everything starts with the message, which is padded until its length fits a whole number of blocks. Kupyna appends a one bit, then zeroes, then the message length, which means every message ends up as a neat stack of equal pieces, and because the padding includes the length, two messages of different lengths can never be confused.
Each block begins with the chaining value, the running state carried forward from the previous block. The block is combined with that state and passed through the compression function, which means the state after each block depends on every block before it, and because the state is up to 1024 bits wide, the design has plenty of room to hide patterns.
The compression function is what makes the design work as a whole. It treats the state as the input to a permutation, xors the message in, and combines the result with the old state, which means the hash is really a shuffle run in a loop, and because the permutation is the same every time, the design is easy to implement in hardware.
The rounds spread the effect further. Each round applies an S-box substitution, then a linear transformation that mixes the bytes, then a shift of the rows, which means a single changed bit in the message fans out across the whole state, and because the rounds repeat ten or fourteen times, the spreading happens again and again.
The finalisation is what turns the state into a digest. After the last block, Kupyna processes the total message length as one more block, which means the digest depends on the length as well as the contents, and because the length block is processed like any other, the design needs no special final step.
The digest comes from the final state, trimmed to the length the user asked for. Kupyna outputs the first 256, 384 or 512 bits of the state, which means one algorithm serves three digest sizes, and that shared core is what makes the variable output possible.

Comparing Kupyna with other national hashes
Kupyna is one of several hashes written as national standards, and each was built with a different emphasis. SHA-256 is the American standard with a 256-bit digest and a Merkle-Damgård design, Streebog is the Russian standard with a 256-bit or 512-bit digest and a twelve-round cipher, and Kupyna is the one built on Davies-Meyer with wide permutations, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Kupyna | SHA-256 | Streebog |
|---|---|---|---|
| Standard | DSTU 7564:2014 | FIPS 180-4 | GOST R 34.11-2012 |
| Digest sizes | 256, 384 or 512 bits | 256 bits | 256 or 512 bits |
| State size | 512 or 1024 bits | 256 bits | 512 bits |
| Year | 2014 | 2001 | 2012 |
| Best for | Ukrainian signatures | Standard use | Russian signatures |
The practical result is that Kupyna is the right choice for Ukrainian signatures, SHA-256 suits standard use everywhere else, and Streebog fits Russian signatures instead.
Where Kupyna is used
Government uses it to sign official documents. Ukrainian ministries and agencies sign decrees, certificates and records with Kupyna-based signatures, because the law requires a national standard, and that legal requirement is the reason the hash is deployed so widely.
Banking uses it to protect transactions. Ukrainian banks sign payment orders and statements with Kupyna, because financial law demands the national standard, which means the hash protects real money, and that responsibility is the reason it is audited so carefully.
Teaching uses it as the national-standard example. Cryptography courses introduce Kupyna when they explain how countries write their own standards, because it is the clearest case of a hash built for independence, and a student who understands Kupyna understands why standards are political as well as technical.
Research uses it as a case study in wide-state hashing. Cryptographers still cite Kupyna when they discuss hashes built on large states, because it is the clearest example of the idea in a national standard, and that lesson shapes how new wide-state designs are judged today.
History uses it to tell the story of 2014. The adoption of Kupyna is one of the great stories of standards politics, and the hash is remembered wherever that story is told, which means it survives as history as well as a working tool.
Strengths and limits
The greatest strength of Kupyna is its deployment. A hash that signs real government documents and bank transactions is tested far more thoroughly than a paper design, and that testing is real, measured in the audits it has passed and confirmed by the systems that depend on it every day.
It is also a strength that the design is built from familiar parts. A compression function made of an S-box, a linear layer and a byte shuffle is easy to implement and easy to analyse, and that simplicity is worth more than cleverness in a field where hidden complexity usually means hidden flaws.
The limits are real, though, and the biggest is its narrow adoption. Outside Ukraine, almost nobody uses Kupyna, which means it has never had the global review that SHA-256 enjoys, and a system that needs worldwide compatibility will usually choose the international standard instead.
Kupyna checklist
- Use Kupyna where Ukrainian standards are required, never by default.
- Remember it is DSTU 7564:2014, published in 2014.
- Study its wide state to understand large-state hashing.
- Compare it with SHA-256 to see the standards trade-off.
- Note it offers 256-bit, 384-bit and 512-bit digests.
- Check legal requirements before choosing a national standard.
- Keep interoperable systems on international standards.
- Read the standards story to see how national hashes are written.
- Choose SHA-256 for any system that needs global support today.
Frequently asked questions
What is Kupyna in simple terms?
It is a hash function standardised in Ukraine in 2014 that turns any message into a 256-bit, 384-bit or 512-bit fingerprint, built around a wide state and a Davies-Meyer compression function.
Who wrote Kupyna?
It was developed by Ukrainian researchers and published as the national standard DSTU 7564:2014, replacing the older Soviet-era GOST hash.
How is Kupyna different from SHA-256?
Both are hashes, but Kupyna is built on a Davies-Meyer construction with a state of up to 1024 bits and offers three digest sizes, while SHA-256 uses the Merkle-Damgård construction with a 256-bit state.
Is Kupyna still secure?
Yes, no practical attack against it has been published, and it is actively used in Ukrainian government and banking signatures, though it has never had the global review of SHA-256.
Where is Kupyna used?
In Ukrainian government documents, banking signatures, and certificate authorities, wherever the law requires the national standard.
When should I use Kupyna?
When a Ukrainian standard is legally required, when you study national hash standards, or when you want a wide-state hash design.
The bottom line
Kupyna explained in one line is this: Ukraine’s national hash, a 2014 standard built on a wide state and a Davies-Meyer construction that replaced the old GOST hash and signs the country’s documents.
It is proof that a hash can be a matter of national policy, and the reason it still matters is that every standard written since has been judged partly by the lesson Kupyna taught.
This article is general information about how Kupyna works, not advice about choosing encryption for a particular device or system.







