https://github.com/li0ard/gost3413
Cipher modes and padding's according to GOST R 34.13-2015 in pure TypeScript
https://github.com/li0ard/gost3413
crypto gost
Last synced: 3 months ago
JSON representation
Cipher modes and padding's according to GOST R 34.13-2015 in pure TypeScript
- Host: GitHub
- URL: https://github.com/li0ard/gost3413
- Owner: li0ard
- License: mit
- Created: 2025-07-06T18:58:29.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-07-26T23:00:46.000Z (4 months ago)
- Last Synced: 2025-08-08T19:02:14.699Z (4 months ago)
- Topics: crypto, gost
- Language: TypeScript
- Homepage: https://li0ard.is-cool.dev/gost3413
- Size: 36.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
@li0ard/gost3413
Cipher modes and padding's according to GOST R 34.13-2015 in pure TypeScript
docs
> [!WARNING]
> This module contains only wrappers for encryption modes without reference to a specific cipher
## Installation
```bash
# from NPM
npm i @li0ard/gost3413
# from JSR
bunx jsr i @li0ard/gost3413
```
## Supported modes
- [x] Electronic Codebook (ECB)
- [x] Cipher Block Chaining (CBC)
- [x] Cipher Feedback (CFB)
- [x] Counter (CTR)
- [x] Output Feedback (OFB)
- [x] MAC (CMAC/OMAC)
- [x] Counter with Advance Cryptographic Prolongation of Key Material (CTR-ACPKM)
- [x] MAC with Advance Cryptographic Prolongation of Key Material (OMAC-ACPKM)
- [x] Multilinear Galois Mode (MGM)
- [x] KExp15/KImp15
- [x] Padding method #1 (`Процедура 1`/`Procedure 1`)
- [x] Padding method #2 (`Процедура 2`/`Procedure 2`/`ISO/IEC 7816-4`)
- [x] Padding method #3 (`Процедура 3`/`Procedure 3`)
## Features
- Provides simple and modern API
- Most of the APIs are strictly typed
- Fully complies with [GOST R 34.13-2015 (in Russian)](https://tc26.ru/standard/gost/GOST_R_3413-2015.pdf) standard
- Supports Bun, Node.js, Deno, Browsers