Soviet/Russian national hash standard producing 256-bit digests. Uses GOST 28147-89 cipher internally with D-A S-box. Superseded by Streebog (GOST R 34.11-2012).
| Property | Value |
|---|---|
| Category | Hash Functions |
| Sub-category | Hash Function |
| Security status | ⚠️ Deprecated |
| Complexity | Advanced |
| Inventor | Soviet Union cryptographers |
| Year | 1994 |
| Origin | 🇷🇺 Russia |
| Source | algorithms/hash/gost3411.js |
| Parameter | Supported values |
|---|---|
| Hash sizes | 32 bytes (256 bits) |
Status: ⚠️ Deprecated
| Issue | Description | Mitigation |
|---|---|---|
| Deprecated standard | GOST R 34.11-94 has been superseded by Streebog (GOST R 34.11-2012) since 2012. | Use Streebog for new applications requiring Russian cryptographic standards. |
| Collision resistance | Theoretical attacks on collision resistance exist, though no practical collisions are known. | Consider this algorithm for legacy compatibility only, not for new security applications. |
4 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 — BouncyCastle Test Vector 1 - Empty string
| Field | Value |
|---|---|
input |
(empty) |
expected |
981e5f3ca30c841487830f84fb433e13ac1101569b9c13584ac483234cd656c0 |
Vector 2 — BouncyCastle Test Vector 2 - 32 bytes
| Field | Value |
|---|---|
input |
54686973206973206d6573736167652c206c656e6774683d3332206279746573 |
expected |
2cefc2f7b7bdc514e18ea57fa74ff357e7fa17d652c75f69cb1be7893ede48eb |
Vector 3 — BouncyCastle Test Vector 3 - 50 bytes
| Field | Value |
|---|---|
input |
537570706f736520746865206f726967 696e616c206d65737361676520686173 206c656e677468203d20353020627974 6573 |
expected |
c3730c5cbccacf915ac292676f21e8bd4ef75331d9405e5f1a61dc3130a65011 |
Vector 4 — BouncyCastle Test Vector 4 - Alphanumeric
| Field | Value |
|---|---|
input |
4142434445464748494a4b4c4d4e4f50 5152535455565758595a616263646566 6768696a6b6c6d6e6f70717273747576 7778797a30313233343536373839 |
expected |
73b70a39497de53a6e08c67b6d4db853540f03e9389299d9b0156ef7e85d0f61 |