@noble/post-quantum 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,167 @@
1
+ /*! noble-post-quantum - MIT License (c) 2024 Paul Miller (paulmillr.com) */
2
+ import { unsafe } from '@noble/ciphers/aes';
3
+ import { shake128, shake256 } from '@noble/hashes/sha3';
4
+ import { getMask } from './utils.js';
5
+ // TODO: benchmark
6
+ function bitReversal(n, bits = 8) {
7
+ const padded = n.toString(2).padStart(8, '0');
8
+ const sliced = padded.slice(-bits).padStart(7, '0');
9
+ const revrsd = sliced.split('').reverse().join('');
10
+ return Number.parseInt(revrsd, 2);
11
+ }
12
+ export const genCrystals = (opts) => {
13
+ // isKyber: true means Kyber, false means Dilithium
14
+ const { newPoly, N, Q, F, ROOT_OF_UNITY, brvBits, isKyber } = opts;
15
+ const mod = (a, modulo = Q) => {
16
+ const result = a % modulo | 0;
17
+ return (result >= 0 ? result | 0 : (modulo + result) | 0) | 0;
18
+ };
19
+ // -(Q-1)/2 < a <= (Q-1)/2
20
+ const smod = (a, modulo = Q) => {
21
+ const r = mod(a, modulo) | 0;
22
+ return (r > modulo >> 1 ? (r - modulo) | 0 : r) | 0;
23
+ };
24
+ // Generate zettas
25
+ function getZettas() {
26
+ const out = newPoly(N);
27
+ for (let i = 0; i < N; i++) {
28
+ const b = bitReversal(i, brvBits);
29
+ const p = BigInt(ROOT_OF_UNITY) ** BigInt(b) % BigInt(Q);
30
+ out[i] = Number(p) | 0;
31
+ }
32
+ return out;
33
+ }
34
+ const nttZetas = getZettas();
35
+ // Number-Theoretic Transform
36
+ // Explained: https://electricdusk.com/ntt.html
37
+ // Kyber has slightly different params, since there is no 512th primitive root of unity mod q,
38
+ // only 256th primitive root of unity mod. Which also complicates MultiplyNTT.
39
+ // TODO: there should be less ugly way to define this.
40
+ const LEN1 = isKyber ? 128 : N;
41
+ const LEN2 = isKyber ? 1 : 0;
42
+ const NTT = {
43
+ encode: (r) => {
44
+ for (let k = 1, len = 128; len > LEN2; len >>= 1) {
45
+ for (let start = 0; start < N; start += 2 * len) {
46
+ const zeta = nttZetas[k++];
47
+ for (let j = start; j < start + len; j++) {
48
+ const t = mod(zeta * r[j + len]);
49
+ r[j + len] = mod(r[j] - t) | 0;
50
+ r[j] = mod(r[j] + t) | 0;
51
+ }
52
+ }
53
+ }
54
+ return r;
55
+ },
56
+ decode: (r) => {
57
+ for (let k = LEN1 - 1, len = 1 + LEN2; len < LEN1 + LEN2; len <<= 1) {
58
+ for (let start = 0; start < N; start += 2 * len) {
59
+ const zeta = nttZetas[k--];
60
+ for (let j = start; j < start + len; j++) {
61
+ const t = r[j];
62
+ r[j] = mod(t + r[j + len]);
63
+ r[j + len] = mod(zeta * (r[j + len] - t));
64
+ }
65
+ }
66
+ }
67
+ for (let i = 0; i < r.length; i++)
68
+ r[i] = mod(F * r[i]);
69
+ return r;
70
+ },
71
+ };
72
+ // Encode polynominal as bits
73
+ const bitsCoder = (d, c) => {
74
+ const mask = getMask(d);
75
+ const bytesLen = d * (N / 8);
76
+ return {
77
+ bytesLen,
78
+ encode: (poly) => {
79
+ const r = new Uint8Array(bytesLen);
80
+ for (let i = 0, buf = 0, bufLen = 0, pos = 0; i < poly.length; i++) {
81
+ buf |= (c.encode(poly[i]) & mask) << bufLen;
82
+ bufLen += d;
83
+ for (; bufLen >= 8; bufLen -= 8, buf >>= 8)
84
+ r[pos++] = buf & getMask(bufLen);
85
+ }
86
+ return r;
87
+ },
88
+ decode: (bytes) => {
89
+ const r = newPoly(N);
90
+ for (let i = 0, buf = 0, bufLen = 0, pos = 0; i < bytes.length; i++) {
91
+ buf |= bytes[i] << bufLen;
92
+ bufLen += 8;
93
+ for (; bufLen >= d; bufLen -= d, buf >>= d)
94
+ r[pos++] = c.decode(buf & mask);
95
+ }
96
+ return r;
97
+ },
98
+ };
99
+ };
100
+ return { mod, smod, nttZetas, NTT, bitsCoder };
101
+ };
102
+ const createXofShake = (shake) => (seed, blockLen) => {
103
+ if (!blockLen)
104
+ blockLen = shake.blockLen;
105
+ // Optimizations that won't mater:
106
+ // - cached seed update (two .update(), on start and on the end)
107
+ // - another cache which cloned into working copy
108
+ // Faster than multiple updates, since seed less than blockLen
109
+ const _seed = new Uint8Array(seed.length + 2);
110
+ _seed.set(seed);
111
+ const seedLen = seed.length;
112
+ const buf = new Uint8Array(blockLen); // == shake128.blockLen
113
+ let h = shake.create({});
114
+ let calls = 0;
115
+ let xofs = 0;
116
+ return {
117
+ stats: () => ({ calls, xofs }),
118
+ get: (x, y) => {
119
+ _seed[seedLen + 0] = x;
120
+ _seed[seedLen + 1] = y;
121
+ h.destroy();
122
+ h = shake.create({}).update(_seed);
123
+ calls++;
124
+ return () => {
125
+ xofs++;
126
+ return h.xofInto(buf);
127
+ };
128
+ },
129
+ clean: () => {
130
+ h.destroy();
131
+ buf.fill(0);
132
+ _seed.fill(0);
133
+ },
134
+ };
135
+ };
136
+ export const XOF128 = /* @__PURE__ */ createXofShake(shake128);
137
+ export const XOF256 = /* @__PURE__ */ createXofShake(shake256);
138
+ const createXofAes = (aes) => (seed, blockLen) => {
139
+ if (!blockLen)
140
+ blockLen = 16 * 3; // 288
141
+ const nonce = new Uint8Array(16);
142
+ const xk = aes.expandKeyLE(seed.subarray(0, 32));
143
+ const block = new Uint8Array(blockLen);
144
+ const out = block.slice();
145
+ let calls = 0;
146
+ let xofs = 0;
147
+ return {
148
+ stats: () => ({ calls, xofs }),
149
+ get: (x, y) => {
150
+ nonce.fill(0); // clean counter
151
+ nonce[0] = x;
152
+ nonce[1] = y;
153
+ calls++;
154
+ return () => {
155
+ xofs++;
156
+ return aes.ctrCounter(xk, nonce, block, out);
157
+ };
158
+ },
159
+ clean: () => {
160
+ nonce.fill(0);
161
+ xk.fill(0);
162
+ out.fill(0);
163
+ },
164
+ };
165
+ };
166
+ export const XOF_AES = /* @__PURE__ */ createXofAes(unsafe);
167
+ //# sourceMappingURL=_crystals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_crystals.js","sourceRoot":"","sources":["../src/_crystals.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,eAAe,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC"}
package/esm/index.js ADDED
@@ -0,0 +1,3 @@
1
+ throw new Error('noble-post-quantum has no entry-point: consult README for usage');
2
+ export {};
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC"}