@fgv/ts-extras-argon2 5.1.0-41 → 5.1.0-43

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.
Files changed (31) hide show
  1. package/.rush/temp/{ce8febd276f3ae0c69a1a152aa1f320ae0ce9036.tar.log → ae98a2cb0f0e3676281692c1abfaad46544f548a.tar.log} +2 -2
  2. package/.rush/temp/chunked-rush-logs/ts-extras-argon2.build.chunks.jsonl +2 -2
  3. package/.rush/temp/operation/build/all.log +2 -2
  4. package/.rush/temp/operation/build/log-chunks.jsonl +2 -2
  5. package/.rush/temp/operation/build/state.json +1 -1
  6. package/dist/packlets/argon2/nodeArgon2Provider.js +8 -10
  7. package/dist/packlets/argon2/nodeArgon2Provider.js.map +1 -1
  8. package/dist/test/unit/argon2/crossRuntime.test.js +21 -0
  9. package/dist/test/unit/argon2/crossRuntime.test.js.map +1 -1
  10. package/dist/test/unit/argon2/nodeArgon2Provider.test.js +44 -0
  11. package/dist/test/unit/argon2/nodeArgon2Provider.test.js.map +1 -1
  12. package/dist/ts-extras-argon2.d.ts +5 -1
  13. package/etc/ts-extras-argon2.api.md +1 -1
  14. package/lib/packlets/argon2/nodeArgon2Provider.d.ts +5 -1
  15. package/lib/packlets/argon2/nodeArgon2Provider.d.ts.map +1 -1
  16. package/lib/packlets/argon2/nodeArgon2Provider.js +8 -10
  17. package/lib/packlets/argon2/nodeArgon2Provider.js.map +1 -1
  18. package/lib/test/unit/argon2/crossRuntime.test.js +21 -0
  19. package/lib/test/unit/argon2/crossRuntime.test.js.map +1 -1
  20. package/lib/test/unit/argon2/nodeArgon2Provider.test.js +44 -0
  21. package/lib/test/unit/argon2/nodeArgon2Provider.test.js.map +1 -1
  22. package/package.json +8 -8
  23. package/rush-logs/ts-extras-argon2.build.cache.log +1 -1
  24. package/rush-logs/ts-extras-argon2.build.log +2 -2
  25. package/src/packlets/argon2/nodeArgon2Provider.ts +13 -2
  26. package/src/test/unit/argon2/crossRuntime.test.ts +25 -0
  27. package/src/test/unit/argon2/nodeArgon2Provider.test.ts +57 -0
  28. package/temp/build/lint/_eslint-5eVG3S6w.json +3 -3
  29. package/temp/build/typescript/ts_8nwakTlr.json +1 -1
  30. package/temp/ts-extras-argon2.api.json +20 -3
  31. package/temp/ts-extras-argon2.api.md +1 -1
@@ -1,5 +1,5 @@
1
- Start time: Tue Jul 14 2026 06:13:37 GMT+0000 (Coordinated Universal Time)
2
- Invoking "/usr/bin/tar -c -f /home/runner/work/fgv/fgv/common/temp/build-cache/ce8febd276f3ae0c69a1a152aa1f320ae0ce9036-b90b202cafea7a41.temp -z --files-from=-"
1
+ Start time: Mon Jul 20 2026 00:41:15 GMT+0000 (Coordinated Universal Time)
2
+ Invoking "/usr/bin/tar -c -f /home/runner/work/fgv/fgv/common/temp/build-cache/ae98a2cb0f0e3676281692c1abfaad46544f548a-53ffc14bc26b0e1a.temp -z --files-from=-"
3
3
 
4
4
  ======= BEGIN PROCESS INPUT ======
5
5
  .rush/temp/operation/build/all.log
@@ -5,5 +5,5 @@
5
5
  {"kind":"O","text":"[build:lint] Using ESLint version 9.39.5\n"}
6
6
  {"kind":"O","text":"[build:api-extractor] Using API Extractor version 7.58.9\n"}
7
7
  {"kind":"O","text":"[build:api-extractor] Analysis will use the bundled TypeScript version 5.9.3\n"}
8
- {"kind":"O","text":" ---- build finished (14.076s) ---- \n"}
9
- {"kind":"O","text":"-------------------- Finished (14.086s) --------------------\n"}
8
+ {"kind":"O","text":" ---- build finished (14.943s) ---- \n"}
9
+ {"kind":"O","text":"-------------------- Finished (14.952s) --------------------\n"}
@@ -5,5 +5,5 @@ Invoking: heft build --clean
5
5
  [build:lint] Using ESLint version 9.39.5
6
6
  [build:api-extractor] Using API Extractor version 7.58.9
7
7
  [build:api-extractor] Analysis will use the bundled TypeScript version 5.9.3
8
- ---- build finished (14.076s) ----
9
- -------------------- Finished (14.086s) --------------------
8
+ ---- build finished (14.943s) ----
9
+ -------------------- Finished (14.952s) --------------------
@@ -5,5 +5,5 @@
5
5
  {"kind":"O","text":"[build:lint] Using ESLint version 9.39.5\n"}
6
6
  {"kind":"O","text":"[build:api-extractor] Using API Extractor version 7.58.9\n"}
7
7
  {"kind":"O","text":"[build:api-extractor] Analysis will use the bundled TypeScript version 5.9.3\n"}
8
- {"kind":"O","text":" ---- build finished (14.076s) ---- \n"}
9
- {"kind":"O","text":"-------------------- Finished (14.086s) --------------------\n"}
8
+ {"kind":"O","text":" ---- build finished (14.943s) ---- \n"}
9
+ {"kind":"O","text":"-------------------- Finished (14.952s) --------------------\n"}
@@ -1,3 +1,3 @@
1
1
  {
2
- "nonCachedDurationMs": 14978.803339999999
2
+ "nonCachedDurationMs": 15786.441210999998
3
3
  }
@@ -40,24 +40,22 @@ export class NodeArgon2Provider {
40
40
  * @param password - The password or passphrase (string or raw bytes).
41
41
  * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).
42
42
  * @param params - Argon2id parameters. All values are validated before derivation.
