dilithium-crystals-js 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +13 -16
- package/package.json +10 -3
package/README.md
CHANGED
@@ -52,7 +52,19 @@ Dilithium.then((dilithium) => {
|
|
52
52
|
|
53
53
|
### Browser
|
54
54
|
|
55
|
-
|
55
|
+
To use dilithium-crystals-js in a browser:
|
56
|
+
|
57
|
+
1. Ensure `dilithium.wasm` is in your public directory.
|
58
|
+
2. Adjust the WASM fetch path in `./browser/index.js`, by default it's set to `node_modules/dilithium-crystals-js/kyber.wasm`:
|
59
|
+
|
60
|
+
```javascript
|
61
|
+
async function fetchWasm() {
|
62
|
+
return await (await fetch("/path/to/your/dilithium.wasm")).arrayBuffer();
|
63
|
+
}
|
64
|
+
```
|
65
|
+
|
66
|
+
Replace /path/to/your/dilithium.wasm with the actual path where you serve the WASM file.
|
67
|
+
Note: Configure your server to serve WASM files with application/wasm MIME type.
|
56
68
|
|
57
69
|
```javascript
|
58
70
|
import { createDilithium } from "./node_modules/dilithium-crystals-js/dist/dilithium.min.js";
|
@@ -132,18 +144,3 @@ dilithium-crystals-js supports all four parameter sets of the Dilithium signatur
|
|
132
144
|
- **3**: Dilithium2-AES (NIST security level 2, AES variant)
|
133
145
|
|
134
146
|
Choose the appropriate parameter set based on your security requirements.
|
135
|
-
|
136
|
-
## Contributing
|
137
|
-
|
138
|
-
Contributions to dilithium-crystals-js are welcome! Please follow these steps:
|
139
|
-
|
140
|
-
1. Fork the repository
|
141
|
-
2. Create a new branch for your feature or bug fix
|
142
|
-
3. Commit your changes with clear, descriptive commit messages
|
143
|
-
4. Push your branch and submit a pull request
|
144
|
-
|
145
|
-
Please ensure your code adheres to the existing style and includes appropriate test coverage.
|
146
|
-
|
147
|
-
If you encounter any issues or have questions about dilithium-crystals-js, please file an issue on the GitHub repository.
|
148
|
-
|
149
|
-
## Acknowledgments
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "dilithium-crystals-js",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.2",
|
4
4
|
"main": "src/node/index.js",
|
5
5
|
"browser": "dist/dilithium.min.js",
|
6
6
|
"files": [
|
@@ -14,9 +14,16 @@
|
|
14
14
|
"build": "webpack"
|
15
15
|
},
|
16
16
|
"keywords": [
|
17
|
-
"dilithium",
|
17
|
+
"crystals-dilithium",
|
18
18
|
"post-quantum",
|
19
|
-
"cryptography"
|
19
|
+
"cryptography",
|
20
|
+
"digital-signature",
|
21
|
+
"lattice-based",
|
22
|
+
"quantum-resistant",
|
23
|
+
"public-key",
|
24
|
+
"crypto-algorithm",
|
25
|
+
"nist-pqc",
|
26
|
+
"authentication"
|
20
27
|
],
|
21
28
|
"author": "Miloš Mirković",
|
22
29
|
"license": "ISC",
|