@lib-q/utils 0.0.2 → 0.0.5
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 +18 -2
- package/integrity-manifest.json +2 -2
- package/nodejs/README.md +329 -322
- package/nodejs/lib_q_utils_bg.wasm +0 -0
- package/nodejs/package.json +2 -2
- package/package.json +1 -1
- package/web/README.md +329 -322
- package/web/lib_q_utils_bg.wasm +0 -0
- package/web/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,8 +5,24 @@ Utility functions for post-quantum cryptography
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @lib-q/utils@0.0.
|
|
8
|
+
npm install @lib-q/utils@0.0.5
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## Runtime targets
|
|
12
|
+
|
|
13
|
+
When both **web** and **nodejs** wasm-pack outputs are published, `package.json` uses conditional `exports`: bundlers use `browser` / `module`; Node uses `node`.
|
|
14
|
+
|
|
15
|
+
## Content Security Policy (browser)
|
|
16
|
+
|
|
17
|
+
WASM instantiation requires CSP rules compatible with your loader (often `script-src` including `'wasm-unsafe-eval'` or equivalent). See [wasm-security-model](https://github.com/Enkom-Tech/libQ/blob/main/docs/wasm-security-model.md).
|
|
18
|
+
|
|
19
|
+
## Security
|
|
20
|
+
|
|
21
|
+
NIST-oriented post-quantum cryptography only; see [wasm-security-model](https://github.com/Enkom-Tech/libQ/blob/main/docs/wasm-security-model.md) for WASM linear memory, CSP, SRI, and timing notes.
|
|
22
|
+
|
|
23
|
+
## Types
|
|
24
|
+
|
|
25
|
+
Shared TypeScript shapes: [`@lib-q/types`](https://www.npmjs.com/package/@lib-q/types).
|
|
26
|
+
|
|
11
27
|
## Subresource integrity (SHA-384)
|
|
12
|
-
Paths in `integrity-manifest.json` are relative to the package root.
|
|
28
|
+
Paths in `integrity-manifest.json` are relative to the package root (including `web/` and `nodejs/` when both ship).
|
package/integrity-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"integrity": {
|
|
3
|
-
"nodejs/lib_q_utils_bg.wasm": "sha384-
|
|
4
|
-
"web/lib_q_utils_bg.wasm": "sha384-
|
|
3
|
+
"nodejs/lib_q_utils_bg.wasm": "sha384-7u/P1J6oXycpxjPT/rqHM67pxfq1tIOC/+DzyKxmkZ7SeV0yLu1NxZV5nlVJvxc4",
|
|
4
|
+
"web/lib_q_utils_bg.wasm": "sha384-7u/P1J6oXycpxjPT/rqHM67pxfq1tIOC/+DzyKxmkZ7SeV0yLu1NxZV5nlVJvxc4"
|
|
5
5
|
}
|
|
6
6
|
}
|