subtlepq 0.1.0 → 0.1.1
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/README.md +2 -2
- package/package.json +14 -5
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Post-quantum polyfill for the Web Cryptography API: ML-KEM (FIPS 203) and ML-DSA
|
|
|
9
9
|
Ponyfill (no globals touched):
|
|
10
10
|
|
|
11
11
|
```js
|
|
12
|
-
import { subtle } from "
|
|
12
|
+
import { subtle } from "subtlepq";
|
|
13
13
|
|
|
14
14
|
const { publicKey, privateKey } = await subtle.generateKey("ML-KEM-768", false,
|
|
15
15
|
["encapsulateKey", "decapsulateKey"]);
|
|
@@ -21,7 +21,7 @@ const { sharedKey, ciphertext } = await subtle.encapsulateKey("ML-KEM-768", publ
|
|
|
21
21
|
True polyfill (patches `crypto.subtle`, delegates everything non-ML to the platform, self-retires where native support exists):
|
|
22
22
|
|
|
23
23
|
```js
|
|
24
|
-
import { install } from "
|
|
24
|
+
import { install } from "subtlepq";
|
|
25
25
|
install();
|
|
26
26
|
const kp = await crypto.subtle.generateKey("ML-DSA-65", false, ["sign", "verify"]);
|
|
27
27
|
const sig = await crypto.subtle.sign({ name: "ML-DSA-65", context: ctx }, kp.privateKey, data);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "subtlepq",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Post-quantum polyfill for the Web Cryptography API: ML-KEM (FIPS 203) and ML-DSA (FIPS 204) per the WICG Modern Algorithms draft, with native delegation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,8 +30,17 @@
|
|
|
30
30
|
"test": "node test/engine-test.mjs && node test/polyfill-test.mjs"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
33
|
-
"ml-kem",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
33
|
+
"ml-kem",
|
|
34
|
+
"ml-dsa",
|
|
35
|
+
"webcrypto",
|
|
36
|
+
"polyfill",
|
|
37
|
+
"post-quantum",
|
|
38
|
+
"fips203",
|
|
39
|
+
"fips204",
|
|
40
|
+
"kyber",
|
|
41
|
+
"dilithium",
|
|
42
|
+
"subtlecrypto",
|
|
43
|
+
"encapsulation",
|
|
44
|
+
"kem"
|
|
36
45
|
]
|
|
37
|
-
}
|
|
46
|
+
}
|