@li0ard/gost 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +47 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nikolai Konovalov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<b>@li0ard/gost</b><br>
|
|
3
|
+
<b>GOST cryptography algorithms in pure TypeScript</b>
|
|
4
|
+
<br>
|
|
5
|
+
<a href="https://li0ard.is-cool.dev/gost">docs</a>
|
|
6
|
+
<br><br>
|
|
7
|
+
<a href="https://github.com/li0ard/gost/actions/workflows/test.yml"><img src="https://github.com/li0ard/gost/actions/workflows/test.yml/badge.svg" /></a>
|
|
8
|
+
<a href="https://github.com/li0ard/gost/blob/main/LICENSE"><img src="https://img.shields.io/github/license/li0ard/gost" /></a>
|
|
9
|
+
<br>
|
|
10
|
+
<a href="https://npmjs.com/package/@li0ard/gost"><img src="https://img.shields.io/npm/v/@li0ard/gost" /></a>
|
|
11
|
+
<br>
|
|
12
|
+
<hr>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm i @li0ard/gost
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Supported algorithms
|
|
22
|
+
|
|
23
|
+
- Curves and DSA (GOST R 34.10-2001 and GOST R 34.10-2012)
|
|
24
|
+
- VKO key agreement function
|
|
25
|
+
- Points conversion from Weierstrass to Twisted Edwards form and vice versa
|
|
26
|
+
- GOST R 34.11-94 hash function
|
|
27
|
+
- Supports HMAC and PBKDF2
|
|
28
|
+
- Kuznyechik cipher (GOST R 34.12-2015)
|
|
29
|
+
- Magma cipher (GOST R 34.12-2015)
|
|
30
|
+
- Supports legacy version from GOST 28147-89
|
|
31
|
+
- Streebog hash function (GOST R 34.11-2012)
|
|
32
|
+
- Supports HMAC, PBKDF2 (512 bit), `kdf_gostr3411_2012_256`, `kdf_tree_gostr3411_2012_256` and CPKDF
|
|
33
|
+
|
|
34
|
+
## Supported cipher modes
|
|
35
|
+
|
|
36
|
+
- Cipher Block Chaining mode (CBC)
|
|
37
|
+
- Cipher Feedback mode (CFB)
|
|
38
|
+
- Counter mode (CTR)
|
|
39
|
+
- Supports legacy version for GOST 28147-89 (CNT) and Counter with Advance Cryptographic Prolongation of Key Material (CTR-ACPKM)
|
|
40
|
+
- Electronic Codebook mode (ECB)
|
|
41
|
+
- Message Authentication Code mode (MAC)
|
|
42
|
+
- Supports legacy version for GOST 28147-89 and MAC with Advance Cryptographic Prolongation of Key Material (OMAC-ACPKM)
|
|
43
|
+
- Multilinear Galois mode (MGM)
|
|
44
|
+
- Output Feedback mode (OFB)
|
|
45
|
+
- Key wrapping:
|
|
46
|
+
- Modern key wrapping with KExp15/KImp15
|
|
47
|
+
- Legacy key wrapping for GOST 28147-89 (KWP) with CryptoPro key derivation
|