@li0ard/dstu
v0.1.6
Published
DSTU cryptography algorithms in pure TypeScript
Maintainers
Readme
Installation
npm i @li0ard/dstuSupported algorithms
- Curves and ECDSA (DSTU 4145-2002, polynomial and optimal normal basis)
- Kalyna cipher (DSTU 7624:2014)
- Kupyna hash function (DSTU 7564:2014)
- Supports KMAC
- Strumok stream cipher (DSTU 8845:2019)
- ECIES encryption schema over Twisted Edwards curves (DSTU 9041:2020)
Supported cipher modes
- Cipher Block Chaining mode (CBC)
- Cipher Feedback mode (CFB)
- Counter mode (CTR)
- Electronic Codebook mode (ECB)
- Galois Counter mode (GCM)
- Message Authentication Code mode (MAC and GMAC)
- Output Feedback mode (OFB)
- Key wrapping (KW)
- XEX Tweakable Block Ciphertext Stealing (XTS)
Supported curves
| Bits | Polynomial(PB) | Optimal normal(ONB) | Test curve | |:----:|:------------------:|:-----------------------:|:----------:| | 163 | ✅ | | ✅ | | 167 | ✅ | | | | 173 | ✅ | ✅ | ✅ (ONB) | | 179 | ✅ | ✅ | | | 191 | ✅ | ✅ | | | 233 | ✅ | ✅ | | | 257 | ✅ | | | | 307 | ✅ | | | | 367 | ✅ | | | | 431 | ✅ | ✅ | |