43
+ * @param options - Optional {@link @fgv/ts-extras#CryptoUtils.IArgon2idKeyingOptions | keyed-hashing inputs}
44
+ * (RFC 9106 secret K and/or associated data X). Both are wired through to the
45
+ * underlying `argon2` binding when present and non-empty; omitting them (or
46
+ * passing empty arrays) leaves the output byte-identical to prior behavior.
43
47
  * @returns Success with the derived key bytes, or Failure with a descriptive message.
44
48
  * @public
45
49
  */
46
- async argon2id(password, salt, params) {
50
+ async argon2id(password, salt, params, options) {
47
51
  const error = NodeArgon2Provider._validateParams(params);
48
52
  if (error !== undefined) {
49
53
  return fail(error);
50
54
  }
51
55
  return captureAsyncResult(async () => {
52
- const result = await argon2.hash(password instanceof Uint8Array ? Buffer.from(password) : password, {
53
- type: argon2.argon2id,
54
- salt: Buffer.from(salt),
55
- memoryCost: params.memoryKiB,
56
- timeCost: params.iterations,
57
- parallelism: params.parallelism,
58
- hashLength: params.outputBytes,
59
- raw: true
60
- });
56
+ const result = await argon2.hash(password instanceof Uint8Array ? Buffer.from(password) : password, Object.assign(Object.assign({ type: argon2.argon2id, salt: Buffer.from(salt), memoryCost: params.memoryKiB, timeCost: params.iterations, parallelism: params.parallelism, hashLength: params.outputBytes, raw: true }, ((options === null || options === void 0 ? void 0 : options.secret) && options.secret.length > 0 ? { secret: Buffer.from(options.secret) } : {})), ((options === null || options === void 0 ? void 0 : options.associatedData) && options.associatedData.length > 0
57
+ ? { associatedData: Buffer.from(options.associatedData) }
58
+ : {})));
61
59
  return Uint8Array.from(result);
62
60
  });
63
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"nodeArgon2Provider.js","sourceRoot":"","sources":["../../../src/packlets/argon2/nodeArgon2Provider.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;AAEZ,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAU,kBAAkB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG1E;;;;GAIG;AACH,MAAM,OAAO,kBAAkB;IAC7B,gBAAuB,CAAC;IAExB;;;;OAIG;IACI,MAAM,CAAC,MAAM;QAClB,OAAO,OAAO,CAAC,IAAI,kBAAkB,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;;;;OAQG;IACI,KAAK,CAAC,QAAQ,CACnB,QAA6B,EAC7B,IAAgB,EAChB,MAAmC;QAEnC,MAAM,KAAK,GAAG,kBAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACzD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;QAED,OAAO,kBAAkB,CAAC,KAAK,IAAI,EAAE;YACnC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,QAAQ,YAAY,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;gBAClG,IAAI,EAAE,MAAM,CAAC,QAAQ;gBACrB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBACvB,UAAU,EAAE,MAAM,CAAC,SAAS;gBAC5B,QAAQ,EAAE,MAAM,CAAC,UAAU;gBAC3B,WAAW,EAAE,MAAM,CAAC,WAAW;gBAC/B,UAAU,EAAE,MAAM,CAAC,WAAW;gBAC9B,GAAG,EAAE,IAAI;aACV,CAAC,CAAC;YACH,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,MAAM,CAAC,eAAe,CAAC,MAAmC;QAChE,IAAI,MAAM,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC;YACzB,OAAO,yCAAyC,MAAM,CAAC,SAAS,EAAE,CAAC;QACrE,CAAC;QACD,IAAI,MAAM,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC;YAC1B,OAAO,0CAA0C,MAAM,CAAC,UAAU,EAAE,CAAC;QACvE,CAAC;QACD,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,IAAI,MAAM,CAAC,WAAW,GAAG,GAAG,EAAE,CAAC;YACvD,OAAO,6CAA6C,MAAM,CAAC,WAAW,EAAE,CAAC;QAC3E,CAAC;QACD,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,EAAE,CAAC;YAC3B,OAAO,2CAA2C,MAAM,CAAC,WAAW,EAAE,CAAC;QACzE,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport * as argon2 from 'argon2';\nimport { Result, captureAsyncResult, fail, succeed } from '@fgv/ts-utils';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n/**\n * Node.js implementation of {@link @fgv/ts-extras#IArgon2idProvider} backed by the\n * `argon2` (kelektiv) native binding.\n * @public\n */\nexport class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider {\n private constructor() {}\n\n /**\n * Creates a new {@link NodeArgon2Provider} instance.\n * @returns Success with a new provider instance.\n * @public\n */\n public static create(): Result<NodeArgon2Provider> {\n return succeed(new NodeArgon2Provider());\n }\n\n /**\n * Derives a key using Argon2id.\n *\n * @param password - The password or passphrase (string or raw bytes).\n * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).\n * @param params - Argon2id parameters. All values are validated before derivation.\n * @returns Success with the derived key bytes, or Failure with a descriptive message.\n * @public\n */\n public async argon2id(\n password: Uint8Array | string,\n salt: Uint8Array,\n params: CryptoUtils.IArgon2idParams\n ): Promise<Result<Uint8Array>> {\n const error = NodeArgon2Provider._validateParams(params);\n if (error !== undefined) {\n return fail(error);\n }\n\n return captureAsyncResult(async () => {\n const result = await argon2.hash(password instanceof Uint8Array ? Buffer.from(password) : password, {\n type: argon2.argon2id,\n salt: Buffer.from(salt),\n memoryCost: params.memoryKiB,\n timeCost: params.iterations,\n parallelism: params.parallelism,\n hashLength: params.outputBytes,\n raw: true\n });\n return Uint8Array.from(result);\n });\n }\n\n private static _validateParams(params: CryptoUtils.IArgon2idParams): string | undefined {\n if (params.memoryKiB < 8) {\n return `argon2id: memoryKiB must be >= 8, got ${params.memoryKiB}`;\n }\n if (params.iterations < 1) {\n return `argon2id: iterations must be >= 1, got ${params.iterations}`;\n }\n if (params.parallelism < 1 || params.parallelism > 255) {\n return `argon2id: parallelism must be 1..255, got ${params.parallelism}`;\n }\n if (params.outputBytes < 4) {\n return `argon2id: outputBytes must be >= 4, got ${params.outputBytes}`;\n }\n return undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"nodeArgon2Provider.js","sourceRoot":"","sources":["../../../src/packlets/argon2/nodeArgon2Provider.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;AAEZ,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAU,kBAAkB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG1E;;;;GAIG;AACH,MAAM,OAAO,kBAAkB;IAC7B,gBAAuB,CAAC;IAExB;;;;OAIG;IACI,MAAM,CAAC,MAAM;QAClB,OAAO,OAAO,CAAC,IAAI,kBAAkB,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;;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AC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,MAAM,CAAC,eAAe,CAAC,MAAmC;QAChE,IAAI,MAAM,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC;YACzB,OAAO,yCAAyC,MAAM,CAAC,SAAS,EAAE,CAAC;QACrE,CAAC;QACD,IAAI,MAAM,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC;YAC1B,OAAO,0CAA0C,MAAM,CAAC,UAAU,EAAE,CAAC;QACvE,CAAC;QACD,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,IAAI,MAAM,CAAC,WAAW,GAAG,GAAG,EAAE,CAAC;YACvD,OAAO,6CAA6C,MAAM,CAAC,WAAW,EAAE,CAAC;QAC3E,CAAC;QACD,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,EAAE,CAAC;YAC3B,OAAO,2CAA2C,MAAM,CAAC,WAAW,EAAE,CAAC;QACzE,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport * as argon2 from 'argon2';\nimport { Result, captureAsyncResult, fail, succeed } from '@fgv/ts-utils';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n/**\n * Node.js implementation of {@link @fgv/ts-extras#IArgon2idProvider} backed by the\n * `argon2` (kelektiv) native binding.\n * @public\n */\nexport class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider {\n private constructor() {}\n\n /**\n * Creates a new {@link NodeArgon2Provider} instance.\n * @returns Success with a new provider instance.\n * @public\n */\n public static create(): Result<NodeArgon2Provider> {\n return succeed(new NodeArgon2Provider());\n }\n\n /**\n * Derives a key using Argon2id.\n *\n * @param password - The password or passphrase (string or raw bytes).\n * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).\n * @param params - Argon2id parameters. All values are validated before derivation.\n * @param options - Optional {@link @fgv/ts-extras#CryptoUtils.IArgon2idKeyingOptions | keyed-hashing inputs}\n * (RFC 9106 secret K and/or associated data X). Both are wired through to the\n * underlying `argon2` binding when present and non-empty; omitting them (or\n * passing empty arrays) leaves the output byte-identical to prior behavior.\n * @returns Success with the derived key bytes, or Failure with a descriptive message.\n * @public\n */\n public async argon2id(\n password: Uint8Array | string,\n salt: Uint8Array,\n params: CryptoUtils.IArgon2idParams,\n options?: CryptoUtils.IArgon2idKeyingOptions\n ): Promise<Result<Uint8Array>> {\n const error = NodeArgon2Provider._validateParams(params);\n if (error !== undefined) {\n return fail(error);\n }\n\n return captureAsyncResult(async () => {\n const result = await argon2.hash(password instanceof Uint8Array ? Buffer.from(password) : password, {\n type: argon2.argon2id,\n salt: Buffer.from(salt),\n memoryCost: params.memoryKiB,\n timeCost: params.iterations,\n parallelism: params.parallelism,\n hashLength: params.outputBytes,\n raw: true,\n // Only pass secret/associatedData when present and non-empty so that\n // existing callers (and empty options) produce byte-identical output.\n ...(options?.secret && options.secret.length > 0 ? { secret: Buffer.from(options.secret) } : {}),\n ...(options?.associatedData && options.associatedData.length > 0\n ? { associatedData: Buffer.from(options.associatedData) }\n : {})\n });\n return Uint8Array.from(result);\n });\n }\n\n private static _validateParams(params: CryptoUtils.IArgon2idParams): string | undefined {\n if (params.memoryKiB < 8) {\n return `argon2id: memoryKiB must be >= 8, got ${params.memoryKiB}`;\n }\n if (params.iterations < 1) {\n return `argon2id: iterations must be >= 1, got ${params.iterations}`;\n }\n if (params.parallelism < 1 || params.parallelism > 255) {\n return `argon2id: parallelism must be 1..255, got ${params.parallelism}`;\n }\n if (params.outputBytes < 4) {\n return `argon2id: outputBytes must be >= 4, got ${params.outputBytes}`;\n }\n return undefined;\n }\n}\n"]}
@@ -92,5 +92,26 @@ describe('cross-runtime equivalence: NodeArgon2Provider vs BrowserArgon2Provider
92
92
  const browserBytes = (await browser.argon2id(password, salt, params)).orThrow();
93
93
  expect(nodeBytes).toEqual(browserBytes);
94
94
  });
95
+ // A secret (RFC 9106 keyed hashing) is supported by both backends and must
96
+ // stay byte-identical across them. Small params keep this fast.
97
+ test('secret-only keyed hashing is byte-identical across runtimes', async () => {
98
+ const params = {
99
+ memoryKiB: 8,
100
+ iterations: 1,
101
+ parallelism: 1,
102
+ outputBytes: 32
103
+ };
104
+ const secret = new Uint8Array(8).fill(0x03);
105
+ const nodeBytes = (await node.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();
106
+ const browserBytes = (await browser.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();
107
+ expect(nodeBytes).toEqual(browserBytes);
108
+ });
109
+ // Associated data is Node-only: Node honors it, the WASM browser backend
110
+ // rejects it loudly rather than silently dropping it (which would diverge).
111
+ test('associatedData is Node-only: Node succeeds, browser rejects', async () => {
112
+ const associatedData = new Uint8Array(12).fill(0x04);
113
+ expect(await node.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toSucceed();
114
+ expect(await browser.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toFailWith(/associatedData is not supported.*node-only/i);
115
+ });
95
116
  });
96
117
  //# sourceMappingURL=crossRuntime.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"crossRuntime.test.js","sourceRoot":"","sources":["../../../../src/test/unit/argon2/crossRuntime.test.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;AAEZ,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,4FAA4F;AAC5F,uFAAuF;AACvF,MAAM,UAAU,GAAgC;IAC9C,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,EAAE;CAChB,CAAC;AACF,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACnD,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE/C,uEAAuE;AACvE,MAAM,gBAAgB,GAAG,kEAAkE,CAAC;AAU5F,MAAM,KAAK,GAAgB;IACzB;QACE,KAAK,EAAE,oBAAoB;QAC3B,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,UAAU;KACnB;IACD;QACE,KAAK,EAAE,iBAAiB;QACxB,QAAQ,EAAE,8BAA8B;QACxC,IAAI,EAAE,QAAQ;QACd,MAAM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MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,oCAAoC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;QAC1F,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAC1E,MAAM,YAAY,GAAG,CAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAChF,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport '@fgv/ts-utils-jest';\nimport { NodeArgon2Provider } from '../../../packlets/argon2';\nimport { BrowserArgon2Provider } from '@fgv/ts-web-extras-argon2';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n// RFC 9106 §B.3 parameter set (no secret/AD — our IArgon2idParams interface does not expose\n// those optional Argon2 fields). Both implementations must agree on this exact output.\nconst RFC_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n};\nconst RFC_PASSWORD = new Uint8Array(32).fill(0x01);\nconst RFC_SALT = new Uint8Array(16).fill(0x02);\n\n// Verified independently against both argon2 (kelektiv) and hash-wasm.\nconst RFC_EXPECTED_HEX = '03aab965c12001c9d7d0d2de33192c0494b684bb148196d73c1df1acaf6d0c2e';\n\n// Parameter sweep — covers variation in each dimension independently.\ninterface ITestCase {\n label: string;\n password: Uint8Array | string;\n salt: Uint8Array;\n params: CryptoUtils.IArgon2idParams;\n}\n\nconst SWEEP: ITestCase[] = [\n {\n label: 'RFC §B.3 base case',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: RFC_PARAMS\n },\n {\n label: 'string password',\n password: 'correct horse battery staple',\n salt: RFC_SALT,\n params: RFC_PARAMS\n },\n {\n label: 'higher memoryKiB',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, memoryKiB: 64 }\n },\n {\n label: 'more iterations',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, iterations: 5 }\n },\n {\n label: 'parallelism=1',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, parallelism: 1 }\n },\n {\n label: 'longer output (64 bytes)',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, outputBytes: 64 }\n },\n {\n label: 'different salt',\n password: RFC_PASSWORD,\n salt: new Uint8Array(16).fill(0x07),\n params: RFC_PARAMS\n }\n];\n\ndescribe('cross-runtime equivalence: NodeArgon2Provider vs BrowserArgon2Provider', () => {\n let node: NodeArgon2Provider;\n let browser: BrowserArgon2Provider;\n\n beforeEach(() => {\n node = NodeArgon2Provider.create().orThrow();\n browser = BrowserArgon2Provider.create().orThrow();\n });\n\n test('RFC §B.3 parameter set matches known-good hex output', async () => {\n const nodeBytes = (await node.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n expect(Buffer.from(nodeBytes).toString('hex')).toBe(RFC_EXPECTED_HEX);\n });\n\n test.each(SWEEP)('$label: outputs are byte-identical', async ({ password, salt, params }) => {\n const nodeBytes = (await node.argon2id(password, salt, params)).orThrow();\n const browserBytes = (await browser.argon2id(password, salt, params)).orThrow();\n expect(nodeBytes).toEqual(browserBytes);\n });\n});\n"]}
1
+ {"version":3,"file":"crossRuntime.test.js","sourceRoot":"","sources":["../../../../src/test/unit/argon2/crossRuntime.test.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;AAEZ,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGlE,4FAA4F;AAC5F,uFAAuF;AACvF,MAAM,UAAU,GAAgC;IAC9C,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,EAAE;CAChB,C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C;YACZ,UAAU,EAAE,CAAC;YACb,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,EAAE;SAChB,CAAC;QACF,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAC9F,MAAM,YAAY,GAAG,CAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACpG,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,yEAAyE;IACzE,4EAA4E;IAC5E,IAAI,CAAC,6DAA6D,EAAE,KAAK,IAAI,EAAE;QAC7E,MAAM,cAAc,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,MAAM,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;QAChG,MAAM,CAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,UAAU,CAC/F,6CAA6C,CAC9C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport '@fgv/ts-utils-jest';\nimport { NodeArgon2Provider } from '../../../packlets/argon2';\nimport { BrowserArgon2Provider } from '@fgv/ts-web-extras-argon2';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n// RFC 9106 §B.3 parameter set (no secret/AD — our IArgon2idParams interface does not expose\n// those optional Argon2 fields). Both implementations must agree on this exact output.\nconst RFC_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n};\nconst RFC_PASSWORD = new Uint8Array(32).fill(0x01);\nconst RFC_SALT = new Uint8Array(16).fill(0x02);\n\n// Verified independently against both argon2 (kelektiv) and hash-wasm.\nconst RFC_EXPECTED_HEX = '03aab965c12001c9d7d0d2de33192c0494b684bb148196d73c1df1acaf6d0c2e';\n\n// Parameter sweep — covers variation in each dimension independently.\ninterface ITestCase {\n label: string;\n password: Uint8Array | string;\n salt: Uint8Array;\n params: CryptoUtils.IArgon2idParams;\n}\n\nconst SWEEP: ITestCase[] = [\n {\n label: 'RFC §B.3 base case',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: RFC_PARAMS\n },\n {\n label: 'string password',\n password: 'correct horse battery staple',\n salt: RFC_SALT,\n params: RFC_PARAMS\n },\n {\n label: 'higher memoryKiB',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, memoryKiB: 64 }\n },\n {\n label: 'more iterations',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, iterations: 5 }\n },\n {\n label: 'parallelism=1',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, parallelism: 1 }\n },\n {\n label: 'longer output (64 bytes)',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, outputBytes: 64 }\n },\n {\n label: 'different salt',\n password: RFC_PASSWORD,\n salt: new Uint8Array(16).fill(0x07),\n params: RFC_PARAMS\n }\n];\n\ndescribe('cross-runtime equivalence: NodeArgon2Provider vs BrowserArgon2Provider', () => {\n let node: NodeArgon2Provider;\n let browser: BrowserArgon2Provider;\n\n beforeEach(() => {\n node = NodeArgon2Provider.create().orThrow();\n browser = BrowserArgon2Provider.create().orThrow();\n });\n\n test('RFC §B.3 parameter set matches known-good hex output', async () => {\n const nodeBytes = (await node.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n expect(Buffer.from(nodeBytes).toString('hex')).toBe(RFC_EXPECTED_HEX);\n });\n\n test.each(SWEEP)('$label: outputs are byte-identical', async ({ password, salt, params }) => {\n const nodeBytes = (await node.argon2id(password, salt, params)).orThrow();\n const browserBytes = (await browser.argon2id(password, salt, params)).orThrow();\n expect(nodeBytes).toEqual(browserBytes);\n });\n\n // A secret (RFC 9106 keyed hashing) is supported by both backends and must\n // stay byte-identical across them. Small params keep this fast.\n test('secret-only keyed hashing is byte-identical across runtimes', async () => {\n const params: CryptoUtils.IArgon2idParams = {\n memoryKiB: 8,\n iterations: 1,\n parallelism: 1,\n outputBytes: 32\n };\n const secret = new Uint8Array(8).fill(0x03);\n const nodeBytes = (await node.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();\n const browserBytes = (await browser.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();\n expect(nodeBytes).toEqual(browserBytes);\n });\n\n // Associated data is Node-only: Node honors it, the WASM browser backend\n // rejects it loudly rather than silently dropping it (which would diverge).\n test('associatedData is Node-only: Node succeeds, browser rejects', async () => {\n const associatedData = new Uint8Array(12).fill(0x04);\n expect(await node.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toSucceed();\n expect(await browser.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toFailWith(\n /associatedData is not supported.*node-only/i\n );\n });\n});\n"]}
@@ -79,6 +79,50 @@ describe('NodeArgon2Provider', () => {
79
79
  expect(await provider.argon2id(RFC_PASSWORD, tinySalt, RFC_PARAMS)).toFail();
80
80
  });
81
81
  });
82
+ describe('keyed hashing (secret / associatedData)', () => {
83
+ // RFC 9106 §5.3 Argon2id known-answer test vector:
84
+ // password P = 32 bytes of 0x01, salt S = 16 bytes of 0x02,
85
+ // secret K = 8 bytes of 0x03, associated data X = 12 bytes of 0x04,
86
+ // t=3, m=32, p=4, tag=32.
87
+ // expected tag = 0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659
88
+ const KAT_PARAMS = {
89
+ memoryKiB: 32,
90
+ iterations: 3,
91
+ parallelism: 4,
92
+ outputBytes: 32
93
+ };
94
+ const KAT_PASSWORD = new Uint8Array(32).fill(0x01);
95
+ const KAT_SALT = new Uint8Array(16).fill(0x02);
96
+ const KAT_SECRET = new Uint8Array(8).fill(0x03);
97
+ const KAT_AD = new Uint8Array(12).fill(0x04);
98
+ const KAT_EXPECTED_HEX = '0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659';
99
+ test('reproduces the RFC 9106 §5.3 known-answer vector with secret + associatedData', async () => {
100
+ expect(await provider.argon2id(KAT_PASSWORD, KAT_SALT, KAT_PARAMS, {
101
+ secret: KAT_SECRET,
102
+ associatedData: KAT_AD
103
+ })).toSucceedAndSatisfy((bytes) => {
104
+ expect(Buffer.from(bytes).toString('hex')).toBe(KAT_EXPECTED_HEX);
105
+ });
106
+ });
107
+ test('adding a secret changes the derived output', async () => {
108
+ const withoutSecret = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
109
+ const withSecret = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { secret: KAT_SECRET })).orThrow();
110
+ expect(withSecret).not.toEqual(withoutSecret);
111
+ });
112
+ test('adding associated data changes the derived output', async () => {
113
+ const withoutAd = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
114
+ const withAd = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData: KAT_AD })).orThrow();
115
+ expect(withAd).not.toEqual(withoutAd);
116
+ });
117
+ test('empty secret / associatedData are a no-op (byte-identical to omitting options)', async () => {
118
+ const baseline = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
119
+ const emptyOptions = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, {
120
+ secret: new Uint8Array(0),
121
+ associatedData: new Uint8Array(0)
122
+ })).orThrow();
123
+ expect(emptyOptions).toEqual(baseline);
124
+ });
125
+ });
82
126
  describe('parameter validation', () => {
83
127
  test('fails when memoryKiB < 8', async () => {
84
128
  expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, Object.assign(Object.assign({}, RFC_PARAMS), { memoryKiB: 7 }))).toFailWith(/memoryKiB must be >= 8/i);
@@ -1 +1 @@
1
- {"version":3,"file":"nodeArgon2Provider.test.js","sourceRoot":"","sources":["../../../../src/test/unit/argon2/nodeArgon2Provider.test.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC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EAAE,QAAQ,kCAAO,UAAU,KAAE,WAAW,EAAE,GAAG,IAAG,CAAC,CAAC,UAAU,CACrG,+BAA+B,CAChC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;YAC5C,MAAM,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,WAAW,EAAE,CAAC,IAAG,CAAC,CAAC,UAAU,CACnG,2BAA2B,CAC5B,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport '@fgv/ts-utils-jest';\nimport { NodeArgon2Provider } from '../../../packlets/argon2';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n// RFC 9106 §B.3 parameter set (no secret/AD — our interface does not expose those fields).\n// t=3, m=32, p=4, tag=32. Used for determinism and cross-runtime agreement.\nconst RFC_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n};\nconst RFC_PASSWORD = new Uint8Array(32).fill(0x01);\nconst RFC_SALT = new Uint8Array(16).fill(0x02);\n\ndescribe('NodeArgon2Provider', () => {\n let provider: NodeArgon2Provider;\n\n beforeEach(() => {\n provider = NodeArgon2Provider.create().orThrow();\n });\n\n describe('create()', () => {\n test('returns a provider instance', () => {\n expect(NodeArgon2Provider.create()).toSucceedAndSatisfy((p) => {\n expect(p).toBeInstanceOf(NodeArgon2Provider);\n });\n });\n });\n\n describe('argon2id()', () => {\n test('derives a key with Uint8Array password', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('derives a key with string password', async () => {\n expect(await provider.argon2id('password', RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('is deterministic — same inputs produce identical bytes', async () => {\n const r1 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const r2 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n expect(r1).toEqual(r2);\n });\n\n test('different passwords produce different bytes', async () => {\n const a = (await provider.argon2id(new Uint8Array(32).fill(0x01), RFC_SALT, RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(new Uint8Array(32).fill(0x02), RFC_SALT, RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('different salts produce different bytes', async () => {\n const a = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x02), RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x03), RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('respects outputBytes', async () => {\n expect(\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 64 })\n ).toSucceedAndSatisfy((bytes) => {\n expect(bytes.length).toBe(64);\n });\n });\n\n test('returns failure when underlying library rejects (salt too short)', async () => {\n const tinySalt = new Uint8Array(1).fill(0x02); // argon2 requires >= 8 bytes\n expect(await provider.argon2id(RFC_PASSWORD, tinySalt, RFC_PARAMS)).toFail();\n });\n });\n\n describe('parameter validation', () => {\n test('fails when memoryKiB < 8', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, memoryKiB: 7 })).toFailWith(\n /memoryKiB must be >= 8/i\n );\n });\n\n test('fails when iterations < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, iterations: 0 })).toFailWith(\n /iterations must be >= 1/i\n );\n });\n\n test('fails when parallelism < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 0 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when parallelism > 255', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 256 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when outputBytes < 4', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 3 })).toFailWith(\n /outputBytes must be >= 4/i\n );\n });\n });\n});\n"]}
1
+ {"version":3,"file":"nodeArgon2Provider.test.js","sourceRoot":"","sources":["../../../../src/test/unit/argon2/nodeArgon2Provider.test.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/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KAAK,IAAI,EAAE;YAC9C,MAAM,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,WAAW,EAAE,GAAG,IAAG,CAAC,CAAC,UAAU,CACrG,+BAA+B,CAChC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;YAC5C,MAAM,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,WAAW,EAAE,CAAC,IAAG,CAAC,CAAC,UAAU,CACnG,2BAA2B,CAC5B,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport '@fgv/ts-utils-jest';\nimport { NodeArgon2Provider } from '../../../packlets/argon2';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n// RFC 9106 §B.3 parameter set (no secret/AD — our interface does not expose those fields).\n// t=3, m=32, p=4, tag=32. Used for determinism and cross-runtime agreement.\nconst RFC_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n};\nconst RFC_PASSWORD = new Uint8Array(32).fill(0x01);\nconst RFC_SALT = new Uint8Array(16).fill(0x02);\n\ndescribe('NodeArgon2Provider', () => {\n let provider: NodeArgon2Provider;\n\n beforeEach(() => {\n provider = NodeArgon2Provider.create().orThrow();\n });\n\n describe('create()', () => {\n test('returns a provider instance', () => {\n expect(NodeArgon2Provider.create()).toSucceedAndSatisfy((p) => {\n expect(p).toBeInstanceOf(NodeArgon2Provider);\n });\n });\n });\n\n describe('argon2id()', () => {\n test('derives a key with Uint8Array password', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('derives a key with string password', async () => {\n expect(await provider.argon2id('password', RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('is deterministic — same inputs produce identical bytes', async () => {\n const r1 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const r2 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n expect(r1).toEqual(r2);\n });\n\n test('different passwords produce different bytes', async () => {\n const a = (await provider.argon2id(new Uint8Array(32).fill(0x01), RFC_SALT, RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(new Uint8Array(32).fill(0x02), RFC_SALT, RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('different salts produce different bytes', async () => {\n const a = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x02), RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x03), RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('respects outputBytes', async () => {\n expect(\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 64 })\n ).toSucceedAndSatisfy((bytes) => {\n expect(bytes.length).toBe(64);\n });\n });\n\n test('returns failure when underlying library rejects (salt too short)', async () => {\n const tinySalt = new Uint8Array(1).fill(0x02); // argon2 requires >= 8 bytes\n expect(await provider.argon2id(RFC_PASSWORD, tinySalt, RFC_PARAMS)).toFail();\n });\n });\n\n describe('keyed hashing (secret / associatedData)', () => {\n // RFC 9106 §5.3 Argon2id known-answer test vector:\n // password P = 32 bytes of 0x01, salt S = 16 bytes of 0x02,\n // secret K = 8 bytes of 0x03, associated data X = 12 bytes of 0x04,\n // t=3, m=32, p=4, tag=32.\n // expected tag = 0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659\n const KAT_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n };\n const KAT_PASSWORD = new Uint8Array(32).fill(0x01);\n const KAT_SALT = new Uint8Array(16).fill(0x02);\n const KAT_SECRET = new Uint8Array(8).fill(0x03);\n const KAT_AD = new Uint8Array(12).fill(0x04);\n const KAT_EXPECTED_HEX = '0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659';\n\n test('reproduces the RFC 9106 §5.3 known-answer vector with secret + associatedData', async () => {\n expect(\n await provider.argon2id(KAT_PASSWORD, KAT_SALT, KAT_PARAMS, {\n secret: KAT_SECRET,\n associatedData: KAT_AD\n })\n ).toSucceedAndSatisfy((bytes) => {\n expect(Buffer.from(bytes).toString('hex')).toBe(KAT_EXPECTED_HEX);\n });\n });\n\n test('adding a secret changes the derived output', async () => {\n const withoutSecret = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const withSecret = (\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { secret: KAT_SECRET })\n ).orThrow();\n expect(withSecret).not.toEqual(withoutSecret);\n });\n\n test('adding associated data changes the derived output', async () => {\n const withoutAd = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const withAd = (\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData: KAT_AD })\n ).orThrow();\n expect(withAd).not.toEqual(withoutAd);\n });\n\n test('empty secret / associatedData are a no-op (byte-identical to omitting options)', async () => {\n const baseline = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const emptyOptions = (\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, {\n secret: new Uint8Array(0),\n associatedData: new Uint8Array(0)\n })\n ).orThrow();\n expect(emptyOptions).toEqual(baseline);\n });\n });\n\n describe('parameter validation', () => {\n test('fails when memoryKiB < 8', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, memoryKiB: 7 })).toFailWith(\n /memoryKiB must be >= 8/i\n );\n });\n\n test('fails when iterations < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, iterations: 0 })).toFailWith(\n /iterations must be >= 1/i\n );\n });\n\n test('fails when parallelism < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 0 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when parallelism > 255', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 256 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when outputBytes < 4', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 3 })).toFailWith(\n /outputBytes must be >= 4/i\n );\n });\n });\n});\n"]}
@@ -22,10 +22,14 @@ export declare class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider
22
22
  * @param password - The password or passphrase (string or raw bytes).
23
23
  * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).
24
24
  * @param params - Argon2id parameters. All values are validated before derivation.
25
+ * @param options - Optional {@link @fgv/ts-extras#CryptoUtils.IArgon2idKeyingOptions | keyed-hashing inputs}
26
+ * (RFC 9106 secret K and/or associated data X). Both are wired through to the
27
+ * underlying `argon2` binding when present and non-empty; omitting them (or
28
+ * passing empty arrays) leaves the output byte-identical to prior behavior.
25
29
  * @returns Success with the derived key bytes, or Failure with a descriptive message.
26
30
  * @public
27
31
  */
28
- argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams): Promise<Result<Uint8Array>>;
32
+ argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams, options?: CryptoUtils.IArgon2idKeyingOptions): Promise<Result<Uint8Array>>;
29
33
  private static _validateParams;
30
34
  }
31
35
 
@@ -11,7 +11,7 @@ export { CryptoUtils }
11
11
 
12
12
  // @public
13
13
  export class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider {
14
- argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams): Promise<Result<Uint8Array>>;
14
+ argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams, options?: CryptoUtils.IArgon2idKeyingOptions): Promise<Result<Uint8Array>>;
15
15
  static create(): Result<NodeArgon2Provider>;
