Skip to content

Repository files navigation

@li0ard/dstu
DSTU cryptography algorithms in pure TypeScript
docs




Installation

npm i @li0ard/dstu

Supported 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

About

DSTU cryptography algorithms in pure TypeScript

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Contributors

Languages