@noble/post-quantum 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +154 -179
- package/_crystals.d.ts +0 -1
- package/_crystals.d.ts.map +1 -1
- package/_crystals.js +1 -31
- package/_crystals.js.map +1 -1
- package/esm/_crystals.d.ts +33 -0
- package/esm/_crystals.d.ts.map +1 -0
- package/esm/_crystals.js +0 -30
- package/esm/_crystals.js.map +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/ml-dsa.d.ts +17 -0
- package/esm/ml-dsa.d.ts.map +1 -0
- package/esm/ml-dsa.js +35 -84
- package/esm/ml-dsa.js.map +1 -1
- package/esm/ml-kem.d.ts +55 -0
- package/esm/ml-kem.d.ts.map +1 -0
- package/esm/ml-kem.js +26 -83
- package/esm/ml-kem.js.map +1 -1
- package/esm/slh-dsa.d.ts +46 -0
- package/esm/slh-dsa.d.ts.map +1 -0
- package/esm/slh-dsa.js +26 -109
- package/esm/slh-dsa.js.map +1 -1
- package/esm/utils.d.ts +38 -0
- package/esm/utils.d.ts.map +1 -0
- package/ml-dsa.d.ts +0 -20
- package/ml-dsa.d.ts.map +1 -1
- package/ml-dsa.js +35 -84
- package/ml-dsa.js.map +1 -1
- package/ml-kem.d.ts +1 -80
- package/ml-kem.d.ts.map +1 -1
- package/ml-kem.js +26 -83
- package/ml-kem.js.map +1 -1
- package/package.json +13 -21
- package/slh-dsa.d.ts +0 -24
- package/slh-dsa.d.ts.map +1 -1
- package/slh-dsa.js +26 -109
- package/slh-dsa.js.map +1 -1
- package/src/_crystals.ts +0 -33
- package/src/ml-dsa.ts +36 -88
- package/src/ml-kem.ts +28 -87
- package/src/slh-dsa.ts +26 -119
- package/utils.js +6 -6
- package/utils.js.map +1 -1
package/esm/ml-kem.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ml-kem.js","sourceRoot":"","sources":["../src/ml-kem.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,E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Ae,EAAE,KAAa;IAC7D,OAAO,QAAQ;SACZ,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;SACjB,MAAM,CAAC,GAAG,CAAC;SACX,MAAM,CAAC,IAAI,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;SAC/B,MAAM,EAAE,CAAC;AACd,CAAC;AAED,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,QAAQ;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC,WAAW,CAAC;IACnD,GAAG,IAAI;IACP,GAAG,MAAM,CAAC,GAAG,CAAC;CACf,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC,WAAW,CAAC;IACnD,GAAG,IAAI;IACP,GAAG,MAAM,CAAC,GAAG,CAAC;CACf,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,WAAW,CAAC;IACpD,GAAG,IAAI;IACP,GAAG,MAAM,CAAC,IAAI,CAAC;CAChB,CAAC,CAAC"}
|
package/esm/slh-dsa.d.ts
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
import { Signer } from './utils.js';
|
2
|
+
/**
|
3
|
+
* * N: Security parameter (in bytes). W: Winternitz parameter
|
4
|
+
* * H: Hypertree height. D: Hypertree layers
|
5
|
+
* * K: FORS trees numbers. A: FORS trees height
|
6
|
+
*/
|
7
|
+
export type SphincsOpts = {
|
8
|
+
N: number;
|
9
|
+
W: number;
|
10
|
+
H: number;
|
11
|
+
D: number;
|
12
|
+
K: number;
|
13
|
+
A: number;
|
14
|
+
};
|
15
|
+
export type SphincsHashOpts = {
|
16
|
+
isCompressed?: boolean;
|
17
|
+
getContext: GetContext;
|
18
|
+
};
|
19
|
+
export declare const PARAMS: Record<string, SphincsOpts>;
|
20
|
+
export type ADRS = Uint8Array;
|
21
|
+
type Context = {
|
22
|
+
PRFaddr: (addr: ADRS) => Uint8Array;
|
23
|
+
PRFmsg: (skPRF: Uint8Array, random: Uint8Array, msg: Uint8Array) => Uint8Array;
|
24
|
+
Hmsg: (R: Uint8Array, pk: Uint8Array, m: Uint8Array, outLen: number) => Uint8Array;
|
25
|
+
thash1: (input: Uint8Array, addr: ADRS) => Uint8Array;
|
26
|
+
thashN: (blocks: number, input: Uint8Array, addr: ADRS) => Uint8Array;
|
27
|
+
clean: () => void;
|
28
|
+
};
|
29
|
+
export type GetContext = (opts: SphincsOpts) => (pub_seed: Uint8Array, sk_seed?: Uint8Array) => Context;
|
30
|
+
type SphincsSigner = Signer & {
|
31
|
+
seedLen: number;
|
32
|
+
};
|
33
|
+
export declare const slh_dsa_shake_128f: SphincsSigner;
|
34
|
+
export declare const slh_dsa_shake_128s: SphincsSigner;
|
35
|
+
export declare const slh_dsa_shake_192f: SphincsSigner;
|
36
|
+
export declare const slh_dsa_shake_192s: SphincsSigner;
|
37
|
+
export declare const slh_dsa_shake_256f: SphincsSigner;
|
38
|
+
export declare const slh_dsa_shake_256s: SphincsSigner;
|
39
|
+
export declare const slh_dsa_sha2_128f: SphincsSigner;
|
40
|
+
export declare const slh_dsa_sha2_128s: SphincsSigner;
|
41
|
+
export declare const slh_dsa_sha2_192f: SphincsSigner;
|
42
|
+
export declare const slh_dsa_sha2_192s: SphincsSigner;
|
43
|
+
export declare const slh_dsa_sha2_256f: SphincsSigner;
|
44
|
+
export declare const slh_dsa_sha2_256s: SphincsSigner;
|
45
|
+
export {};
|
46
|
+
//# sourceMappingURL=slh-dsa.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"slh-dsa.d.ts","sourceRoot":"","sources":["../src/slh-dsa.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,MAAM,EAQP,MAAM,YAAY,CAAC;AA+BpB;;;;GAIG;AACH,MAAM,MAAM,WAA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CAAC;AACpF,eAAO,MAAM,kBAAkB,eAAoD,CAAC;AACpF,eAAO,MAAM,kBAAkB,eAAoD,CAAC;AACpF,eAAO,MAAM,kBAAkB,eAAoD,CAAC;AACpF,eAAO,MAAM,kBAAkB,eAAoD,CAAC;AACpF,eAAO,MAAM,kBAAkB,eAAoD,CAAC;AAqGpF,eAAO,MAAM,iBAAiB,eAAqD,CAAC;AACpF,eAAO,MAAM,iBAAiB,eAAqD,CAAC;AACpF,eAAO,MAAM,iBAAiB,eAAqD,CAAC;AACpF,eAAO,MAAM,iBAAiB,eAAqD,CAAC;AACpF,eAAO,MAAM,iBAAiB,eAAqD,CAAC;AACpF,eAAO,MAAM,iBAAiB,eAAqD,CAAC"}
|
package/esm/slh-dsa.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
import { HMAC } from '@noble/hashes/hmac';
|
3
3
|
import { sha256, sha512 } from '@noble/hashes/sha2';
|
4
4
|
import { shake256 } from '@noble/hashes/sha3';
|
5
|
-
import { bytesToHex, hexToBytes, createView, concatBytes
|
5
|
+
import { bytesToHex, hexToBytes, createView, concatBytes } from '@noble/hashes/utils';
|
6
6
|
import { cleanBytes, ensureBytes, equalBytes, getMask, randomBytes, splitCoder, vecCoder, } from './utils.js';
|
7
7
|
export const PARAMS = {
|
8
8
|
'128f': { W: 16, N: 16, H: 66, D: 22, K: 33, A: 6 },
|
@@ -25,34 +25,20 @@ function bytesToNumberBE(bytes) {
|
|
25
25
|
function numberToBytesBE(n, len) {
|
26
26
|
return hexToBytes(n.toString(16).padStart(len * 2, '0'));
|
27
27
|
}
|
28
|
-
// Same as bitsCoder.decode, but bits are BE instead of LE (so we cannot re-use it).
|
29
|
-
// NOTE: difference happens only if d < 8.
|
30
|
-
const base_2bBE = (N, d) => {
|
31
|
-
const mask = getMask(d);
|
32
|
-
return (bytes) => {
|
33
|
-
const r = new Uint32Array(N);
|
34
|
-
for (let i = 0, buf = 0, bufLen = 0, pos = 0; i < bytes.length; i++) {
|
35
|
-
buf |= bytes[i] << bufLen;
|
36
|
-
bufLen += 8;
|
37
|
-
for (; bufLen >= d; bufLen -= d)
|
38
|
-
r[pos++] = (buf >>> (bufLen - d)) & mask;
|
39
|
-
buf &= getMask(bufLen);
|
40
|
-
}
|
41
|
-
return r;
|
42
|
-
};
|
43
|
-
};
|
44
28
|
// Same as bitsCoder.decode, but maybe spec will change and unify with base2bBE.
|
45
|
-
const
|
46
|
-
const mask = getMask(
|
29
|
+
const base2b = (outLen, b) => {
|
30
|
+
const mask = getMask(b);
|
47
31
|
return (bytes) => {
|
48
|
-
const
|
49
|
-
for (let
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
32
|
+
const baseB = new Uint32Array(outLen);
|
33
|
+
for (let out = 0, pos = 0, bits = 0, total = 0; out < outLen; out++) {
|
34
|
+
while (bits < b) {
|
35
|
+
total = (total << 8) | bytes[pos++];
|
36
|
+
bits += 8;
|
37
|
+
}
|
38
|
+
bits -= b;
|
39
|
+
baseB[out] = (total >>> bits) & mask;
|
54
40
|
}
|
55
|
-
return
|
41
|
+
return baseB;
|
56
42
|
};
|
57
43
|
};
|
58
44
|
function getMaskBig(bits) {
|
@@ -121,9 +107,9 @@ function gen(opts, hashOpts) {
|
|
121
107
|
}
|
122
108
|
return addr;
|
123
109
|
};
|
124
|
-
const chainCoder =
|
110
|
+
const chainCoder = base2b(WOTS_LEN2, WOTS_LOGW);
|
125
111
|
const chainLengths = (msg) => {
|
126
|
-
const W1 =
|
112
|
+
const W1 = base2b(WOTS_LEN1, WOTS_LOGW)(msg);
|
127
113
|
let csum = 0;
|
128
114
|
for (let i = 0; i < W1.length; i++)
|
129
115
|
csum += W - 1 - W1[i]; // ▷ Compute checksum
|
@@ -136,9 +122,7 @@ function gen(opts, hashOpts) {
|
|
136
122
|
lengths.set(W2, W1.length);
|
137
123
|
return lengths;
|
138
124
|
};
|
139
|
-
|
140
|
-
const msgCoder = base_2bLE(K, A);
|
141
|
-
const messageToIndices = (msg) => msgCoder(msg);
|
125
|
+
const messageToIndices = base2b(K, A);
|
142
126
|
const TREE_BITS = TREE_HEIGHT * (D - 1);
|
143
127
|
const LEAF_BITS = TREE_HEIGHT;
|
144
128
|
const hashMsgCoder = splitCoder(Math.ceil((A * K) / 8), Math.ceil(TREE_BITS / 8), Math.ceil(TREE_HEIGHT / 8));
|
@@ -395,13 +379,12 @@ function gen(opts, hashOpts) {
|
|
395
379
|
},
|
396
380
|
};
|
397
381
|
}
|
398
|
-
const genShake = (
|
399
|
-
const ADDR_BYTES = 32;
|
382
|
+
const genShake = () => (opts) => (pubSeed, skSeed) => {
|
400
383
|
const { N } = opts;
|
401
384
|
const stats = { prf: 0, thash: 0, hmsg: 0, gen_message_random: 0 };
|
402
385
|
const h0 = shake256.create({}).update(pubSeed);
|
403
386
|
const h0tmp = h0.clone();
|
404
|
-
const
|
387
|
+
const thash = (blocks, input, addr) => {
|
405
388
|
stats.thash++;
|
406
389
|
return h0
|
407
390
|
._cloneInto(h0tmp)
|
@@ -409,26 +392,13 @@ const genShake = (robust) => (opts) => (pubSeed, skSeed) => {
|
|
409
392
|
.update(input.subarray(0, blocks * N))
|
410
393
|
.xof(N);
|
411
394
|
};
|
412
|
-
const thash_robust = (blocks, input, addr) => {
|
413
|
-
stats.thash++;
|
414
|
-
const buf = new Uint8Array(ADDR_BYTES + (blocks + 1) * N);
|
415
|
-
buf.subarray(0, N).set(pubSeed);
|
416
|
-
buf.subarray(N, N + ADDR_BYTES).set(addr);
|
417
|
-
shake256
|
418
|
-
.create({})
|
419
|
-
.update(buf.subarray(0, N + ADDR_BYTES))
|
420
|
-
.xofInto(buf.subarray(N + ADDR_BYTES));
|
421
|
-
for (let i = 0; i < blocks * N; i++)
|
422
|
-
buf[N + ADDR_BYTES + i] ^= input[i];
|
423
|
-
return shake256.create({}).update(buf).xof(N);
|
424
|
-
};
|
425
|
-
const thash = robust ? thash_robust : thash_simple;
|
426
395
|
return {
|
427
396
|
PRFaddr: (addr) => {
|
428
397
|
if (!skSeed)
|
429
398
|
throw new Error('no sk seed');
|
430
399
|
stats.prf++;
|
431
|
-
|
400
|
+
const res = h0._cloneInto(h0tmp).update(addr).update(skSeed).xof(N);
|
401
|
+
return res;
|
432
402
|
},
|
433
403
|
PRFmsg: (skPRF, random, msg) => {
|
434
404
|
stats.gen_message_random++;
|
@@ -447,20 +417,7 @@ const genShake = (robust) => (opts) => (pubSeed, skSeed) => {
|
|
447
417
|
},
|
448
418
|
};
|
449
419
|
};
|
450
|
-
const SHAKE_SIMPLE = { getContext: genShake(
|
451
|
-
const SHAKE_ROBUST = { getContext: genShake(true) };
|
452
|
-
export const sphincs_shake_128f_simple = /* @__PURE__ */ gen(PARAMS['128f'], SHAKE_SIMPLE);
|
453
|
-
export const sphincs_shake_128f_robust = /* @__PURE__ */ gen(PARAMS['128f'], SHAKE_ROBUST);
|
454
|
-
export const sphincs_shake_128s_simple = /* @__PURE__ */ gen(PARAMS['128s'], SHAKE_SIMPLE);
|
455
|
-
export const sphincs_shake_128s_robust = /* @__PURE__ */ gen(PARAMS['128s'], SHAKE_ROBUST);
|
456
|
-
export const sphincs_shake_192f_simple = /* @__PURE__ */ gen(PARAMS['192f'], SHAKE_SIMPLE);
|
457
|
-
export const sphincs_shake_192f_robust = /* @__PURE__ */ gen(PARAMS['192f'], SHAKE_ROBUST);
|
458
|
-
export const sphincs_shake_192s_simple = /* @__PURE__ */ gen(PARAMS['192s'], SHAKE_SIMPLE);
|
459
|
-
export const sphincs_shake_192s_robust = /* @__PURE__ */ gen(PARAMS['192s'], SHAKE_ROBUST);
|
460
|
-
export const sphincs_shake_256f_simple = /* @__PURE__ */ gen(PARAMS['256f'], SHAKE_SIMPLE);
|
461
|
-
export const sphincs_shake_256f_robust = /* @__PURE__ */ gen(PARAMS['256f'], SHAKE_ROBUST);
|
462
|
-
export const sphincs_shake_256s_simple = /* @__PURE__ */ gen(PARAMS['256s'], SHAKE_SIMPLE);
|
463
|
-
export const sphincs_shake_256s_robust = /* @__PURE__ */ gen(PARAMS['256s'], SHAKE_ROBUST);
|
420
|
+
const SHAKE_SIMPLE = { getContext: genShake() };
|
464
421
|
// Only simple mode in SLH-DSA
|
465
422
|
export const slh_dsa_shake_128f = /* @__PURE__ */ gen(PARAMS['128f'], SHAKE_SIMPLE);
|
466
423
|
export const slh_dsa_shake_128s = /* @__PURE__ */ gen(PARAMS['128s'], SHAKE_SIMPLE);
|
@@ -468,7 +425,7 @@ export const slh_dsa_shake_192f = /* @__PURE__ */ gen(PARAMS['192f'], SHAKE_SIMP
|
|
468
425
|
export const slh_dsa_shake_192s = /* @__PURE__ */ gen(PARAMS['192s'], SHAKE_SIMPLE);
|
469
426
|
export const slh_dsa_shake_256f = /* @__PURE__ */ gen(PARAMS['256f'], SHAKE_SIMPLE);
|
470
427
|
export const slh_dsa_shake_256s = /* @__PURE__ */ gen(PARAMS['256s'], SHAKE_SIMPLE);
|
471
|
-
const genSha = (h0, h1
|
428
|
+
const genSha = (h0, h1) => (opts) => (pub_seed, sk_seed) => {
|
472
429
|
const { N } = opts;
|
473
430
|
/*
|
474
431
|
Perf debug stats, how much hashes we call?
|
@@ -502,7 +459,7 @@ const genSha = (h0, h1, robust) => (opts) => (pub_seed, sk_seed) => {
|
|
502
459
|
out.subarray(length).fill(0);
|
503
460
|
return out.subarray(0, length);
|
504
461
|
}
|
505
|
-
const
|
462
|
+
const thash = (_, h, hTmp) => (blocks, input, addr) => {
|
506
463
|
stats.thash++;
|
507
464
|
const d = h
|
508
465
|
._cloneInto(hTmp)
|
@@ -511,38 +468,18 @@ const genSha = (h0, h1, robust) => (opts) => (pub_seed, sk_seed) => {
|
|
511
468
|
.digest();
|
512
469
|
return d.subarray(0, N);
|
513
470
|
};
|
514
|
-
const thash_robust = (sha, h, _) => (blocks, input, addr) => {
|
515
|
-
stats.thash++;
|
516
|
-
stats.mgf1++;
|
517
|
-
// inlined mgf1
|
518
|
-
const addr8 = addr;
|
519
|
-
const hh = sha.create().update(pub_seed).update(addr8);
|
520
|
-
let bitmask = new Uint8Array(Math.ceil((blocks * N) / sha.outputLen) * sha.outputLen);
|
521
|
-
for (let counter = 0, o = bitmask; o.length; counter++) {
|
522
|
-
counterV.setUint32(0, counter, false);
|
523
|
-
hh.clone().update(counterB).digestInto(o);
|
524
|
-
o = o.subarray(sha.outputLen);
|
525
|
-
}
|
526
|
-
bitmask = bitmask.subarray(0, blocks * N);
|
527
|
-
const ou32 = u32(input);
|
528
|
-
const bm32 = u32(bitmask);
|
529
|
-
for (let i = 0; i < bm32.length; i++)
|
530
|
-
bm32[i] ^= ou32[i];
|
531
|
-
const d = h.clone().update(addr8).update(bitmask).digest();
|
532
|
-
return d.subarray(0, N);
|
533
|
-
};
|
534
|
-
const thash = robust ? thash_robust : thash_simple;
|
535
471
|
return {
|
536
472
|
PRFaddr: (addr) => {
|
537
473
|
if (!sk_seed)
|
538
474
|
throw new Error('No sk seed');
|
539
475
|
stats.prf++;
|
540
|
-
|
476
|
+
const res = h0ps
|
541
477
|
._cloneInto(h0tmp)
|
542
478
|
.update(addr)
|
543
479
|
.update(sk_seed)
|
544
480
|
.digest()
|
545
481
|
.subarray(0, N);
|
482
|
+
return res;
|
546
483
|
},
|
547
484
|
PRFmsg: (skPRF, random, msg) => {
|
548
485
|
stats.gen_message_random++;
|
@@ -566,32 +503,12 @@ const genSha = (h0, h1, robust) => (opts) => (pub_seed, sk_seed) => {
|
|
566
503
|
};
|
567
504
|
const SHA256_SIMPLE = {
|
568
505
|
isCompressed: true,
|
569
|
-
getContext: genSha(sha256, sha256
|
570
|
-
};
|
571
|
-
const SHA256_ROBUST = {
|
572
|
-
isCompressed: true,
|
573
|
-
getContext: genSha(sha256, sha256, true),
|
506
|
+
getContext: genSha(sha256, sha256),
|
574
507
|
};
|
575
508
|
const SHA512_SIMPLE = {
|
576
509
|
isCompressed: true,
|
577
|
-
getContext: genSha(sha256, sha512
|
578
|
-
};
|
579
|
-
const SHA512_ROBUST = {
|
580
|
-
isCompressed: true,
|
581
|
-
getContext: genSha(sha256, sha512, true),
|
510
|
+
getContext: genSha(sha256, sha512),
|
582
511
|
};
|
583
|
-
export const sphincs_sha2_128f_simple = /* @__PURE__ */ gen(PARAMS['128f'], SHA256_SIMPLE);
|
584
|
-
export const sphincs_sha2_128f_robust = /* @__PURE__ */ gen(PARAMS['128f'], SHA256_ROBUST);
|
585
|
-
export const sphincs_sha2_128s_simple = /* @__PURE__ */ gen(PARAMS['128s'], SHA256_SIMPLE);
|
586
|
-
export const sphincs_sha2_128s_robust = /* @__PURE__ */ gen(PARAMS['128s'], SHA256_ROBUST);
|
587
|
-
export const sphincs_sha2_192f_simple = /* @__PURE__ */ gen(PARAMS['192f'], SHA512_SIMPLE);
|
588
|
-
export const sphincs_sha2_192f_robust = /* @__PURE__ */ gen(PARAMS['192f'], SHA512_ROBUST);
|
589
|
-
export const sphincs_sha2_192s_simple = /* @__PURE__ */ gen(PARAMS['192s'], SHA512_SIMPLE);
|
590
|
-
export const sphincs_sha2_192s_robust = /* @__PURE__ */ gen(PARAMS['192s'], SHA512_ROBUST);
|
591
|
-
export const sphincs_sha2_256f_simple = /* @__PURE__ */ gen(PARAMS['256f'], SHA512_SIMPLE);
|
592
|
-
export const sphincs_sha2_256f_robust = /* @__PURE__ */ gen(PARAMS['256f'], SHA512_ROBUST);
|
593
|
-
export const sphincs_sha2_256s_simple = /* @__PURE__ */ gen(PARAMS['256s'], SHA512_SIMPLE);
|
594
|
-
export const sphincs_sha2_256s_robust = /* @__PURE__ */ gen(PARAMS['256s'], SHA512_ROBUST);
|
595
512
|
// Only simple mode in SLH-DSA
|
596
513
|
export const slh_dsa_sha2_128f = /* @__PURE__ */ gen(PARAMS['128f'], SHA256_SIMPLE);
|
597
514
|
export const slh_dsa_sha2_128s = /* @__PURE__ */ gen(PARAMS['128s'], SHA256_SIMPLE);
|
package/esm/slh-dsa.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slh-dsa.js","sourceRoot":"","sources":["../src/slh-dsa.ts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MAAM,iBAAiB,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC"}
|
package/esm/utils.d.ts
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
/*! noble-post-quantum - MIT License (c) 2024 Paul Miller (paulmillr.com) */
|
2
|
+
import { bytes as abytes } from '@noble/hashes/_assert';
|
3
|
+
import { TypedArray, randomBytes as randb } from '@noble/hashes/utils';
|
4
|
+
export declare const ensureBytes: typeof abytes;
|
5
|
+
export declare const randomBytes: typeof randb;
|
6
|
+
export declare function equalBytes(a: Uint8Array, b: Uint8Array): boolean;
|
7
|
+
export type Signer = {
|
8
|
+
signRandBytes: number;
|
9
|
+
keygen: (seed: Uint8Array) => {
|
10
|
+
secretKey: Uint8Array;
|
11
|
+
publicKey: Uint8Array;
|
12
|
+
};
|
13
|
+
sign: (secretKey: Uint8Array, msg: Uint8Array, random?: Uint8Array) => Uint8Array;
|
14
|
+
verify: (publicKey: Uint8Array, msg: Uint8Array, sig: Uint8Array) => boolean;
|
15
|
+
};
|
16
|
+
export interface Coder<F, T> {
|
17
|
+
encode(from: F): T;
|
18
|
+
decode(to: T): F;
|
19
|
+
}
|
20
|
+
export interface BytesCoder<T> extends Coder<T, Uint8Array> {
|
21
|
+
encode: (data: T) => Uint8Array;
|
22
|
+
decode: (bytes: Uint8Array) => T;
|
23
|
+
}
|
24
|
+
export type BytesCoderLen<T> = BytesCoder<T> & {
|
25
|
+
bytesLen: number;
|
26
|
+
};
|
27
|
+
type UnCoder<T> = T extends BytesCoder<infer U> ? U : never;
|
28
|
+
type SplitOut<T extends (number | BytesCoderLen<any>)[]> = {
|
29
|
+
[K in keyof T]: T[K] extends number ? Uint8Array : UnCoder<T[K]>;
|
30
|
+
};
|
31
|
+
export declare function splitCoder<T extends (number | BytesCoderLen<any>)[]>(...lengths: T): BytesCoder<SplitOut<T>> & {
|
32
|
+
bytesLen: number;
|
33
|
+
};
|
34
|
+
export declare function vecCoder<T>(c: BytesCoderLen<T>, vecLen: number): BytesCoderLen<T[]>;
|
35
|
+
export declare function cleanBytes(...list: (TypedArray | TypedArray[])[]): void;
|
36
|
+
export declare function getMask(bits: number): number;
|
37
|
+
export {};
|
38
|
+
//# sourceMappingURL=utils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,WAAW,IAAI,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEvE,eAAO,MAAM,WAAW,eAAS,CAAC;AAClC,eAAO,MAAM,WAAW,cAAQ,CAAC;AAGjC,wBAAgB,UAAU,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,WAKtD;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,CAAC,IAAI,EAAE,UAAU,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,CAAC,EAAE,EAClE,GAAG,OAAO,EAAE,CAAC,GACZ,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CA8BhD;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC,EAAE,CAAC,CAwBnF;AAGD,wBAAgB,UAAU,CAAC,GAAG,IAAI,EAAE,CAAC,UAAU,GAAG,UAAU,EAAE,CAAC,EAAE,QAKhE;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,UAEnC"}
|
package/ml-dsa.d.ts
CHANGED
@@ -10,26 +10,6 @@ type Param = {
|
|
10
10
|
OMEGA: number;
|
11
11
|
};
|
12
12
|
export declare const PARAMS: Record<string, Param>;
|
13
|
-
export declare const dilithium_v30: {
|
14
|
-
dilithium2: Signer;
|
15
|
-
dilithium3: Signer;
|
16
|
-
dilithium5: Signer;
|
17
|
-
};
|
18
|
-
export declare const dilithium_v31: {
|
19
|
-
dilithium2: Signer;
|
20
|
-
dilithium3: Signer;
|
21
|
-
dilithium5: Signer;
|
22
|
-
};
|
23
|
-
export declare const dilithium_v30_aes: {
|
24
|
-
dilithium2: Signer;
|
25
|
-
dilithium3: Signer;
|
26
|
-
dilithium5: Signer;
|
27
|
-
};
|
28
|
-
export declare const dilithium_v31_aes: {
|
29
|
-
dilithium2: Signer;
|
30
|
-
dilithium3: Signer;
|
31
|
-
dilithium5: Signer;
|
32
|
-
};
|
33
13
|
export declare const ml_dsa44: Signer;
|
34
14
|
export declare const ml_dsa65: Signer;
|
35
15
|
export declare const ml_dsa87: Signer;
|
package/ml-dsa.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ml-dsa.d.ts","sourceRoot":"","sources":["src/ml-dsa.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,MAAM,EAOP,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"ml-dsa.d.ts","sourceRoot":"","sources":["src/ml-dsa.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,MAAM,EAOP,MAAM,YAAY,CAAC;AAwBpB,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAI/B,CAAC;AAwbX,eAAO,MAAM,QAAQ,QAOnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAOnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAOnB,CAAC"}
|