16
16
  }
17
17
 
@@ -19,10 +19,14 @@ export declare class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider
19
19
  * @param password - The password or passphrase (string or raw bytes).
20
20
  * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).
21
21
  * @param params - Argon2id parameters. All values are validated before derivation.
22
+ * @param options - Optional {@link @fgv/ts-extras#CryptoUtils.IArgon2idKeyingOptions | keyed-hashing inputs}
23
+ * (RFC 9106 secret K and/or associated data X). Both are wired through to the
24
+ * underlying `argon2` binding when present and non-empty; omitting them (or
25
+ * passing empty arrays) leaves the output byte-identical to prior behavior.
22
26
  * @returns Success with the derived key bytes, or Failure with a descriptive message.
23
27
  * @public
24
28
  */
25
- argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams): Promise<Result<Uint8Array>>;
29
+ argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams, options?: CryptoUtils.IArgon2idKeyingOptions): Promise<Result<Uint8Array>>;
26
30
  private static _validateParams;
27
31
  }
28
32
  //# sourceMappingURL=nodeArgon2Provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodeArgon2Provider.d.ts","sourceRoot":"","sources":["../../../src/packlets/argon2/nodeArgon2Provider.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,MAAM,EAAqC,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,WAAW,CAAC,iBAAiB;IACtE,OAAO;IAEP;;;;OAIG;WACW,MAAM,IAAI,MAAM,CAAC,kBAAkB,CAAC;IAIlD;;;;;;;;OAQG;IACU,QAAQ,CACnB,QAAQ,EAAE,UAAU,GAAG,MAAM,EAC7B,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,WAAW,CAAC,eAAe,GAClC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAoB9B,OAAO,CAAC,MAAM,CAAC,eAAe;CAe/B"}
