gost3413 - v0.1.7
@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
# 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) standard
- Supports Bun, Node.js, Deno, Browsers