@lib-q/ring 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 +21 -18
- package/integrity-manifest.json +2 -2
- package/nodejs/README.md +18 -18
- package/nodejs/lib_q_ring_bg.wasm +0 -0
- package/nodejs/package.json +2 -2
- package/package.json +2 -2
- package/web/README.md +18 -18
- package/web/lib_q_ring_bg.wasm +0 -0
- package/web/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
# lib-q-ring
|
|
2
|
-
|
|
3
|
-
Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
|
|
4
|
-
|
|
5
|
-
## Contents
|
|
6
|
-
|
|
7
|
-
- Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
|
|
8
|
-
- Polynomial types `Poly` / `NttPoly`, module vectors and matrices
|
|
9
|
-
- SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
|
|
10
|
-
|
|
11
|
-
## Features
|
|
12
|
-
|
|
13
|
-
- `default`: `alloc`
|
|
14
|
-
- `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
|
|
15
|
-
|
|
16
|
-
## Security
|
|
17
|
-
|
|
18
|
-
This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
|
|
1
|
+
# lib-q-ring
|
|
2
|
+
|
|
3
|
+
Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
|
|
8
|
+
- Polynomial types `Poly` / `NttPoly`, module vectors and matrices
|
|
9
|
+
- SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- `default`: `alloc`
|
|
14
|
+
- `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
|
|
15
|
+
|
|
16
|
+
## Security
|
|
17
|
+
|
|
18
|
+
This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
|
|
19
|
+
|
|
20
|
+
## Subresource integrity (SHA-384)
|
|
21
|
+
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_ring_bg.wasm": "sha384-
|
|
4
|
-
"web/lib_q_ring_bg.wasm": "sha384-
|
|
3
|
+
"nodejs/lib_q_ring_bg.wasm": "sha384-rPzUbb4htifKJ410d2SEfYazVIhpwHaUGI0UbW96XA3TWObP7LrRwvjqJV9p7Kby",
|
|
4
|
+
"web/lib_q_ring_bg.wasm": "sha384-rPzUbb4htifKJ410d2SEfYazVIhpwHaUGI0UbW96XA3TWObP7LrRwvjqJV9p7Kby"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/nodejs/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# lib-q-ring
|
|
2
|
-
|
|
3
|
-
Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
|
|
4
|
-
|
|
5
|
-
## Contents
|
|
6
|
-
|
|
7
|
-
- Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
|
|
8
|
-
- Polynomial types `Poly` / `NttPoly`, module vectors and matrices
|
|
9
|
-
- SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
|
|
10
|
-
|
|
11
|
-
## Features
|
|
12
|
-
|
|
13
|
-
- `default`: `alloc`
|
|
14
|
-
- `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
|
|
15
|
-
|
|
16
|
-
## Security
|
|
17
|
-
|
|
18
|
-
This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
|
|
1
|
+
# lib-q-ring
|
|
2
|
+
|
|
3
|
+
Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
|
|
8
|
+
- Polynomial types `Poly` / `NttPoly`, module vectors and matrices
|
|
9
|
+
- SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- `default`: `alloc`
|
|
14
|
+
- `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
|
|
15
|
+
|
|
16
|
+
## Security
|
|
17
|
+
|
|
18
|
+
This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
|
|
Binary file
|
package/nodejs/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lib-q-ring",
|
|
3
3
|
"description": "Shared ring arithmetic (R_q = Z_q[X]/(X^n+1)) for FIPS 204 lattice primitives",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
7
|
"lib_q_ring_bg.wasm",
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
"ml-dsa",
|
|
18
18
|
"no-std"
|
|
19
19
|
]
|
|
20
|
-
}
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lib-q/ring",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"description": "ML-DSA ring arithmetic R_q
|
|
5
|
-
"version": "0.0.
|
|
4
|
+
"description": "ML-DSA ring arithmetic R_q for Node.js",
|
|
5
|
+
"version": "0.0.5",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"web",
|
package/web/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# lib-q-ring
|
|
2
|
-
|
|
3
|
-
Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
|
|
4
|
-
|
|
5
|
-
## Contents
|
|
6
|
-
|
|
7
|
-
- Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
|
|
8
|
-
- Polynomial types `Poly` / `NttPoly`, module vectors and matrices
|
|
9
|
-
- SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
|
|
10
|
-
|
|
11
|
-
## Features
|
|
12
|
-
|
|
13
|
-
- `default`: `alloc`
|
|
14
|
-
- `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
|
|
15
|
-
|
|
16
|
-
## Security
|
|
17
|
-
|
|
18
|
-
This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
|
|
1
|
+
# lib-q-ring
|
|
2
|
+
|
|
3
|
+
Portable negacyclic ring arithmetic for `R_q = Z_q[X]/(X^256 + 1)` with `q = 8_380_417` (FIPS 204 ML-DSA field). Shared by [**lib-q-ml-dsa**](../lib-q-ml-dsa), [**lib-q-lattice-zkp**](../lib-q-lattice-zkp), and related crates.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- Montgomery / Barrett reduction and ML-DSA NTT (forward + inverse with Montgomery scaling)
|
|
8
|
+
- Polynomial types `Poly` / `NttPoly`, module vectors and matrices
|
|
9
|
+
- SHAKE128 matrix expansion (ExpandA-style) and FIPS 204 `SampleInBall` (SHAKE256)
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- `default`: `alloc`
|
|
14
|
+
- `alloc`: enables `lib-q-sha3/alloc` for XOF buffering helpers
|
|
15
|
+
|
|
16
|
+
## Security
|
|
17
|
+
|
|
18
|
+
This crate is **research-grade** infrastructure: parameter sets and protocol security are not asserted here.
|
package/web/lib_q_ring_bg.wasm
CHANGED
|
Binary file
|
package/web/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "lib-q-ring",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Shared ring arithmetic (R_q = Z_q[X]/(X^n+1)) for FIPS 204 lattice primitives",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.5",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib_q_ring_bg.wasm",
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
"ml-dsa",
|
|
22
22
|
"no-std"
|
|
23
23
|
]
|
|
24
|
-
}
|
|
24
|
+
}
|