1
+ {"version":3,"file":"nodeArgon2Provider.d.ts","sourceRoot":"","sources":["../../../src/packlets/argon2/nodeArgon2Provider.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,MAAM,EAAqC,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,WAAW,CAAC,iBAAiB;IACtE,OAAO;IAEP;;;;OAIG;WACW,MAAM,IAAI,MAAM,CAAC,kBAAkB,CAAC;IAIlD;;;;;;;;;;;;OAYG;IACU,QAAQ,CACnB,QAAQ,EAAE,UAAU,GAAG,MAAM,EAC7B,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,WAAW,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,WAAW,CAAC,sBAAsB,GAC3C,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IA0B9B,OAAO,CAAC,MAAM,CAAC,eAAe;CAe/B"}
@@ -76,24 +76,22 @@ class NodeArgon2Provider {
76
76
  * @param password - The password or passphrase (string or raw bytes).
77
77
  * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).
78
78
  * @param params - Argon2id parameters. All values are validated before derivation.
79
+ * @param options - Optional {@link @fgv/ts-extras#CryptoUtils.IArgon2idKeyingOptions | keyed-hashing inputs}
80
+ * (RFC 9106 secret K and/or associated data X). Both are wired through to the
81
+ * underlying `argon2` binding when present and non-empty; omitting them (or
82
+ * passing empty arrays) leaves the output byte-identical to prior behavior.
79
83
  * @returns Success with the derived key bytes, or Failure with a descriptive message.
80
84
  * @public
81
85
  */
82
- async argon2id(password, salt, params) {
86
+ async argon2id(password, salt, params, options) {
83
87
  const error = NodeArgon2Provider._validateParams(params);
84
88
  if (error !== undefined) {
85
89
  return (0, ts_utils_1.fail)(error);
86
90
  }
87
91
  return (0, ts_utils_1.captureAsyncResult)(async () => {
88
- const result = await argon2.hash(password instanceof Uint8Array ? Buffer.from(password) : password, {
89
- type: argon2.argon2id,
90
- salt: Buffer.from(salt),
91
- memoryCost: params.memoryKiB,
92
- timeCost: params.iterations,
93
- parallelism: params.parallelism,
94
- hashLength: params.outputBytes,
95
- raw: true
96
- });
92
+ const result = await argon2.hash(password instanceof Uint8Array ? Buffer.from(password) : password, Object.assign(Object.assign({ type: argon2.argon2id, salt: Buffer.from(salt), memoryCost: params.memoryKiB, timeCost: params.iterations, parallelism: params.parallelism, hashLength: params.outputBytes, raw: true }, ((options === null || options === void 0 ? void 0 : options.secret) && options.secret.length > 0 ? { secret: Buffer.from(options.secret) } : {})), ((options === null || options === void 0 ? void 0 : options.associatedData) && options.associatedData.length > 0
93
+ ? { associatedData: Buffer.from(options.associatedData) }
94
+ : {})));
97
95
  return Uint8Array.from(result);
98
96
  });
99
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"nodeArgon2Provider.js","sourceRoot":"","sources":["../../../src/packlets/argon2/nodeArgon2Provider.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,+CAAiC;AACjC,4CAA0E;AAG1E;;;;GAIG;AACH,MAAa,kBAAkB;IAC7B,gBAAuB,CAAC;IAExB;;;;OAIG;IACI,MAAM,CAAC,MAAM;QAClB,OAAO,IAAA,kBAAO,EAAC,IAAI,kBAAkB,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;;;;OAQG;IACI,KAAK,CAAC,QAAQ,CACnB,QAA6B,EAC7B,IAAgB,EAChB,MAAmC;QAEnC,MAAM,KAAK,GAAG,kBAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACzD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,IAAA,eAAI,EAAC,KAAK,CAAC,CAAC;QACrB,CAAC;QAED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free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport * as argon2 from 'argon2';\nimport { Result, captureAsyncResult, fail, succeed } from '@fgv/ts-utils';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n/**\n * Node.js implementation of {@link @fgv/ts-extras#IArgon2idProvider} backed by the\n * `argon2` (kelektiv) native binding.\n * @public\n */\nexport class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider {\n private constructor() {}\n\n /**\n * Creates a new {@link NodeArgon2Provider} instance.\n * @returns Success with a new provider instance.\n * @public\n */\n public static create(): Result<NodeArgon2Provider> {\n return succeed(new NodeArgon2Provider());\n }\n\n /**\n * Derives a key using Argon2id.\n *\n * @param password - The password or passphrase (string or raw bytes).\n * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).\n * @param params - Argon2id parameters. All values are validated before derivation.\n * @returns Success with the derived key bytes, or Failure with a descriptive message.\n * @public\n */\n public async argon2id(\n password: Uint8Array | string,\n salt: Uint8Array,\n params: CryptoUtils.IArgon2idParams\n ): Promise<Result<Uint8Array>> {\n const error = NodeArgon2Provider._validateParams(params);\n if (error !== undefined) {\n return fail(error);\n }\n\n return captureAsyncResult(async () => {\n const result = await argon2.hash(password instanceof Uint8Array ? Buffer.from(password) : password, {\n type: argon2.argon2id,\n salt: Buffer.from(salt),\n memoryCost: params.memoryKiB,\n timeCost: params.iterations,\n parallelism: params.parallelism,\n hashLength: params.outputBytes,\n raw: true\n });\n return Uint8Array.from(result);\n });\n }\n\n private static _validateParams(params: CryptoUtils.IArgon2idParams): string | undefined {\n if (params.memoryKiB < 8) {\n return `argon2id: memoryKiB must be >= 8, got ${params.memoryKiB}`;\n }\n if (params.iterations < 1) {\n return `argon2id: iterations must be >= 1, got ${params.iterations}`;\n }\n if (params.parallelism < 1 || params.parallelism > 255) {\n return `argon2id: parallelism must be 1..255, got ${params.parallelism}`;\n }\n if (params.outputBytes < 4) {\n return `argon2id: outputBytes must be >= 4, got ${params.outputBytes}`;\n }\n return undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"nodeArgon2Provider.js","sourceRoot":"","sources":["../../../src/packlets/argon2/nodeArgon2Provider.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,+CAAiC;AACjC,4CAA0E;AAG1E;;;;GAIG;AACH,MAAa,kBAAkB;IAC7B,gBAAuB,CAAC;IAExB;;;;OAIG;IACI,MAAM,CAAC,MAAM;QAClB,OAAO,IAAA,kBAAO,EAAC,IAAI,kBAAkB,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;;;;;;;;OAYG;IACI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,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,MAAM,CAAC,eAAe,CAAC,MAAmC;QAChE,IAAI,MAAM,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC;YACzB,OAAO,yCAAyC,MAAM,CAAC,SAAS,EAAE,CAAC;QACrE,CAAC;QACD,IAAI,MAAM,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC;YAC1B,OAAO,0CAA0C,MAAM,CAAC,UAAU,EAAE,CAAC;QACvE,CAAC;QACD,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,IAAI,MAAM,CAAC,WAAW,GAAG,GAAG,EAAE,CAAC;YACvD,OAAO,6CAA6C,MAAM,CAAC,WAAW,EAAE,CAAC;QAC3E,CAAC;QACD,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,EAAE,CAAC;YAC3B,OAAO,2CAA2C,MAAM,CAAC,WAAW,EAAE,CAAC;QACzE,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAvED,gDAuEC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport * as argon2 from 'argon2';\nimport { Result, captureAsyncResult, fail, succeed } from '@fgv/ts-utils';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n/**\n * Node.js implementation of {@link @fgv/ts-extras#IArgon2idProvider} backed by the\n * `argon2` (kelektiv) native binding.\n * @public\n */\nexport class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider {\n private constructor() {}\n\n /**\n * Creates a new {@link NodeArgon2Provider} instance.\n * @returns Success with a new provider instance.\n * @public\n */\n public static create(): Result<NodeArgon2Provider> {\n return succeed(new NodeArgon2Provider());\n }\n\n /**\n * Derives a key using Argon2id.\n *\n * @param password - The password or passphrase (string or raw bytes).\n * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).\n * @param params - Argon2id parameters. All values are validated before derivation.\n * @param options - Optional {@link @fgv/ts-extras#CryptoUtils.IArgon2idKeyingOptions | keyed-hashing inputs}\n * (RFC 9106 secret K and/or associated data X). Both are wired through to the\n * underlying `argon2` binding when present and non-empty; omitting them (or\n * passing empty arrays) leaves the output byte-identical to prior behavior.\n * @returns Success with the derived key bytes, or Failure with a descriptive message.\n * @public\n */\n public async argon2id(\n password: Uint8Array | string,\n salt: Uint8Array,\n params: CryptoUtils.IArgon2idParams,\n options?: CryptoUtils.IArgon2idKeyingOptions\n ): Promise<Result<Uint8Array>> {\n const error = NodeArgon2Provider._validateParams(params);\n if (error !== undefined) {\n return fail(error);\n }\n\n return captureAsyncResult(async () => {\n const result = await argon2.hash(password instanceof Uint8Array ? Buffer.from(password) : password, {\n type: argon2.argon2id,\n salt: Buffer.from(salt),\n memoryCost: params.memoryKiB,\n timeCost: params.iterations,\n parallelism: params.parallelism,\n hashLength: params.outputBytes,\n raw: true,\n // Only pass secret/associatedData when present and non-empty so that\n // existing callers (and empty options) produce byte-identical output.\n ...(options?.secret && options.secret.length > 0 ? { secret: Buffer.from(options.secret) } : {}),\n ...(options?.associatedData && options.associatedData.length > 0\n ? { associatedData: Buffer.from(options.associatedData) }\n : {})\n });\n return Uint8Array.from(result);\n });\n }\n\n private static _validateParams(params: CryptoUtils.IArgon2idParams): string | undefined {\n if (params.memoryKiB < 8) {\n return `argon2id: memoryKiB must be >= 8, got ${params.memoryKiB}`;\n }\n if (params.iterations < 1) {\n return `argon2id: iterations must be >= 1, got ${params.iterations}`;\n }\n if (params.parallelism < 1 || params.parallelism > 255) {\n return `argon2id: parallelism must be 1..255, got ${params.parallelism}`;\n }\n if (params.outputBytes < 4) {\n return `argon2id: outputBytes must be >= 4, got ${params.outputBytes}`;\n }\n return undefined;\n }\n}\n"]}
@@ -94,5 +94,26 @@ describe('cross-runtime equivalence: NodeArgon2Provider vs BrowserArgon2Provider
94
94
  const browserBytes = (await browser.argon2id(password, salt, params)).orThrow();
95
95
  expect(nodeBytes).toEqual(browserBytes);
96
96
  });
97
+ // A secret (RFC 9106 keyed hashing) is supported by both backends and must
98
+ // stay byte-identical across them. Small params keep this fast.
99
+ test('secret-only keyed hashing is byte-identical across runtimes', async () => {
100
+ const params = {
101
+ memoryKiB: 8,
102
+ iterations: 1,
103
+ parallelism: 1,
104
+ outputBytes: 32
105
+ };
106
+ const secret = new Uint8Array(8).fill(0x03);
107
+ const nodeBytes = (await node.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();
108
+ const browserBytes = (await browser.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();
109
+ expect(nodeBytes).toEqual(browserBytes);
110
+ });
111
+ // Associated data is Node-only: Node honors it, the WASM browser backend
112
+ // rejects it loudly rather than silently dropping it (which would diverge).
113
+ test('associatedData is Node-only: Node succeeds, browser rejects', async () => {
114
+ const associatedData = new Uint8Array(12).fill(0x04);
115
+ expect(await node.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toSucceed();
116
+ expect(await browser.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toFailWith(/associatedData is not supported.*node-only/i);
117
+ });
97
118
  });
98
119
  //# sourceMappingURL=crossRuntime.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"crossRuntime.test.js","sourceRoot":"","sources":["../../../../src/test/unit/argon2/crossRuntime.test.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;AAEZ,8BAA4B;AAC5B,qDAA8D;AAC9D,oEAAkE;AAGlE,4FAA4F;AAC5F,uFAAuF;AACvF,MAAM,UAAU,GAAgC;IAC9C,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,EAAE;CAChB,CAAC;AACF,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACnD,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE/C,uEAAuE;AACvE,MAAM,gBAAgB,GAAG,kEAAkE,CAAC;AAU5F,MAAM,KAAK,GAAgB;IACzB;QACE,KAAK,EAAE,oBAAoB;QAC3B,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,UAAU;KACnB;IACD;QACE,KAAK,EAAE,iBAAiB;QACxB,QAAQ,EAAE,8BAA8B;QACxC,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,UAAU;KACnB;IACD;QACE,KAAK,EAAE,kBAAkB;QACzB,QAAQ,EAAE,YAAY;QACtB,I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AC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,oCAAoC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;QAC1F,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAC1E,MAAM,YAAY,GAAG,CAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAChF,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport '@fgv/ts-utils-jest';\nimport { NodeArgon2Provider } from '../../../packlets/argon2';\nimport { BrowserArgon2Provider } from '@fgv/ts-web-extras-argon2';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n// RFC 9106 §B.3 parameter set (no secret/AD — our IArgon2idParams interface does not expose\n// those optional Argon2 fields). Both implementations must agree on this exact output.\nconst RFC_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n};\nconst RFC_PASSWORD = new Uint8Array(32).fill(0x01);\nconst RFC_SALT = new Uint8Array(16).fill(0x02);\n\n// Verified independently against both argon2 (kelektiv) and hash-wasm.\nconst RFC_EXPECTED_HEX = '03aab965c12001c9d7d0d2de33192c0494b684bb148196d73c1df1acaf6d0c2e';\n\n// Parameter sweep — covers variation in each dimension independently.\ninterface ITestCase {\n label: string;\n password: Uint8Array | string;\n salt: Uint8Array;\n params: CryptoUtils.IArgon2idParams;\n}\n\nconst SWEEP: ITestCase[] = [\n {\n label: 'RFC §B.3 base case',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: RFC_PARAMS\n },\n {\n label: 'string password',\n password: 'correct horse battery staple',\n salt: RFC_SALT,\n params: RFC_PARAMS\n },\n {\n label: 'higher memoryKiB',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, memoryKiB: 64 }\n },\n {\n label: 'more iterations',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, iterations: 5 }\n },\n {\n label: 'parallelism=1',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, parallelism: 1 }\n },\n {\n label: 'longer output (64 bytes)',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, outputBytes: 64 }\n },\n {\n label: 'different salt',\n password: RFC_PASSWORD,\n salt: new Uint8Array(16).fill(0x07),\n params: RFC_PARAMS\n }\n];\n\ndescribe('cross-runtime equivalence: NodeArgon2Provider vs BrowserArgon2Provider', () => {\n let node: NodeArgon2Provider;\n let browser: BrowserArgon2Provider;\n\n beforeEach(() => {\n node = NodeArgon2Provider.create().orThrow();\n browser = BrowserArgon2Provider.create().orThrow();\n });\n\n test('RFC §B.3 parameter set matches known-good hex output', async () => {\n const nodeBytes = (await node.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n expect(Buffer.from(nodeBytes).toString('hex')).toBe(RFC_EXPECTED_HEX);\n });\n\n test.each(SWEEP)('$label: outputs are byte-identical', async ({ password, salt, params }) => {\n const nodeBytes = (await node.argon2id(password, salt, params)).orThrow();\n const browserBytes = (await browser.argon2id(password, salt, params)).orThrow();\n expect(nodeBytes).toEqual(browserBytes);\n });\n});\n"]}
1
+ {"version":3,"file":"crossRuntime.test.js","sourceRoot":"","sources":["../../../../src/test/unit/argon2/crossRuntime.test.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;AAEZ,8BAA4B;AAC5B,qDAA8D;AAC9D,oEAAkE;AAGlE,4FAA4F;AAC5F,uFAAuF;AACvF,MAAM,UAAU,GAAgC;IAC9C,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,CAAC;IACb,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,EAAE;CAChB,CAAC;AACF,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACnD,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IA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AC;QAC5C,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAC9F,MAAM,YAAY,GAAG,CAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACpG,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,yEAAyE;IACzE,4EAA4E;IAC5E,IAAI,CAAC,6DAA6D,EAAE,KAAK,IAAI,EAAE;QAC7E,MAAM,cAAc,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,MAAM,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;QAChG,MAAM,CAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,UAAU,CAC/F,6CAA6C,CAC9C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport '@fgv/ts-utils-jest';\nimport { NodeArgon2Provider } from '../../../packlets/argon2';\nimport { BrowserArgon2Provider } from '@fgv/ts-web-extras-argon2';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n// RFC 9106 §B.3 parameter set (no secret/AD — our IArgon2idParams interface does not expose\n// those optional Argon2 fields). Both implementations must agree on this exact output.\nconst RFC_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n};\nconst RFC_PASSWORD = new Uint8Array(32).fill(0x01);\nconst RFC_SALT = new Uint8Array(16).fill(0x02);\n\n// Verified independently against both argon2 (kelektiv) and hash-wasm.\nconst RFC_EXPECTED_HEX = '03aab965c12001c9d7d0d2de33192c0494b684bb148196d73c1df1acaf6d0c2e';\n\n// Parameter sweep — covers variation in each dimension independently.\ninterface ITestCase {\n label: string;\n password: Uint8Array | string;\n salt: Uint8Array;\n params: CryptoUtils.IArgon2idParams;\n}\n\nconst SWEEP: ITestCase[] = [\n {\n label: 'RFC §B.3 base case',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: RFC_PARAMS\n },\n {\n label: 'string password',\n password: 'correct horse battery staple',\n salt: RFC_SALT,\n params: RFC_PARAMS\n },\n {\n label: 'higher memoryKiB',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, memoryKiB: 64 }\n },\n {\n label: 'more iterations',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, iterations: 5 }\n },\n {\n label: 'parallelism=1',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, parallelism: 1 }\n },\n {\n label: 'longer output (64 bytes)',\n password: RFC_PASSWORD,\n salt: RFC_SALT,\n params: { ...RFC_PARAMS, outputBytes: 64 }\n },\n {\n label: 'different salt',\n password: RFC_PASSWORD,\n salt: new Uint8Array(16).fill(0x07),\n params: RFC_PARAMS\n }\n];\n\ndescribe('cross-runtime equivalence: NodeArgon2Provider vs BrowserArgon2Provider', () => {\n let node: NodeArgon2Provider;\n let browser: BrowserArgon2Provider;\n\n beforeEach(() => {\n node = NodeArgon2Provider.create().orThrow();\n browser = BrowserArgon2Provider.create().orThrow();\n });\n\n test('RFC §B.3 parameter set matches known-good hex output', async () => {\n const nodeBytes = (await node.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n expect(Buffer.from(nodeBytes).toString('hex')).toBe(RFC_EXPECTED_HEX);\n });\n\n test.each(SWEEP)('$label: outputs are byte-identical', async ({ password, salt, params }) => {\n const nodeBytes = (await node.argon2id(password, salt, params)).orThrow();\n const browserBytes = (await browser.argon2id(password, salt, params)).orThrow();\n expect(nodeBytes).toEqual(browserBytes);\n });\n\n // A secret (RFC 9106 keyed hashing) is supported by both backends and must\n // stay byte-identical across them. Small params keep this fast.\n test('secret-only keyed hashing is byte-identical across runtimes', async () => {\n const params: CryptoUtils.IArgon2idParams = {\n memoryKiB: 8,\n iterations: 1,\n parallelism: 1,\n outputBytes: 32\n };\n const secret = new Uint8Array(8).fill(0x03);\n const nodeBytes = (await node.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();\n const browserBytes = (await browser.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();\n expect(nodeBytes).toEqual(browserBytes);\n });\n\n // Associated data is Node-only: Node honors it, the WASM browser backend\n // rejects it loudly rather than silently dropping it (which would diverge).\n test('associatedData is Node-only: Node succeeds, browser rejects', async () => {\n const associatedData = new Uint8Array(12).fill(0x04);\n expect(await node.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toSucceed();\n expect(await browser.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toFailWith(\n /associatedData is not supported.*node-only/i\n );\n });\n});\n"]}
@@ -81,6 +81,50 @@ describe('NodeArgon2Provider', () => {
81
81
  expect(await provider.argon2id(RFC_PASSWORD, tinySalt, RFC_PARAMS)).toFail();
82
82
  });
83
83
  });
84
+ describe('keyed hashing (secret / associatedData)', () => {
85
+ // RFC 9106 §5.3 Argon2id known-answer test vector:
86
+ // password P = 32 bytes of 0x01, salt S = 16 bytes of 0x02,
87
+ // secret K = 8 bytes of 0x03, associated data X = 12 bytes of 0x04,
88
+ // t=3, m=32, p=4, tag=32.
89
+ // expected tag = 0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659
90
+ const KAT_PARAMS = {
91
+ memoryKiB: 32,
92
+ iterations: 3,
93
+ parallelism: 4,
94
+ outputBytes: 32
95
+ };
96
+ const KAT_PASSWORD = new Uint8Array(32).fill(0x01);
97
+ const KAT_SALT = new Uint8Array(16).fill(0x02);
98
+ const KAT_SECRET = new Uint8Array(8).fill(0x03);
99
+ const KAT_AD = new Uint8Array(12).fill(0x04);
100
+ const KAT_EXPECTED_HEX = '0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659';
101
+ test('reproduces the RFC 9106 §5.3 known-answer vector with secret + associatedData', async () => {
102
+ expect(await provider.argon2id(KAT_PASSWORD, KAT_SALT, KAT_PARAMS, {
103
+ secret: KAT_SECRET,
104
+ associatedData: KAT_AD
105
+ })).toSucceedAndSatisfy((bytes) => {
106
+ expect(Buffer.from(bytes).toString('hex')).toBe(KAT_EXPECTED_HEX);
107
+ });
108
+ });
109
+ test('adding a secret changes the derived output', async () => {
110
+ const withoutSecret = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
111
+ const withSecret = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { secret: KAT_SECRET })).orThrow();
112
+ expect(withSecret).not.toEqual(withoutSecret);
113
+ });
114
+ test('adding associated data changes the derived output', async () => {
115
+ const withoutAd = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
116
+ const withAd = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData: KAT_AD })).orThrow();
117
+ expect(withAd).not.toEqual(withoutAd);
118
+ });
119
+ test('empty secret / associatedData are a no-op (byte-identical to omitting options)', async () => {
120
+ const baseline = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
121
+ const emptyOptions = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, {
122
+ secret: new Uint8Array(0),
123
+ associatedData: new Uint8Array(0)
124
+ })).orThrow();
125
+ expect(emptyOptions).toEqual(baseline);
126
+ });
127
+ });
84
128
  describe('parameter validation', () => {
85
129
  test('fails when memoryKiB < 8', async () => {
86
130
  expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, Object.assign(Object.assign({}, RFC_PARAMS), { memoryKiB: 7 }))).toFailWith(/memoryKiB must be >= 8/i);
@@ -1 +1 @@
1
- {"version":3,"file":"nodeArgon2Provider.test.js","sourceRoot":"","sources":["../../../../src/test/unit/argon2/nodeArgon2Provider.test.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;A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,CAAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,WAAW,EAAE,CAAC,IAAG,CAAC,CAAC,UAAU,CACnG,2BAA2B,CAC5B,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport '@fgv/ts-utils-jest';\nimport { NodeArgon2Provider } from '../../../packlets/argon2';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n// RFC 9106 §B.3 parameter set (no secret/AD — our interface does not expose those fields).\n// t=3, m=32, p=4, tag=32. Used for determinism and cross-runtime agreement.\nconst RFC_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n};\nconst RFC_PASSWORD = new Uint8Array(32).fill(0x01);\nconst RFC_SALT = new Uint8Array(16).fill(0x02);\n\ndescribe('NodeArgon2Provider', () => {\n let provider: NodeArgon2Provider;\n\n beforeEach(() => {\n provider = NodeArgon2Provider.create().orThrow();\n });\n\n describe('create()', () => {\n test('returns a provider instance', () => {\n expect(NodeArgon2Provider.create()).toSucceedAndSatisfy((p) => {\n expect(p).toBeInstanceOf(NodeArgon2Provider);\n });\n });\n });\n\n describe('argon2id()', () => {\n test('derives a key with Uint8Array password', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('derives a key with string password', async () => {\n expect(await provider.argon2id('password', RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('is deterministic — same inputs produce identical bytes', async () => {\n const r1 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const r2 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n expect(r1).toEqual(r2);\n });\n\n test('different passwords produce different bytes', async () => {\n const a = (await provider.argon2id(new Uint8Array(32).fill(0x01), RFC_SALT, RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(new Uint8Array(32).fill(0x02), RFC_SALT, RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('different salts produce different bytes', async () => {\n const a = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x02), RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x03), RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('respects outputBytes', async () => {\n expect(\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 64 })\n ).toSucceedAndSatisfy((bytes) => {\n expect(bytes.length).toBe(64);\n });\n });\n\n test('returns failure when underlying library rejects (salt too short)', async () => {\n const tinySalt = new Uint8Array(1).fill(0x02); // argon2 requires >= 8 bytes\n expect(await provider.argon2id(RFC_PASSWORD, tinySalt, RFC_PARAMS)).toFail();\n });\n });\n\n describe('parameter validation', () => {\n test('fails when memoryKiB < 8', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, memoryKiB: 7 })).toFailWith(\n /memoryKiB must be >= 8/i\n );\n });\n\n test('fails when iterations < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, iterations: 0 })).toFailWith(\n /iterations must be >= 1/i\n );\n });\n\n test('fails when parallelism < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 0 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when parallelism > 255', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 256 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when outputBytes < 4', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 3 })).toFailWith(\n /outputBytes must be >= 4/i\n );\n });\n });\n});\n"]}
1
+ {"version":3,"file":"nodeArgon2Provider.test.js","sourceRoot":"","sources":["../../../../src/test/unit/argon2/nodeArgon2Provider.test.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;AAEZ,8BAA4B;AAC5B,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C,MAAM,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,WAAW,EAAE,CAAC,IAAG,CAAC,CAAC,UAAU,CACnG,2BAA2B,CAC5B,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport '@fgv/ts-utils-jest';\nimport { NodeArgon2Provider } from '../../../packlets/argon2';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n// RFC 9106 §B.3 parameter set (no secret/AD — our interface does not expose those fields).\n// t=3, m=32, p=4, tag=32. Used for determinism and cross-runtime agreement.\nconst RFC_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n};\nconst RFC_PASSWORD = new Uint8Array(32).fill(0x01);\nconst RFC_SALT = new Uint8Array(16).fill(0x02);\n\ndescribe('NodeArgon2Provider', () => {\n let provider: NodeArgon2Provider;\n\n beforeEach(() => {\n provider = NodeArgon2Provider.create().orThrow();\n });\n\n describe('create()', () => {\n test('returns a provider instance', () => {\n expect(NodeArgon2Provider.create()).toSucceedAndSatisfy((p) => {\n expect(p).toBeInstanceOf(NodeArgon2Provider);\n });\n });\n });\n\n describe('argon2id()', () => {\n test('derives a key with Uint8Array password', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('derives a key with string password', async () => {\n expect(await provider.argon2id('password', RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('is deterministic — same inputs produce identical bytes', async () => {\n const r1 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const r2 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n expect(r1).toEqual(r2);\n });\n\n test('different passwords produce different bytes', async () => {\n const a = (await provider.argon2id(new Uint8Array(32).fill(0x01), RFC_SALT, RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(new Uint8Array(32).fill(0x02), RFC_SALT, RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('different salts produce different bytes', async () => {\n const a = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x02), RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x03), RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('respects outputBytes', async () => {\n expect(\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 64 })\n ).toSucceedAndSatisfy((bytes) => {\n expect(bytes.length).toBe(64);\n });\n });\n\n test('returns failure when underlying library rejects (salt too short)', async () => {\n const tinySalt = new Uint8Array(1).fill(0x02); // argon2 requires >= 8 bytes\n expect(await provider.argon2id(RFC_PASSWORD, tinySalt, RFC_PARAMS)).toFail();\n });\n });\n\n describe('keyed hashing (secret / associatedData)', () => {\n // RFC 9106 §5.3 Argon2id known-answer test vector:\n // password P = 32 bytes of 0x01, salt S = 16 bytes of 0x02,\n // secret K = 8 bytes of 0x03, associated data X = 12 bytes of 0x04,\n // t=3, m=32, p=4, tag=32.\n // expected tag = 0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659\n const KAT_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n };\n const KAT_PASSWORD = new Uint8Array(32).fill(0x01);\n const KAT_SALT = new Uint8Array(16).fill(0x02);\n const KAT_SECRET = new Uint8Array(8).fill(0x03);\n const KAT_AD = new Uint8Array(12).fill(0x04);\n const KAT_EXPECTED_HEX = '0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659';\n\n test('reproduces the RFC 9106 §5.3 known-answer vector with secret + associatedData', async () => {\n expect(\n await provider.argon2id(KAT_PASSWORD, KAT_SALT, KAT_PARAMS, {\n secret: KAT_SECRET,\n associatedData: KAT_AD\n })\n ).toSucceedAndSatisfy((bytes) => {\n expect(Buffer.from(bytes).toString('hex')).toBe(KAT_EXPECTED_HEX);\n });\n });\n\n test('adding a secret changes the derived output', async () => {\n const withoutSecret = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const withSecret = (\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { secret: KAT_SECRET })\n ).orThrow();\n expect(withSecret).not.toEqual(withoutSecret);\n });\n\n test('adding associated data changes the derived output', async () => {\n const withoutAd = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const withAd = (\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData: KAT_AD })\n ).orThrow();\n expect(withAd).not.toEqual(withoutAd);\n });\n\n test('empty secret / associatedData are a no-op (byte-identical to omitting options)', async () => {\n const baseline = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const emptyOptions = (\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, {\n secret: new Uint8Array(0),\n associatedData: new Uint8Array(0)\n })\n ).orThrow();\n expect(emptyOptions).toEqual(baseline);\n });\n });\n\n describe('parameter validation', () => {\n test('fails when memoryKiB < 8', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, memoryKiB: 7 })).toFailWith(\n /memoryKiB must be >= 8/i\n );\n });\n\n test('fails when iterations < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, iterations: 0 })).toFailWith(\n /iterations must be >= 1/i\n );\n });\n\n test('fails when parallelism < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 0 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when parallelism > 255', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 256 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when outputBytes < 4', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 3 })).toFailWith(\n /outputBytes must be >= 4/i\n );\n });\n });\n});\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fgv/ts-extras-argon2",
3
- "version": "5.1.0-41",
3
+ "version": "5.1.0-43",
4
4
  "description": "Argon2id key derivation for Node.js (wraps argon2/kelektiv)",
5
5
  "main": "lib/index.js",
6
6
  "types": "dist/ts-extras-argon2.d.ts",
@@ -57,18 +57,18 @@
57
57
  "@rushstack/heft-node-rig": "2.11.27",
58
58
  "@types/heft-jest": "1.0.6",
59
59
  "eslint-plugin-tsdoc": "~0.5.2",
60
- "@fgv/heft-dual-rig": "5.1.0-41",
61
- "@fgv/ts-extras": "5.1.0-41",
62
- "@fgv/ts-utils-jest": "5.1.0-41",
63
- "@fgv/ts-web-extras-argon2": "5.1.0-41",
64
- "@fgv/ts-utils": "5.1.0-41"
60
+ "@fgv/ts-extras": "5.1.0-43",
61
+ "@fgv/ts-utils": "5.1.0-43",
62
+ "@fgv/heft-dual-rig": "5.1.0-43",
63
+ "@fgv/ts-utils-jest": "5.1.0-43",
64
+ "@fgv/ts-web-extras-argon2": "5.1.0-43"
65
65
  },
66
66
  "dependencies": {
67
67
  "argon2": "~0.44.0"
68
68
  },
69
69
  "peerDependencies": {
70
- "@fgv/ts-extras": "5.1.0-41",
71
- "@fgv/ts-utils": "5.1.0-41"
70
+ "@fgv/ts-extras": "5.1.0-43",
71
+ "@fgv/ts-utils": "5.1.0-43"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "heft build --clean",
@@ -1,3 +1,3 @@
1
1
  Caching build output folders: dist, lib, temp, .rush/temp/operation/build
2
2
  Successfully set cache entry.
3
- Cache key: ce8febd276f3ae0c69a1a152aa1f320ae0ce9036
3
+ Cache key: ae98a2cb0f0e3676281692c1abfaad46544f548a
@@ -5,5 +5,5 @@ Invoking: heft build --clean
5
5
  [build:lint] Using ESLint version 9.39.5
6
6
  [build:api-extractor] Using API Extractor version 7.58.9
7
7
  [build:api-extractor] Analysis will use the bundled TypeScript version 5.9.3
8
- ---- build finished (14.076s) ----
9
- -------------------- Finished (14.086s) --------------------
8
+ ---- build finished (14.943s) ----
9
+ -------------------- Finished (14.952s) --------------------
@@ -45,13 +45,18 @@ export class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider {
45
45
  * @param password - The password or passphrase (string or raw bytes).
46
46
  * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).
47
47
  * @param params - Argon2id parameters. All values are validated before derivation.
48
+ * @param options - Optional {@link @fgv/ts-extras#CryptoUtils.IArgon2idKeyingOptions | keyed-hashing inputs}
49
+ * (RFC 9106 secret K and/or associated data X). Both are wired through to the
50
+ * underlying `argon2` binding when present and non-empty; omitting them (or
51
+ * passing empty arrays) leaves the output byte-identical to prior behavior.
48
52
  * @returns Success with the derived key bytes, or Failure with a descriptive message.
49
53
  * @public
50
54
  */
51
55
  public async argon2id(
52
56
  password: Uint8Array | string,
53
57
  salt: Uint8Array,
54
- params: CryptoUtils.IArgon2idParams
58
+ params: CryptoUtils.IArgon2idParams,
59
+ options?: CryptoUtils.IArgon2idKeyingOptions
55
60
  ): Promise<Result<Uint8Array>> {
56
61
  const error = NodeArgon2Provider._validateParams(params);
57
62
  if (error !== undefined) {
@@ -66,7 +71,13 @@ export class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider {
66
71
  timeCost: params.iterations,
67
72
  parallelism: params.parallelism,
68
73
  hashLength: params.outputBytes,
69
- raw: true
74
+ raw: true,
75
+ // Only pass secret/associatedData when present and non-empty so that
76
+ // existing callers (and empty options) produce byte-identical output.
77
+ ...(options?.secret && options.secret.length > 0 ? { secret: Buffer.from(options.secret) } : {}),
78
+ ...(options?.associatedData && options.associatedData.length > 0
79
+ ? { associatedData: Buffer.from(options.associatedData) }
80
+ : {})
70
81
  });
71
82
  return Uint8Array.from(result);
72
83
  });
@@ -109,4 +109,29 @@ describe('cross-runtime equivalence: NodeArgon2Provider vs BrowserArgon2Provider
109
109
  const browserBytes = (await browser.argon2id(password, salt, params)).orThrow();
110
110
  expect(nodeBytes).toEqual(browserBytes);
111
111
  });
112
+
113
+ // A secret (RFC 9106 keyed hashing) is supported by both backends and must
114
+ // stay byte-identical across them. Small params keep this fast.
115
+ test('secret-only keyed hashing is byte-identical across runtimes', async () => {
116
+ const params: CryptoUtils.IArgon2idParams = {
117
+ memoryKiB: 8,
118
+ iterations: 1,
119
+ parallelism: 1,
120
+ outputBytes: 32
121
+ };
122
+ const secret = new Uint8Array(8).fill(0x03);
123
+ const nodeBytes = (await node.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();
124
+ const browserBytes = (await browser.argon2id(RFC_PASSWORD, RFC_SALT, params, { secret })).orThrow();
125
+ expect(nodeBytes).toEqual(browserBytes);
126
+ });
127
+
128
+ // Associated data is Node-only: Node honors it, the WASM browser backend
129
+ // rejects it loudly rather than silently dropping it (which would diverge).
130
+ test('associatedData is Node-only: Node succeeds, browser rejects', async () => {
131
+ const associatedData = new Uint8Array(12).fill(0x04);
132
+ expect(await node.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toSucceed();
133
+ expect(await browser.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData })).toFailWith(
134
+ /associatedData is not supported.*node-only/i
135
+ );
136
+ });
112
137
  });
@@ -95,6 +95,63 @@ describe('NodeArgon2Provider', () => {
95
95
  });
96
96
  });
97
97
 
98
+ describe('keyed hashing (secret / associatedData)', () => {
99
+ // RFC 9106 §5.3 Argon2id known-answer test vector:
100
+ // password P = 32 bytes of 0x01, salt S = 16 bytes of 0x02,
101
+ // secret K = 8 bytes of 0x03, associated data X = 12 bytes of 0x04,
102
+ // t=3, m=32, p=4, tag=32.
103
+ // expected tag = 0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659
104
+ const KAT_PARAMS: CryptoUtils.IArgon2idParams = {
105
+ memoryKiB: 32,
106
+ iterations: 3,
107
+ parallelism: 4,
108
+ outputBytes: 32
109
+ };
110
+ const KAT_PASSWORD = new Uint8Array(32).fill(0x01);
111
+ const KAT_SALT = new Uint8Array(16).fill(0x02);
112
+ const KAT_SECRET = new Uint8Array(8).fill(0x03);
113
+ const KAT_AD = new Uint8Array(12).fill(0x04);
114
+ const KAT_EXPECTED_HEX = '0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659';
115
+
116
+ test('reproduces the RFC 9106 §5.3 known-answer vector with secret + associatedData', async () => {
117
+ expect(
118
+ await provider.argon2id(KAT_PASSWORD, KAT_SALT, KAT_PARAMS, {
119
+ secret: KAT_SECRET,
120
+ associatedData: KAT_AD
121
+ })
122
+ ).toSucceedAndSatisfy((bytes) => {
123
+ expect(Buffer.from(bytes).toString('hex')).toBe(KAT_EXPECTED_HEX);
124
+ });
125
+ });
126
+
127
+ test('adding a secret changes the derived output', async () => {
128
+ const withoutSecret = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
129
+ const withSecret = (
130
+ await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { secret: KAT_SECRET })
131
+ ).orThrow();
132
+ expect(withSecret).not.toEqual(withoutSecret);
133
+ });
134
+
135
+ test('adding associated data changes the derived output', async () => {
136
+ const withoutAd = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
137
+ const withAd = (
138
+ await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, { associatedData: KAT_AD })
139
+ ).orThrow();
140
+ expect(withAd).not.toEqual(withoutAd);
141
+ });
142
+
143
+ test('empty secret / associatedData are a no-op (byte-identical to omitting options)', async () => {
144
+ const baseline = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
145
+ const emptyOptions = (
146
+ await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS, {
147
+ secret: new Uint8Array(0),
148
+ associatedData: new Uint8Array(0)
149
+ })
150
+ ).orThrow();
151
+ expect(emptyOptions).toEqual(baseline);
152
+ });
153
+ });
154
+
98
155
  describe('parameter validation', () => {
99
156
  test('fails when memoryKiB < 8', async () => {
100
157
  expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, memoryKiB: 7 })).toFailWith(
@@ -3,7 +3,7 @@
3
3
  "fileVersions": [
4
4
  [
5
5
  "packlets/argon2/nodeArgon2Provider.ts",
6
- "7fba10a0d98603b85a7daadfca28fe2eb646daa1e873feea04aa2da6cf8b39e2_SuhuDnP05o+L+ZcbHaL6AK1TI6M="
6
+ "18b061f3335d06210c4947b86e505579a786d7939b0f5568f479bd3835a3968b_SuhuDnP05o+L+ZcbHaL6AK1TI6M="
7
7
  ],
8
8
  [
9
9
  "packlets/argon2/index.ts",
@@ -15,11 +15,11 @@
15
15
  ],
16
16
  [
17
17
  "test/unit/argon2/crossRuntime.test.ts",
18
- "b7210285bc3abff2886017683f77427af13745dfd7d59026e0dd85eb653bf427_A0mlTWOkfmp3LOdvQzSKe8Mz6c4="
18
+ "3921cfb9ae3162ad183574f8e0824b4dbb409c39a865eaef1c79aef5909d573f_A0mlTWOkfmp3LOdvQzSKe8Mz6c4="
19
19
  ],
20
20
  [
21
21
  "test/unit/argon2/nodeArgon2Provider.test.ts",
22
- "3874ea7c2e3f92a0e622dbb82a9942aebb3e3a56f0e41fb1cd2fb1ee9eccce82_A0mlTWOkfmp3LOdvQzSKe8Mz6c4="
22
+ "d82fff2cae005e84ba4972e4ce376b385658c60171541846a4e56515e9cf6b46_A0mlTWOkfmp3LOdvQzSKe8Mz6c4="
23
23
  ]
24
24
  ],
25
25
  "filesHash": "mPi6VqQVqWhEMoj6ZpJXZQ"
@@ -1 +1 @@
1
- {"fileNames":["../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../../common/temp/node_modules/.pnpm/argon2@0.44.0/node_modules/argon2/argon2.d.cts","../../../../ts-utils/dist/ts-utils.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/zone.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/settings.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/_util.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/misc.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/duration.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/interval.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/datetime.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/info.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/luxon.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/index.d.ts","../../../../ts-json-base/dist/ts-json-base.d.ts","../../../../ts-extras/dist/ts-extras.d.ts","../../../src/packlets/argon2/nodeArgon2Provider.ts","../../../src/packlets/argon2/index.ts","../../../src/index.ts","../../../../ts-utils-jest/lib/types/index.d.ts","../../../../ts-utils-jest/lib/helpers/fsHelpers.d.ts","../../../../ts-utils-jest/lib/index.d.ts","../../../../ts-web-extras-argon2/dist/ts-web-extras-argon2.d.ts","../../../src/test/unit/argon2/crossRuntime.test.ts","../../../src/test/unit/argon2/nodeArgon2Provider.test.ts","../../../../../common/temp/node_modules/.pnpm/@types+heft-jest@1.0.6/node_modules/@types/heft-jest/mocked.d.ts","../../../../../common/temp/node_modules/.pnpm/@jest+expect-utils@29.7.0/node_modules/@jest/expect-utils/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@sinclair+typebox@0.27.10/node_modules/@sinclair/typebox/typebox.d.ts","../../../../../common/temp/node_modules/.pnpm/@jest+schemas@29.6.3/node_modules/@jest/schemas/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/jest-diff@29.7.0/node_modules/jest-diff/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/jest-matcher-utils@29.7.0/node_modules/jest-matcher-utils/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+jest@29.5.14/node_modules/@types/jest/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+heft-jest@1.0.6/node_modules/@types/heft-jest/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/compatibility/disposable.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/compatibility/indexable.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/compatibility/iterators.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/compatibility/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/globals.typedarray.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/buffer.buffer.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/globals.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/web-globals/domexception.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/web-globals/events.d.ts","../../../../../common/temp/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/web-globals/fetch.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/assert.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/assert/strict.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/async_hooks.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/buffer.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/child_process.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/cluster.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/console.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/constants.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/crypto.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/dgram.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/diagnostics_channel.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/dns.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/dns/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/domain.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/fs.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/fs/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/http.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/http2.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/https.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/inspector.generated.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/module.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/net.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/os.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/path.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/perf_hooks.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/process.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/punycode.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/querystring.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/readline.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/readline/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/repl.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/sea.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/stream.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/stream/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/stream/consumers.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/stream/web.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/string_decoder.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/test.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/timers.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/timers/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/tls.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/trace_events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/tty.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/url.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/util.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/v8.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/vm.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/wasi.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/worker_threads.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/zlib.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/index.d.ts"],"fileIdsList":[[86,133],[73,86,133],[70,79,86,133],[75,78,86,133],[57,86,133],[50,86,133],[49,51,53,54,58,86,133],[51,52,55,86,133],[49,52,55,86,133],[51,53,55,86,133],[49,50,52,53,54,55,56,86,133],[49,55,86,133],[51,86,133],[86,130,133],[86,132,133],[133],[86,133,138,166],[86,133,134,139,144,152,163,174],[86,133,134,135,144,152],[81,82,83,86,133],[86,133,136,175],[86,133,137,138,145,153],[86,133,138,163,171],[86,133,139,141,144,152],[86,132,133,140],[86,133,141,142],[86,133,143,144],[86,132,133,144],[86,133,144,145,146,163,174],[86,133,144,145,146,159,163,166],[86,133,141,144,147,152,163,174],[86,133,144,145,147,148,152,163,171,174],[86,133,147,149,163,171,174],[84,85,86,87,88,89,90,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180],[86,133,144,150],[86,133,151,174,179],[86,133,141,144,152,163],[86,133,153],[86,133,154],[86,132,133,155],[86,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180],[86,133,157],[86,133,158],[86,133,144,159,160],[86,133,159,161,175,177],[86,133,144,163,164,166],[86,133,165,166],[86,133,163,164],[86,133,166],[86,133,167],[86,130,133,163,168],[86,133,144,169,170],[86,133,169,170],[86,133,138,152,163,171],[86,133,172],[86,133,152,173],[86,133,147,158,174],[86,133,138,175],[86,133,163,176],[86,133,151,177],[86,133,178],[86,128,133],[86,128,133,144,146,155,163,166,174,177,179],[86,133,163,180],[71,77,86,133],[75,86,133],[72,76,86,133],[74,86,133],[86,100,104,133,174],[86,100,133,163,174],[86,95,133],[86,97,100,133,171,174],[86,133,152,171],[86,133,181],[86,95,133,181],[86,97,100,133,152,174],[86,92,93,96,99,133,144,163,174],[86,100,107,133],[86,92,98,133],[86,100,121,122,133],[86,96,100,133,166,174,181],[86,121,133,181],[86,94,95,133,181],[86,100,133],[86,94,95,96,97,98,99,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,122,123,124,125,126,127,133],[86,100,115,133],[86,100,107,108,133],[86,98,100,108,109,133],[86,99,133],[86,92,95,100,133],[86,100,104,108,109,133],[86,104,133],[86,98,100,103,133,174],[86,92,97,100,107,133],[86,133,163],[86,95,100,121,133,179,181],[62,86,133],[60,61,86,133],[47,48,60,86,133],[60,62,66,67,86,133],[60,62,66,86,133],[48,58,59,86,133],[48,86,133],[86,133,145],[64,65,86,133],[48,60,86,133]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"a2104f6f9546d9aecbdfc4cb4700496c8e57eafe36843fdeafd048bc7f79f934","impliedFormat":1},"1a4144dcbef27308b9a3fbccbe2383034f57157af59263b1b8f20f47fbda02ac",{"version":"5339f84dfcb7b04aa1c2b4d7713d6128039381447f07abc2e48d36685e2eef44","impliedFormat":1},{"version":"fb35a61a39c933d31b5b2549d906b2c932a1486622958586f662dbd4b2fe72e6","impliedFormat":1},{"version":"24e2728268be1ad2407bab004549d2753a49b2acb0f117a04c4e28ffb3ecdd4f","impliedFormat":1},{"version":"aff159b14eba59afe98a88fe6f57881ba02895fb9763512dda9083497bdcd0e6","impliedFormat":1},{"version":"1f2bddea07543ccda708134cca0600b4d9ac9bd774ec1ede0a69935b04df1496","impliedFormat":1},{"version":"6e8997d08f6798d0a9416df24312cafd084e6184a205d9283eba95ef56f8ef8b","impliedFormat":1},{"version":"f6d1f573d0a2fb0b412a65f9041eb627298bd2fc74b5067b1e02f14df41a8952","impliedFormat":1},{"version":"26080058b725ac0b480241751255b4391f722263778e84e66a62068705aafd3c","impliedFormat":1},{"version":"46afbf46c3d62eac2afead3a2011d506637bf4f2c05e1fd64bbf7e2bb2947b7c","impliedFormat":1},{"version":"84d02daa32c7a8bff4946bbc7d878ffb7114c19879f7bfceeeb39bef48e93c42","impliedFormat":1},"efa383267c5cdf693c8d1ac82a21117bfffa99cb03530acd4efaf669c15451cf","2990b353532d527d16c1c3aa05b29fd45ec9862210e45a3ff86f35cc8e242ed3",{"version":"7fba10a0d98603b85a7daadfca28fe2eb646daa1e873feea04aa2da6cf8b39e2","signature":"cca5848bb82392e7f1dde1cadb18f8dee3da0da2bcf2a71e16f7211d91429f40"},{"version":"e6e0e58c38d2df129c90ab67727a651f299d3467c47bc913ed0203568900fe8d","signature":"7100c0abc0667ac9aa77727d45c92a766700215a4f51b08a6931557ca25c13bb"},{"version":"72db991d06f1b4e84fb829b30ca87153e8080ea1eb253933e8cb227df48aff3d","signature":"24bed5b7b3f6086ed2a16b63ddbb5f44fc524bc2e46b7457ce578a44efac89a7"},{"version":"ee5b2757ccf8db082239d89e4ccce947c116eccc13774bee571e054c3f21e07b","affectsGlobalScope":true},"7226b455cf19ac49ec1f7f8f16931094b58fdfe3b8cfb411c2d164d8187ab6c3","9bc445a24012b59c572f600f827de0113bcb8ff8d6bbfb650f30c504348858b0","d186dd829798e2e839e6232a32a380f445d113c54c8331d3757ea716bf67d6a5",{"version":"b7210285bc3abff2886017683f77427af13745dfd7d59026e0dd85eb653bf427","signature":"526a1bdc740d8cfd8b5a7f379070acaf25a9ef496e9de3d9e95d1b200faa3d7d"},{"version":"3874ea7c2e3f92a0e622dbb82a9942aebb3e3a56f0e41fb1cd2fb1ee9eccce82","signature":"526a1bdc740d8cfd8b5a7f379070acaf25a9ef496e9de3d9e95d1b200faa3d7d"},{"version":"451d384cf4019e816adf1d72550d9d0d81e77061f394c8a2261b7044cfc1e793","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"e1028394c1cf96d5d057ecc647e31e457b919092f882ed0c7092152b077fed9d","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},{"version":"d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","impliedFormat":1},{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c9e8e05e528f96c9a463466b04940227303bf050600f4d80d6ecaad03d7b42f","affectsGlobalScope":true,"impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"ba481bca06f37d3f2c137ce343c7d5937029b2468f8e26111f3c9d9963d6568d","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true,"impliedFormat":1},{"version":"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","impliedFormat":1},{"version":"3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","impliedFormat":1},{"version":"4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true,"impliedFormat":1},{"version":"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","impliedFormat":1},{"version":"58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","impliedFormat":1},{"version":"641942a78f9063caa5d6b777c99304b7d1dc7328076038c6d94d8a0b81fc95c1","impliedFormat":1},{"version":"1123a83f35cf56c97de746f0a7250012153c61a167e4a61668bf50e558162d14","impliedFormat":1},{"version":"855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","impliedFormat":1},{"version":"5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"7e20d899c28ca26a2a7afc98beaa69e63ff7fba0a8bc47b4e3bf3ede5e09e424","impliedFormat":1},{"version":"2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","impliedFormat":1},{"version":"a192fe8ec33f75edbc8d8f3ed79f768dfae11ff5735e7fe52bfa69956e46d78d","impliedFormat":1},{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true,"impliedFormat":1},{"version":"372413016d17d804e1d139418aca0c68e47a83fb6669490857f4b318de8cccb3","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"085f552d005479e2e6a7311cdbbe5d8c55c497b4d19274285df161ee9684cd9c","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"007faacc9268357caa21d24169f3f3f2497af3e9241308df2d89f6e6d9bb3f2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","impliedFormat":1},{"version":"5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5","impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"809821b8a065e3234a55b3a9d7846231ed18d66dd749f2494c66288d890daf7f","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true,"impliedFormat":1},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true,"impliedFormat":1},{"version":"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","impliedFormat":1},{"version":"1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","impliedFormat":1},{"version":"f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e","impliedFormat":1},{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7c5e2ea4a9749097c347454805e933844ed207b6eefec6b7cfd418b5f5f7b28","impliedFormat":1},{"version":"b1810689b76fd473bd12cc9ee219f8e62f54a7d08019a235d07424afbf074d25","impliedFormat":1}],"root":[[61,63],68,69],"options":{"allowUnreachableCode":false,"declaration":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"inlineSources":true,"jsx":2,"module":1,"noEmitOnError":false,"outDir":"../../../lib","rootDir":"../../../src","sourceMap":true,"strict":true,"target":4,"tsBuildInfoFile":"./ts_8nwakTlr.json","useUnknownInCatchVariables":false},"referencedMap":[[71,1],[74,2],[73,1],[80,3],[70,1],[79,4],[58,5],[51,6],[55,7],[53,8],[56,9],[54,10],[57,11],[52,1],[50,12],[49,13],[130,14],[131,14],[132,15],[86,16],[133,17],[134,18],[135,19],[81,1],[84,20],[82,1],[83,1],[136,21],[137,22],[138,23],[139,24],[140,25],[141,26],[142,26],[143,27],[144,28],[145,29],[146,30],[87,1],[85,1],[147,31],[148,32],[149,33],[181,34],[150,35],[151,36],[152,37],[153,38],[154,39],[155,40],[156,41],[157,42],[158,43],[159,44],[160,44],[161,45],[162,1],[163,46],[165,47],[164,48],[166,49],[167,50],[168,51],[169,52],[170,53],[171,54],[172,55],[173,56],[174,57],[175,58],[176,59],[177,60],[178,61],[88,1],[89,1],[90,1],[129,62],[179,63],[180,64],[47,1],[91,1],[72,1],[78,65],[76,66],[77,67],[75,68],[45,1],[46,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[19,1],[20,1],[4,1],[21,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[1,1],[107,69],[117,70],[106,69],[127,71],[98,72],[97,73],[126,74],[120,75],[125,76],[100,77],[114,78],[99,79],[123,80],[95,81],[94,74],[124,82],[96,83],[101,84],[102,1],[105,84],[92,1],[128,85],[118,86],[109,87],[110,88],[112,89],[108,90],[111,91],[121,74],[103,92],[104,93],[113,94],[93,95],[116,86],[115,84],[119,1],[122,96],[63,97],[62,98],[61,99],[68,100],[69,101],[60,102],[59,103],[65,104],[66,105],[64,103],[48,1],[67,106]],"version":"5.9.3"}
1
+ {"fileNames":["../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../../common/temp/node_modules/.pnpm/argon2@0.44.0/node_modules/argon2/argon2.d.cts","../../../../ts-utils/dist/ts-utils.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/zone.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/settings.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/_util.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/misc.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/duration.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/interval.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/datetime.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/info.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/src/luxon.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+luxon@3.7.2/node_modules/@types/luxon/index.d.ts","../../../../ts-json-base/dist/ts-json-base.d.ts","../../../../ts-extras/dist/ts-extras.d.ts","../../../src/packlets/argon2/nodeArgon2Provider.ts","../../../src/packlets/argon2/index.ts","../../../src/index.ts","../../../../ts-utils-jest/lib/types/index.d.ts","../../../../ts-utils-jest/lib/helpers/fsHelpers.d.ts","../../../../ts-utils-jest/lib/index.d.ts","../../../../ts-web-extras-argon2/dist/ts-web-extras-argon2.d.ts","../../../src/test/unit/argon2/crossRuntime.test.ts","../../../src/test/unit/argon2/nodeArgon2Provider.test.ts","../../../../../common/temp/node_modules/.pnpm/@types+heft-jest@1.0.6/node_modules/@types/heft-jest/mocked.d.ts","../../../../../common/temp/node_modules/.pnpm/@jest+expect-utils@29.7.0/node_modules/@jest/expect-utils/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@sinclair+typebox@0.27.10/node_modules/@sinclair/typebox/typebox.d.ts","../../../../../common/temp/node_modules/.pnpm/@jest+schemas@29.6.3/node_modules/@jest/schemas/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/jest-diff@29.7.0/node_modules/jest-diff/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/jest-matcher-utils@29.7.0/node_modules/jest-matcher-utils/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+jest@29.5.14/node_modules/@types/jest/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+heft-jest@1.0.6/node_modules/@types/heft-jest/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/compatibility/disposable.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/compatibility/indexable.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/compatibility/iterators.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/compatibility/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/globals.typedarray.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/buffer.buffer.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/globals.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/web-globals/domexception.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/web-globals/events.d.ts","../../../../../common/temp/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../../../common/temp/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/web-globals/fetch.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/assert.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/assert/strict.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/async_hooks.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/buffer.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/child_process.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/cluster.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/console.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/constants.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/crypto.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/dgram.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/diagnostics_channel.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/dns.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/dns/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/domain.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/fs.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/fs/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/http.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/http2.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/https.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/inspector.generated.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/module.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/net.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/os.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/path.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/perf_hooks.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/process.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/punycode.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/querystring.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/readline.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/readline/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/repl.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/sea.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/stream.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/stream/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/stream/consumers.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/stream/web.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/string_decoder.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/test.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/timers.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/timers/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/tls.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/trace_events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/tty.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/url.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/util.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/v8.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/vm.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/wasi.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/worker_threads.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/zlib.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@20.19.43/node_modules/@types/node/index.d.ts"],"fileIdsList":[[86,133],[73,86,133],[70,79,86,133],[75,78,86,133],[57,86,133],[50,86,133],[49,51,53,54,58,86,133],[51,52,55,86,133],[49,52,55,86,133],[51,53,55,86,133],[49,50,52,53,54,55,56,86,133],[49,55,86,133],[51,86,133],[86,130,133],[86,132,133],[133],[86,133,138,166],[86,133,134,139,144,152,163,174],[86,133,134,135,144,152],[81,82,83,86,133],[86,133,136,175],[86,133,137,138,145,153],[86,133,138,163,171],[86,133,139,141,144,152],[86,132,133,140],[86,133,141,142],[86,133,143,144],[86,132,133,144],[86,133,144,145,146,163,174],[86,133,144,145,146,159,163,166],[86,133,141,144,147,152,163,174],[86,133,144,145,147,148,152,163,171,174],[86,133,147,149,163,171,174],[84,85,86,87,88,89,90,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180],[86,133,144,150],[86,133,151,174,179],[86,133,141,144,152,163],[86,133,153],[86,133,154],[86,132,133,155],[86,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180],[86,133,157],[86,133,158],[86,133,144,159,160],[86,133,159,161,175,177],[86,133,144,163,164,166],[86,133,165,166],[86,133,163,164],[86,133,166],[86,133,167],[86,130,133,163,168],[86,133,144,169,170],[86,133,169,170],[86,133,138,152,163,171],[86,133,172],[86,133,152,173],[86,133,147,158,174],[86,133,138,175],[86,133,163,176],[86,133,151,177],[86,133,178],[86,128,133],[86,128,133,144,146,155,163,166,174,177,179],[86,133,163,180],[71,77,86,133],[75,86,133],[72,76,86,133],[74,86,133],[86,100,104,133,174],[86,100,133,163,174],[86,95,133],[86,97,100,133,171,174],[86,133,152,171],[86,133,181],[86,95,133,181],[86,97,100,133,152,174],[86,92,93,96,99,133,144,163,174],[86,100,107,133],[86,92,98,133],[86,100,121,122,133],[86,96,100,133,166,174,181],[86,121,133,181],[86,94,95,133,181],[86,100,133],[86,94,95,96,97,98,99,100,101,102,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,122,123,124,125,126,127,133],[86,100,115,133],[86,100,107,108,133],[86,98,100,108,109,133],[86,99,133],[86,92,95,100,133],[86,100,104,108,109,133],[86,104,133],[86,98,100,103,133,174],[86,92,97,100,107,133],[86,133,163],[86,95,100,121,133,179,181],[62,86,133],[60,61,86,133],[47,48,60,86,133],[60,62,66,67,86,133],[60,62,66,86,133],[48,58,59,86,133],[48,86,133],[86,133,145],[64,65,86,133],[48,60,86,133]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"a2104f6f9546d9aecbdfc4cb4700496c8e57eafe36843fdeafd048bc7f79f934","impliedFormat":1},"1a4144dcbef27308b9a3fbccbe2383034f57157af59263b1b8f20f47fbda02ac",{"version":"5339f84dfcb7b04aa1c2b4d7713d6128039381447f07abc2e48d36685e2eef44","impliedFormat":1},{"version":"fb35a61a39c933d31b5b2549d906b2c932a1486622958586f662dbd4b2fe72e6","impliedFormat":1},{"version":"24e2728268be1ad2407bab004549d2753a49b2acb0f117a04c4e28ffb3ecdd4f","impliedFormat":1},{"version":"aff159b14eba59afe98a88fe6f57881ba02895fb9763512dda9083497bdcd0e6","impliedFormat":1},{"version":"1f2bddea07543ccda708134cca0600b4d9ac9bd774ec1ede0a69935b04df1496","impliedFormat":1},{"version":"6e8997d08f6798d0a9416df24312cafd084e6184a205d9283eba95ef56f8ef8b","impliedFormat":1},{"version":"f6d1f573d0a2fb0b412a65f9041eb627298bd2fc74b5067b1e02f14df41a8952","impliedFormat":1},{"version":"26080058b725ac0b480241751255b4391f722263778e84e66a62068705aafd3c","impliedFormat":1},{"version":"46afbf46c3d62eac2afead3a2011d506637bf4f2c05e1fd64bbf7e2bb2947b7c","impliedFormat":1},{"version":"84d02daa32c7a8bff4946bbc7d878ffb7114c19879f7bfceeeb39bef48e93c42","impliedFormat":1},"efa383267c5cdf693c8d1ac82a21117bfffa99cb03530acd4efaf669c15451cf","e5a83fe2aab64d7cae3fcd7d769f8dc24fa9a2a83ed56331c87ee1e4faebc2c7",{"version":"18b061f3335d06210c4947b86e505579a786d7939b0f5568f479bd3835a3968b","signature":"59461435179df6584f1d67408e7f9d3fff37e62556ca4b6371196648601bf545"},{"version":"e6e0e58c38d2df129c90ab67727a651f299d3467c47bc913ed0203568900fe8d","signature":"7100c0abc0667ac9aa77727d45c92a766700215a4f51b08a6931557ca25c13bb"},{"version":"72db991d06f1b4e84fb829b30ca87153e8080ea1eb253933e8cb227df48aff3d","signature":"24bed5b7b3f6086ed2a16b63ddbb5f44fc524bc2e46b7457ce578a44efac89a7"},{"version":"ee5b2757ccf8db082239d89e4ccce947c116eccc13774bee571e054c3f21e07b","affectsGlobalScope":true},"7226b455cf19ac49ec1f7f8f16931094b58fdfe3b8cfb411c2d164d8187ab6c3","9bc445a24012b59c572f600f827de0113bcb8ff8d6bbfb650f30c504348858b0","425540ef64cc100e12e41deb71a446b5e0145b3afe3e61dfcd323a3e02af60aa",{"version":"3921cfb9ae3162ad183574f8e0824b4dbb409c39a865eaef1c79aef5909d573f","signature":"526a1bdc740d8cfd8b5a7f379070acaf25a9ef496e9de3d9e95d1b200faa3d7d"},{"version":"d82fff2cae005e84ba4972e4ce376b385658c60171541846a4e56515e9cf6b46","signature":"526a1bdc740d8cfd8b5a7f379070acaf25a9ef496e9de3d9e95d1b200faa3d7d"},{"version":"451d384cf4019e816adf1d72550d9d0d81e77061f394c8a2261b7044cfc1e793","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"e1028394c1cf96d5d057ecc647e31e457b919092f882ed0c7092152b077fed9d","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},{"version":"d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","impliedFormat":1},{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c9e8e05e528f96c9a463466b04940227303bf050600f4d80d6ecaad03d7b42f","affectsGlobalScope":true,"impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"ba481bca06f37d3f2c137ce343c7d5937029b2468f8e26111f3c9d9963d6568d","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true,"impliedFormat":1},{"version":"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","impliedFormat":1},{"version":"3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","impliedFormat":1},{"version":"4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true,"impliedFormat":1},{"version":"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","impliedFormat":1},{"version":"58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","impliedFormat":1},{"version":"641942a78f9063caa5d6b777c99304b7d1dc7328076038c6d94d8a0b81fc95c1","impliedFormat":1},{"version":"1123a83f35cf56c97de746f0a7250012153c61a167e4a61668bf50e558162d14","impliedFormat":1},{"version":"855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","impliedFormat":1},{"version":"5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"7e20d899c28ca26a2a7afc98beaa69e63ff7fba0a8bc47b4e3bf3ede5e09e424","impliedFormat":1},{"version":"2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","impliedFormat":1},{"version":"a192fe8ec33f75edbc8d8f3ed79f768dfae11ff5735e7fe52bfa69956e46d78d","impliedFormat":1},{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true,"impliedFormat":1},{"version":"372413016d17d804e1d139418aca0c68e47a83fb6669490857f4b318de8cccb3","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"085f552d005479e2e6a7311cdbbe5d8c55c497b4d19274285df161ee9684cd9c","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"007faacc9268357caa21d24169f3f3f2497af3e9241308df2d89f6e6d9bb3f2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","impliedFormat":1},{"version":"5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5","impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"809821b8a065e3234a55b3a9d7846231ed18d66dd749f2494c66288d890daf7f","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true,"impliedFormat":1},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true,"impliedFormat":1},{"version":"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","impliedFormat":1},{"version":"1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","impliedFormat":1},{"version":"f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e","impliedFormat":1},{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7c5e2ea4a9749097c347454805e933844ed207b6eefec6b7cfd418b5f5f7b28","impliedFormat":1},{"version":"b1810689b76fd473bd12cc9ee219f8e62f54a7d08019a235d07424afbf074d25","impliedFormat":1}],"root":[[61,63],68,69],"options":{"allowUnreachableCode":false,"declaration":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"inlineSources":true,"jsx":2,"module":1,"noEmitOnError":false,"outDir":"../../../lib","rootDir":"../../../src","sourceMap":true,"strict":true,"target":4,"tsBuildInfoFile":"./ts_8nwakTlr.json","useUnknownInCatchVariables":false},"referencedMap":[[71,1],[74,2],[73,1],[80,3],[70,1],[79,4],[58,5],[51,6],[55,7],[53,8],[56,9],[54,10],[57,11],[52,1],[50,12],[49,13],[130,14],[131,14],[132,15],[86,16],[133,17],[134,18],[135,19],[81,1],[84,20],[82,1],[83,1],[136,21],[137,22],[138,23],[139,24],[140,25],[141,26],[142,26],[143,27],[144,28],[145,29],[146,30],[87,1],[85,1],[147,31],[148,32],[149,33],[181,34],[150,35],[151,36],[152,37],[153,38],[154,39],[155,40],[156,41],[157,42],[158,43],[159,44],[160,44],[161,45],[162,1],[163,46],[165,47],[164,48],[166,49],[167,50],[168,51],[169,52],[170,53],[171,54],[172,55],[173,56],[174,57],[175,58],[176,59],[177,60],[178,61],[88,1],[89,1],[90,1],[129,62],[179,63],[180,64],[47,1],[91,1],[72,1],[78,65],[76,66],[77,67],[75,68],[45,1],[46,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[19,1],[20,1],[4,1],[21,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[1,1],[107,69],[117,70],[106,69],[127,71],[98,72],[97,73],[126,74],[120,75],[125,76],[100,77],[114,78],[99,79],[123,80],[95,81],[94,74],[124,82],[96,83],[101,84],[102,1],[105,84],[92,1],[128,85],[118,86],[109,87],[110,88],[112,89],[108,90],[111,91],[121,74],[103,92],[104,93],[113,94],[93,95],[116,86],[115,84],[119,1],[122,96],[63,97],[62,98],[61,99],[68,100],[69,101],[60,102],[59,103],[65,104],[66,105],[64,103],[48,1],[67,106]],"version":"5.9.3"}
@@ -216,7 +216,7 @@
216
216
  {
217
217
  "kind": "Method",
218
218
  "canonicalReference": "@fgv/ts-extras-argon2!NodeArgon2Provider#argon2id:member(1)",
219
- "docComment": "/**\n * Derives a key using Argon2id.\n *\n * @param password - The password or passphrase (string or raw bytes).\n *\n * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).\n *\n * @param params - Argon2id parameters. All values are validated before derivation.\n *\n * @returns Success with the derived key bytes, or Failure with a descriptive message.\n *\n * @public\n */\n",
219
+ "docComment": "/**\n * Derives a key using Argon2id.\n *\n * @param password - The password or passphrase (string or raw bytes).\n *\n * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).\n *\n * @param params - Argon2id parameters. All values are validated before derivation.\n *\n * @param options - Optional {@link @fgv/ts-extras#CryptoUtils.IArgon2idKeyingOptions | keyed-hashing inputs} (RFC 9106 secret K and/or associated data X). Both are wired through to the underlying `argon2` binding when present and non-empty; omitting them (or passing empty arrays) leaves the output byte-identical to prior behavior.\n *\n * @returns Success with the derived key bytes, or Failure with a descriptive message.\n *\n * @public\n */\n",
220
220
  "excerptTokens": [
221
221
  {
222
222
  "kind": "Content",
@@ -249,6 +249,15 @@
249
249
  "text": "CryptoUtils.IArgon2idParams",
250
250
  "canonicalReference": "@fgv/ts-extras!IArgon2idParams:interface"
251
251
  },
252
+ {
253
+ "kind": "Content",
254
+ "text": ", options?: "
255
+ },
256
+ {
257
+ "kind": "Reference",
258
+ "text": "CryptoUtils.IArgon2idKeyingOptions",
259
+ "canonicalReference": "@fgv/ts-extras!IArgon2idKeyingOptions:interface"
260
+ },
252
261
  {
253
262
  "kind": "Content",
254
263
  "text": "): "
@@ -287,8 +296,8 @@
287
296
  ],
288
297
  "isStatic": false,
289
298
  "returnTypeTokenRange": {
290
- "startIndex": 8,
291
- "endIndex": 14
299
+ "startIndex": 10,
300
+ "endIndex": 16
292
301
  },
293
302
  "releaseTag": "Public",
294
303
  "isProtected": false,
@@ -317,6 +326,14 @@
317
326
  "endIndex": 7
318
327
  },
319
328
  "isOptional": false
329
+ },
330
+ {
331
+ "parameterName": "options",
332
+ "parameterTypeTokenRange": {
333
+ "startIndex": 8,
334
+ "endIndex": 9
335
+ },
336
+ "isOptional": true
320
337
  }
321
338
  ],
322
339
  "isOptional": false,
@@ -11,7 +11,7 @@ export { CryptoUtils }
11
11
 
12
12
  // @public
13
13
  export class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider {
14
- argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams): Promise<Result<Uint8Array>>;
14
+ argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams, options?: CryptoUtils.IArgon2idKeyingOptions): Promise<Result<Uint8Array>>;
15
15
  static create(): Result<NodeArgon2Provider>;
16
16
  }
17
17