A new library called crypto-gost has recently been released, offering an implementation of GOST crypto-algorithms in Java without any additional dependencies. This library differentiates itself from the Castle Bouncy Castle library by improving the encryption performance of the Grasshopper algorithm, addressing certain security issues, and providing simple wrappers that do not necessitate extensive knowledge in cryptography. The code is provided under a permissive license, allowing for distribution, modification, and creation of derivative works without any restrictions.
The crypto-gost library supports a range of algorithms, including:
- GOST R 34.11-2012 (RFC 6986) – Stribog hash function with 256 and 512 bits.
- GOST R 34.12-2015 – block cipher “Grasshopper” with a 256-bit key.
- GOST R 34.13-2015 – encryption modes CBC, CFB, CTR (GAMMA), OFB; imitation insert (CMAC).
- GOST R 34.10-2012 (RFC 7091) – electronic signature with 256 and 512 bits.
- HMAC-Streebog (RFC 7836, HMAC-Streebog-256 and HMAC-Streebog-512).
- MGM (Multilinear Galois Mode) – AEAD mode for Grasshopper (RFC 9058), compatible with OpenSSL.
- SCrypt (RFC 7914) – password-based key generation function.
/Reports, release notes, official announcements.