@private.me/xbind 1.3.5 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSES.md +212 -0
- package/README.md +388 -6
- package/dist-standalone/_deps/mldsa-wasm/dist/mldsa.js +1 -1920
- package/dist-standalone/_deps/shared/cjs/errors.js +1 -639
- package/dist-standalone/_deps/shared/cjs/index.js +1 -496
- package/dist-standalone/_deps/shared/cjs/types.js +1 -317
- package/dist-standalone/_deps/shared/errors.js +1 -255
- package/dist-standalone/_deps/shared/index.js +1 -74
- package/dist-standalone/_deps/shared/types.js +1 -90
- package/dist-standalone/_deps/ux-helpers/cjs/errors.js +1 -1
- package/dist-standalone/_deps/ux-helpers/cjs/index.js +1 -1
- package/dist-standalone/_deps/ux-helpers/cjs/pagination.js +1 -1
- package/dist-standalone/_deps/ux-helpers/cjs/progress.js +1 -1
- package/dist-standalone/_deps/ux-helpers/cjs/search.js +1 -1
- package/dist-standalone/_deps/ux-helpers/cjs/types.js +1 -1
- package/dist-standalone/_deps/ux-helpers/errors.js +1 -1
- package/dist-standalone/_deps/ux-helpers/index.js +1 -1
- package/dist-standalone/_deps/ux-helpers/pagination.js +1 -1
- package/dist-standalone/_deps/ux-helpers/progress.js +1 -1
- package/dist-standalone/_deps/ux-helpers/search.js +1 -1
- package/dist-standalone/_deps/xchange/auto-accept.js +1 -1
- package/dist-standalone/_deps/xchange/cjs/auto-accept.js +1 -1
- package/dist-standalone/_deps/xchange/cjs/errors.js +1 -1
- package/dist-standalone/_deps/xchange/cjs/index.js +1 -1
- package/dist-standalone/_deps/xchange/cjs/invite-client.js +1 -1
- package/dist-standalone/_deps/xchange/cjs/lazy-init.js +1 -1
- package/dist-standalone/_deps/xchange/cjs/trust-integration.js +1 -1
- package/dist-standalone/_deps/xchange/cjs/xchange.js +1 -1
- package/dist-standalone/_deps/xchange/errors.js +1 -1
- package/dist-standalone/_deps/xchange/index.js +1 -1
- package/dist-standalone/_deps/xchange/invite-client.js +1 -1
- package/dist-standalone/_deps/xchange/lazy-init.js +1 -1
- package/dist-standalone/_deps/xchange/trust-integration.js +1 -1
- package/dist-standalone/_deps/xchange/xchange.js +1 -1
- package/dist-standalone/_deps/xregistry/cjs/discovery.js +1 -1
- package/dist-standalone/_deps/xregistry/cjs/errors.js +1 -1
- package/dist-standalone/_deps/xregistry/cjs/index.js +1 -1
- package/dist-standalone/_deps/xregistry/cjs/registry.js +1 -1
- package/dist-standalone/_deps/xregistry/cjs/schema.js +1 -1
- package/dist-standalone/_deps/xregistry/cjs/types.js +1 -1
- package/dist-standalone/_deps/xregistry/discovery.js +1 -1
- package/dist-standalone/_deps/xregistry/errors.js +1 -1
- package/dist-standalone/_deps/xregistry/index.js +1 -1
- package/dist-standalone/_deps/xregistry/registry.js +1 -1
- package/dist-standalone/_deps/xregistry/schema.js +1 -1
- package/dist-standalone/_deps/xregistry/types.js +1 -1
- package/dist-standalone/agent-call.js +1 -642
- package/dist-standalone/agent-sdk.js +1 -328
- package/dist-standalone/agent.d.ts +95 -5
- package/dist-standalone/agent.js +1 -1545
- package/dist-standalone/approval.js +1 -193
- package/dist-standalone/async-iterators.d.ts +275 -0
- package/dist-standalone/async-iterators.js +1 -0
- package/dist-standalone/auth.js +1 -219
- package/dist-standalone/auto-accept.js +1 -229
- package/dist-standalone/backup-config.js +1 -201
- package/dist-standalone/backup.d.ts +114 -0
- package/dist-standalone/backup.js +1 -0
- package/dist-standalone/batch-operations.d.ts +297 -0
- package/dist-standalone/batch-operations.js +1 -0
- package/dist-standalone/cancellation.d.ts +301 -0
- package/dist-standalone/cancellation.js +1 -0
- package/dist-standalone/checkpoint.js +1 -186
- package/dist-standalone/circuit-breaker.d.ts +351 -0
- package/dist-standalone/circuit-breaker.js +1 -0
- package/dist-standalone/cjs/agent-call.js +1 -651
- package/dist-standalone/cjs/agent-sdk.js +1 -332
- package/dist-standalone/cjs/agent.js +1 -1582
- package/dist-standalone/cjs/approval.js +1 -199
- package/dist-standalone/cjs/async-iterators.js +1 -0
- package/dist-standalone/cjs/auth.js +1 -225
- package/dist-standalone/cjs/auto-accept.js +1 -233
- package/dist-standalone/cjs/backup-config.js +1 -207
- package/dist-standalone/cjs/backup.js +1 -0
- package/dist-standalone/cjs/batch-operations.js +1 -0
- package/dist-standalone/cjs/cancellation.js +1 -0
- package/dist-standalone/cjs/checkpoint.js +1 -193
- package/dist-standalone/cjs/circuit-breaker.js +1 -0
- package/dist-standalone/cjs/cli/init.js +1 -486
- package/dist-standalone/cjs/config-validation.js +1 -0
- package/dist-standalone/cjs/connect.js +1 -312
- package/dist-standalone/cjs/connection-pool.js +1 -0
- package/dist-standalone/cjs/correlation-id.js +1 -339
- package/dist-standalone/cjs/crypto-utils.js +1 -0
- package/dist-standalone/cjs/debug-mode.js +1 -0
- package/dist-standalone/cjs/did-document.js +1 -101
- package/dist-standalone/cjs/did-privateme.js +1 -130
- package/dist-standalone/cjs/did-web.js +1 -201
- package/dist-standalone/cjs/discovery.js +1 -462
- package/dist-standalone/cjs/dual-mode.js +1 -251
- package/dist-standalone/cjs/email-templates.js +1 -313
- package/dist-standalone/cjs/email-transport.js +1 -239
- package/dist-standalone/cjs/envelope.js +1 -510
- package/dist-standalone/cjs/errors.js +1 -826
- package/dist-standalone/cjs/event-emitter.js +1 -0
- package/dist-standalone/cjs/gateway-state.js +1 -55
- package/dist-standalone/cjs/gateway-transport.js +1 -120
- package/dist-standalone/cjs/graceful-degradation.js +1 -0
- package/dist-standalone/cjs/guardrails.js +1 -223
- package/dist-standalone/cjs/health-check.js +1 -0
- package/dist-standalone/cjs/http-compat.js +1 -272
- package/dist-standalone/cjs/http-status-map.js +1 -571
- package/dist-standalone/cjs/identity.js +1 -540
- package/dist-standalone/cjs/index.js +1 -237
- package/dist-standalone/cjs/invitation.js +1 -421
- package/dist-standalone/cjs/invite.js +1 -328
- package/dist-standalone/cjs/key-agreement.js +1 -246
- package/dist-standalone/cjs/lazy-init.js +1 -300
- package/dist-standalone/cjs/logger.js +1 -0
- package/dist-standalone/cjs/mdns-discovery.js +1 -202
- package/dist-standalone/cjs/nonce-store.js +1 -66
- package/dist-standalone/cjs/pairing-manager.js +1 -223
- package/dist-standalone/cjs/plugin-system.js +1 -0
- package/dist-standalone/cjs/plugins/logging.js +1 -0
- package/dist-standalone/cjs/plugins/metrics.js +1 -0
- package/dist-standalone/cjs/plugins/validation.js +1 -0
- package/dist-standalone/cjs/policy.js +1 -320
- package/dist-standalone/cjs/progress-callbacks.js +1 -0
- package/dist-standalone/cjs/redis-nonce-store.js +1 -76
- package/dist-standalone/cjs/registry-middleware.js +1 -50
- package/dist-standalone/cjs/retry-strategies.js +1 -0
- package/dist-standalone/cjs/retry-transport.js +1 -102
- package/dist-standalone/cjs/runtime/browser.js +1 -0
- package/dist-standalone/cjs/runtime/edge.js +1 -0
- package/dist-standalone/cjs/runtime/react-native.js +1 -0
- package/dist-standalone/cjs/security-policy.js +1 -245
- package/dist-standalone/cjs/serialization.js +1 -0
- package/dist-standalone/cjs/split-channel.js +1 -177
- package/dist-standalone/cjs/subscription-proof.js +1 -230
- package/dist-standalone/cjs/succession.js +1 -148
- package/dist-standalone/cjs/timeouts.js +1 -0
- package/dist-standalone/cjs/trace-context.js +1 -0
- package/dist-standalone/cjs/trace-spans.js +1 -0
- package/dist-standalone/cjs/transport.js +1 -63
- package/dist-standalone/cjs/trust-registry.js +1 -742
- package/dist-standalone/cjs/types/error-response.js +1 -56
- package/dist-standalone/cjs/vault-auth.js +1 -0
- package/dist-standalone/cjs/vault-store-loader.js +1 -0
- package/dist-standalone/cjs/verify.js +1 -25
- package/dist-standalone/cjs/version-info.js +1 -0
- package/dist-standalone/cjs/xfetch.js +1 -252
- package/dist-standalone/cli/init.js +1 -449
- package/dist-standalone/cli/setup.js +1 -514
- package/dist-standalone/cli/types.js +1 -27
- package/dist-standalone/cli/xbind.js +1 -148
- package/dist-standalone/config-validation.d.ts +185 -0
- package/dist-standalone/config-validation.js +1 -0
- package/dist-standalone/connect.js +1 -274
- package/dist-standalone/connection-pool.d.ts +251 -0
- package/dist-standalone/connection-pool.js +1 -0
- package/dist-standalone/correlation-id.js +1 -326
- package/dist-standalone/crypto-utils.d.ts +60 -0
- package/dist-standalone/crypto-utils.js +1 -0
- package/dist-standalone/debug-mode.d.ts +286 -0
- package/dist-standalone/debug-mode.js +1 -0
- package/dist-standalone/did-document.js +1 -96
- package/dist-standalone/did-privateme.js +1 -121
- package/dist-standalone/did-web.js +1 -196
- package/dist-standalone/discovery.js +1 -458
- package/dist-standalone/dual-mode.js +1 -247
- package/dist-standalone/email-templates.js +1 -309
- package/dist-standalone/email-transport.js +1 -232
- package/dist-standalone/envelope.d.ts +29 -1
- package/dist-standalone/envelope.js +1 -497
- package/dist-standalone/errors.d.ts +10 -0
- package/dist-standalone/errors.js +1 -811
- package/dist-standalone/event-emitter.d.ts +395 -0
- package/dist-standalone/event-emitter.js +1 -0
- package/dist-standalone/gateway-state.js +1 -51
- package/dist-standalone/gateway-transport.js +1 -116
- package/dist-standalone/graceful-degradation.d.ts +246 -0
- package/dist-standalone/graceful-degradation.js +1 -0
- package/dist-standalone/guardrails.js +1 -216
- package/dist-standalone/health-check.d.ts +150 -0
- package/dist-standalone/health-check.js +1 -0
- package/dist-standalone/http-compat.js +1 -267
- package/dist-standalone/http-status-map.js +1 -561
- package/dist-standalone/identity.d.ts +64 -1
- package/dist-standalone/identity.js +1 -515
- package/dist-standalone/index.d.ts +45 -3
- package/dist-standalone/index.js +1 -52
- package/dist-standalone/invitation.js +1 -415
- package/dist-standalone/invite.js +1 -324
- package/dist-standalone/key-agreement.d.ts +61 -13
- package/dist-standalone/key-agreement.js +1 -236
- package/dist-standalone/lazy-init.js +1 -295
- package/dist-standalone/logger.d.ts +77 -0
- package/dist-standalone/logger.js +1 -0
- package/dist-standalone/mdns-discovery.js +1 -195
- package/dist-standalone/nonce-store.d.ts +16 -3
- package/dist-standalone/nonce-store.js +1 -62
- package/dist-standalone/package.json +0 -1
- package/dist-standalone/pairing-manager.js +1 -219
- package/dist-standalone/plugin-system.d.ts +145 -0
- package/dist-standalone/plugin-system.js +1 -0
- package/dist-standalone/policy.js +1 -315
- package/dist-standalone/progress-callbacks.d.ts +394 -0
- package/dist-standalone/progress-callbacks.js +1 -0
- package/dist-standalone/redis-nonce-store.js +1 -72
- package/dist-standalone/registry-middleware.js +1 -47
- package/dist-standalone/retry-strategies.d.ts +382 -0
- package/dist-standalone/retry-strategies.js +1 -0
- package/dist-standalone/retry-transport.js +1 -98
- package/dist-standalone/security-policy.js +1 -239
- package/dist-standalone/serialization.d.ts +244 -0
- package/dist-standalone/serialization.js +1 -0
- package/dist-standalone/split-channel.d.ts +49 -1
- package/dist-standalone/split-channel.js +1 -171
- package/dist-standalone/subscription-proof.js +1 -224
- package/dist-standalone/succession.js +1 -142
- package/dist-standalone/timeouts.d.ts +275 -0
- package/dist-standalone/timeouts.js +1 -0
- package/dist-standalone/trace-context.d.ts +252 -0
- package/dist-standalone/trace-context.js +1 -0
- package/dist-standalone/trace-spans.d.ts +360 -0
- package/dist-standalone/trace-spans.js +1 -0
- package/dist-standalone/transport.js +1 -59
- package/dist-standalone/trust-registry.d.ts +106 -5
- package/dist-standalone/trust-registry.js +1 -702
- package/dist-standalone/vault-auth.d.ts +91 -0
- package/dist-standalone/vault-auth.js +1 -0
- package/dist-standalone/vault-store-loader.d.ts +110 -0
- package/dist-standalone/vault-store-loader.js +1 -0
- package/dist-standalone/verify.js +1 -16
- package/dist-standalone/version-info.d.ts +259 -0
- package/dist-standalone/version-info.js +1 -0
- package/dist-standalone/xfetch.js +1 -247
- package/llms.txt +1 -0
- package/package.json +65 -5
- package/share1.dat +0 -0
- package/dist-standalone/_deps/crypto/base64.d.ts +0 -29
- package/dist-standalone/_deps/crypto/base64.js +0 -222
- package/dist-standalone/_deps/crypto/cjs/base64.js +0 -665
- package/dist-standalone/_deps/crypto/cjs/errors.js +0 -675
- package/dist-standalone/_deps/crypto/cjs/hmac.js +0 -473
- package/dist-standalone/_deps/crypto/cjs/index.js +0 -852
- package/dist-standalone/_deps/crypto/cjs/package.json +0 -1
- package/dist-standalone/_deps/crypto/cjs/padding.js +0 -511
- package/dist-standalone/_deps/crypto/cjs/share-header.js +0 -372
- package/dist-standalone/_deps/crypto/cjs/shares.js +0 -874
- package/dist-standalone/_deps/crypto/cjs/tlv.js +0 -1021
- package/dist-standalone/_deps/crypto/cjs/uuid.js +0 -443
- package/dist-standalone/_deps/crypto/cjs/verify.js +0 -414
- package/dist-standalone/_deps/crypto/cjs/xorida.js +0 -923
- package/dist-standalone/_deps/crypto/errors.d.ts +0 -51
- package/dist-standalone/_deps/crypto/errors.js +0 -199
- package/dist-standalone/_deps/crypto/hmac.d.ts +0 -39
- package/dist-standalone/_deps/crypto/hmac.js +0 -134
- package/dist-standalone/_deps/crypto/index.d.ts +0 -20
- package/dist-standalone/_deps/crypto/index.js +0 -145
- package/dist-standalone/_deps/crypto/padding.d.ts +0 -19
- package/dist-standalone/_deps/crypto/padding.js +0 -159
- package/dist-standalone/_deps/crypto/share-header.d.ts +0 -44
- package/dist-standalone/_deps/crypto/share-header.js +0 -92
- package/dist-standalone/_deps/crypto/shares.d.ts +0 -27
- package/dist-standalone/_deps/crypto/shares.js +0 -295
- package/dist-standalone/_deps/crypto/tlv.d.ts +0 -26
- package/dist-standalone/_deps/crypto/tlv.js +0 -364
- package/dist-standalone/_deps/crypto/uuid.d.ts +0 -22
- package/dist-standalone/_deps/crypto/uuid.js +0 -136
- package/dist-standalone/_deps/crypto/verify.d.ts +0 -15
- package/dist-standalone/_deps/crypto/verify.js +0 -71
- package/dist-standalone/_deps/crypto/xorida.d.ts +0 -44
- package/dist-standalone/_deps/crypto/xorida.js +0 -366
- package/dist-standalone/_deps/shared/errors.d.ts.map +0 -1
- package/dist-standalone/_deps/shared/errors.js.map +0 -1
- package/dist-standalone/_deps/shared/index.d.ts.map +0 -1
- package/dist-standalone/_deps/shared/index.js.map +0 -1
- package/dist-standalone/_deps/shared/types.d.ts.map +0 -1
- package/dist-standalone/_deps/shared/types.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/errors.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/errors.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/index.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/index.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/pagination.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/pagination.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/progress.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/progress.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/search.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/search.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/types.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/cjs/types.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/errors.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/errors.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/index.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/index.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/pagination.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/pagination.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/progress.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/progress.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/search.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/search.js.map +0 -1
- package/dist-standalone/_deps/ux-helpers/types.d.ts.map +0 -1
- package/dist-standalone/_deps/ux-helpers/types.js.map +0 -1
- package/dist-standalone/_deps/xregistry/discovery.d.ts.map +0 -1
- package/dist-standalone/_deps/xregistry/discovery.js.map +0 -1
- package/dist-standalone/_deps/xregistry/errors.d.ts.map +0 -1
- package/dist-standalone/_deps/xregistry/errors.js.map +0 -1
- package/dist-standalone/_deps/xregistry/index.d.ts.map +0 -1
- package/dist-standalone/_deps/xregistry/index.js.map +0 -1
- package/dist-standalone/_deps/xregistry/registry.d.ts.map +0 -1
- package/dist-standalone/_deps/xregistry/registry.js.map +0 -1
- package/dist-standalone/_deps/xregistry/schema.d.ts.map +0 -1
- package/dist-standalone/_deps/xregistry/schema.js.map +0 -1
- package/dist-standalone/_deps/xregistry/types.d.ts.map +0 -1
- package/dist-standalone/_deps/xregistry/types.js.map +0 -1
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
(function (_0x281023, _0x4026b8) {
|
|
2
|
-
const a18_0x1b45d2 = {
|
|
3
|
-
_0x383e4d: 0x1fe,
|
|
4
|
-
_0x3f17ce: 0x206,
|
|
5
|
-
_0x391094: 0x21c,
|
|
6
|
-
_0x357dc9: 0x217,
|
|
7
|
-
_0x3b6675: 0x226
|
|
8
|
-
}, _0x1e7663 = a18_0x5a3b, _0xe88f1f = _0x281023();
|
|
9
|
-
while (!![]) {
|
|
10
|
-
try {
|
|
11
|
-
const _0x8bd176 = -parseInt(_0x1e7663(a18_0x1b45d2._0x383e4d)) / 0x1 * (parseInt(_0x1e7663(a18_0x1b45d2._0x3f17ce)) / 0x2) + parseInt(_0x1e7663(0x201)) / 0x3 + parseInt(_0x1e7663(a18_0x1b45d2._0x391094)) / 0x4 * (-parseInt(_0x1e7663(0x216)) / 0x5) + parseInt(_0x1e7663(a18_0x1b45d2._0x357dc9)) / 0x6 + -parseInt(_0x1e7663(0x210)) / 0x7 + -parseInt(_0x1e7663(a18_0x1b45d2._0x3b6675)) / 0x8 + parseInt(_0x1e7663(0x219)) / 0x9;
|
|
12
|
-
if (_0x8bd176 === _0x4026b8)
|
|
13
|
-
break;
|
|
14
|
-
else
|
|
15
|
-
_0xe88f1f['push'](_0xe88f1f['shift']());
|
|
16
|
-
} catch (_0xa314fc) {
|
|
17
|
-
_0xe88f1f['push'](_0xe88f1f['shift']());
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}(a18_0x1d1a, 0x47590));
|
|
21
|
-
import {
|
|
22
|
-
ok,
|
|
23
|
-
err,
|
|
24
|
-
TLV_TYPE
|
|
25
|
-
} from"../shared/index.js";
|
|
26
|
-
import {
|
|
27
|
-
uuidToBytes,
|
|
28
|
-
bytesToUuid
|
|
29
|
-
} from './uuid.js';
|
|
30
|
-
function a18_0x1d1a() {
|
|
31
|
-
const _0x400188 = [
|
|
32
|
-
'C2vJDxjL',
|
|
33
|
-
'mJeZnJK0uhvhwKfe',
|
|
34
|
-
'vgPqAwq',
|
|
35
|
-
'DhjuEva',
|
|
36
|
-
'yNL0zu9MzNnLDa',
|
|
37
|
-
'Dgv4Dc9ODg1S',
|
|
38
|
-
'z2v0vwLUDdmY',
|
|
39
|
-
'suDPuKG',
|
|
40
|
-
'yM9KEq',
|
|
41
|
-
'y29UDgvUDfr5Cgu',
|
|
42
|
-
'qwLfzvi',
|
|
43
|
-
'mtqWoduYnM5QAuTWDG',
|
|
44
|
-
'BhrpAvu',
|
|
45
|
-
'CLDMwfC',
|
|
46
|
-
'wLDOufm',
|
|
47
|
-
'vfbSAKC',
|
|
48
|
-
'zMXVB3i',
|
|
49
|
-
'mtiYnxLQsg5JBW',
|
|
50
|
-
'ote4mty4uMf6rMLl',
|
|
51
|
-
'y2HHBM5LBhm',
|
|
52
|
-
'nti1nJqWnxfREuXhsa',
|
|
53
|
-
'Dgv4Dc9WBgfPBG',
|
|
54
|
-
'tuLtu0Lor19gsuvmra',
|
|
55
|
-
'mJa2ohLZtMLbCq',
|
|
56
|
-
'C1z5zNa',
|
|
57
|
-
'tuvtu0fhrv9tvujkrunu',
|
|
58
|
-
'u0vorevsx0Le',
|
|
59
|
-
'tuvtu0fhrv9vvuLe',
|
|
60
|
-
'C2vUzgvY',
|
|
61
|
-
'u0vorevsx0vnquLm',
|
|
62
|
-
'DgLTzxn0yw1W',
|
|
63
|
-
'C2v0vwLUDdmY',
|
|
64
|
-
'yKfdDNe',
|
|
65
|
-
'nZKXnZeYEu5ntLfe',
|
|
66
|
-
'zw1HAwW',
|
|
67
|
-
'vvvjrcbTDxn0igjLide2igj5DgvZ',
|
|
68
|
-
'wwPUr3a',
|
|
69
|
-
'tuvtu0fhrv9ct0rz',
|
|
70
|
-
'q09ovevovf9uwvbf',
|
|
71
|
-
'veLnrvnuqu1q',
|
|
72
|
-
'vLbRDhK',
|
|
73
|
-
'zgvJB2rL',
|
|
74
|
-
'BMfTzq',
|
|
75
|
-
'q21qCM0',
|
|
76
|
-
'BwrUDMK',
|
|
77
|
-
'tezuu3O',
|
|
78
|
-
'C2v0',
|
|
79
|
-
'zw5JB2rL',
|
|
80
|
-
'vMfMsgm',
|
|
81
|
-
'su5wquXjrf9utfy',
|
|
82
|
-
'C3vIAMvJDa',
|
|
83
|
-
'yxr0ywnOBwvUDhm',
|
|
84
|
-
's3Dgr2e',
|
|
85
|
-
'Dg9tDhjPBMC',
|
|
86
|
-
'DxvPza',
|
|
87
|
-
'zgf0yq',
|
|
88
|
-
't0HhAMG',
|
|
89
|
-
'C2XPy2u',
|
|
90
|
-
'Aw1HCa',
|
|
91
|
-
'nfHSDfzsua',
|
|
92
|
-
'BgvUz3rO',
|
|
93
|
-
'ChvZAa',
|
|
94
|
-
'mtiYodiWnKf0sunbBG',
|
|
95
|
-
'qvruqunituvova',
|
|
96
|
-
'yNvMzMvY',
|
|
97
|
-
'vhj1BMnHDgvKifrmvIbOzwfKzxi'
|
|
98
|
-
];
|
|
99
|
-
a18_0x1d1a = function () {
|
|
100
|
-
return _0x400188;
|
|
101
|
-
};
|
|
102
|
-
return a18_0x1d1a();
|
|
103
|
-
}
|
|
104
|
-
const TEXT_ENCODER = new TextEncoder(), TEXT_DECODER = new TextDecoder();
|
|
105
|
-
export function serializeMessage(_0x8bb994) {
|
|
106
|
-
const a18_0x450975 = {
|
|
107
|
-
_0x216969: 0x200,
|
|
108
|
-
_0x4b99c9: 0x220,
|
|
109
|
-
_0x443d36: 0x1f7,
|
|
110
|
-
_0x158439: 0x1f9,
|
|
111
|
-
_0x29194f: 0x221,
|
|
112
|
-
_0x28b11f: 0x22f,
|
|
113
|
-
_0x3c7a28: 0x218,
|
|
114
|
-
_0x4f7447: 0x227,
|
|
115
|
-
_0x152b09: 0x1f2,
|
|
116
|
-
_0x495bb2: 0x203,
|
|
117
|
-
_0x2c2d57: 0x215,
|
|
118
|
-
_0x4781c5: 0x223,
|
|
119
|
-
_0x48934a: 0x200,
|
|
120
|
-
_0x2af775: 0x22c,
|
|
121
|
-
_0x4efa75: 0x1f5,
|
|
122
|
-
_0x497c43: 0x20d,
|
|
123
|
-
_0x25d765: 0x202,
|
|
124
|
-
_0x4fcf9d: 0x1f7,
|
|
125
|
-
_0x1ca673: 0x1f1,
|
|
126
|
-
_0x22847b: 0x1ff
|
|
127
|
-
}, _0xe51417 = a18_0x5a3b, _0x3c38a5 = {
|
|
128
|
-
'BLGjP': function (_0x32d222, _0x34dc91, _0x174b0f) {
|
|
129
|
-
return _0x32d222(_0x34dc91, _0x174b0f);
|
|
130
|
-
},
|
|
131
|
-
'KwFGa': function (_0x4ad718, _0x65be05) {
|
|
132
|
-
return _0x4ad718(_0x65be05);
|
|
133
|
-
},
|
|
134
|
-
'mdnvi': function (_0x225f70, _0x14d30f) {
|
|
135
|
-
return _0x225f70 / _0x14d30f;
|
|
136
|
-
}
|
|
137
|
-
}, _0x45f578 = [];
|
|
138
|
-
_0x45f578[_0xe51417(a18_0x450975._0x216969)](_0x3c38a5['BLGjP'](encodeTlv, TLV_TYPE[_0xe51417(a18_0x450975._0x4b99c9)], _0x3c38a5[_0xe51417(a18_0x450975._0x443d36)](uuidToBytes, _0x8bb994[_0xe51417(a18_0x450975._0x158439)]))), _0x45f578[_0xe51417(0x200)](encodeTlv(TLV_TYPE['SENDER_ID'], TEXT_ENCODER[_0xe51417(0x1f2)](_0x8bb994[_0xe51417(a18_0x450975._0x29194f)][_0xe51417(a18_0x450975._0x28b11f)])));
|
|
139
|
-
const _0x2427d2 = _0x8bb994['sender'][_0xe51417(a18_0x450975._0x3c7a28)][0x0]?.[_0xe51417(a18_0x450975._0x4f7447)];
|
|
140
|
-
_0x2427d2 && _0x45f578[_0xe51417(0x200)](encodeTlv(TLV_TYPE['SENDER_EMAIL'], TEXT_ENCODER[_0xe51417(a18_0x450975._0x152b09)](_0x2427d2)));
|
|
141
|
-
const _0x1a998c = new Uint8Array(0x8), _0xa9f7bb = new DataView(_0x1a998c[_0xe51417(a18_0x450975._0x495bb2)]);
|
|
142
|
-
_0xa9f7bb[_0xe51417(0x224)](0x0, Math[_0xe51417(a18_0x450975._0x2c2d57)](_0x3c38a5[_0xe51417(0x1ef)](_0x8bb994['timestamp'], 0x100000000))), _0xa9f7bb[_0xe51417(0x224)](0x4, _0x8bb994[_0xe51417(a18_0x450975._0x4781c5)] >>> 0x0), _0x45f578[_0xe51417(a18_0x450975._0x48934a)](encodeTlv(TLV_TYPE[_0xe51417(a18_0x450975._0x2af775)], _0x1a998c)), _0x45f578[_0xe51417(0x200)](encodeTlv(TLV_TYPE[_0xe51417(0x22b)], TEXT_ENCODER[_0xe51417(0x1f2)](_0x8bb994[_0xe51417(0x20e)])));
|
|
143
|
-
_0x8bb994['subject'] && _0x45f578[_0xe51417(0x200)](encodeTlv(TLV_TYPE[_0xe51417(0x21e)], TEXT_ENCODER['encode'](_0x8bb994[_0xe51417(a18_0x450975._0x4efa75)])));
|
|
144
|
-
_0x45f578[_0xe51417(a18_0x450975._0x48934a)](encodeTlv(TLV_TYPE[_0xe51417(0x22a)], TEXT_ENCODER['encode'](_0x8bb994[_0xe51417(a18_0x450975._0x497c43)])));
|
|
145
|
-
for (const _0x3ff70e of _0x8bb994[_0xe51417(0x1f6)]) {
|
|
146
|
-
_0x45f578[_0xe51417(0x200)](encodeTlv(TLV_TYPE[_0xe51417(a18_0x450975._0x25d765)], _0x3c38a5[_0xe51417(a18_0x450975._0x4fcf9d)](encodeAttachment, _0x3ff70e)));
|
|
147
|
-
}
|
|
148
|
-
const _0x87c80 = _0x45f578['reduce']((_0x48b58c, _0x272b50) => _0x48b58c + _0x272b50[_0xe51417(0x1ff)], 0x0), _0x1f913c = new Uint8Array(_0x87c80);
|
|
149
|
-
let _0x206bc7 = 0x0;
|
|
150
|
-
for (const _0x2c1f04 of _0x45f578) {
|
|
151
|
-
_0x1f913c[_0xe51417(a18_0x450975._0x1ca673)](_0x2c1f04, _0x206bc7), _0x206bc7 += _0x2c1f04[_0xe51417(a18_0x450975._0x22847b)];
|
|
152
|
-
}
|
|
153
|
-
return _0x1f913c;
|
|
154
|
-
}
|
|
155
|
-
export function deserializeMessage(_0x376c61) {
|
|
156
|
-
const a18_0x1c0ccb = {
|
|
157
|
-
_0x128776: 0x204,
|
|
158
|
-
_0x593ba8: 0x21b,
|
|
159
|
-
_0x3dcfb5: 0x205,
|
|
160
|
-
_0x40ea2e: 0x207,
|
|
161
|
-
_0x3ce2ed: 0x1fb,
|
|
162
|
-
_0x3fbc43: 0x1f4,
|
|
163
|
-
_0x5492e9: 0x209,
|
|
164
|
-
_0xd09d93: 0x1ff,
|
|
165
|
-
_0xd15f26: 0x1f0,
|
|
166
|
-
_0x426010: 0x1ee,
|
|
167
|
-
_0x153652: 0x1ff,
|
|
168
|
-
_0x4c54db: 0x20b,
|
|
169
|
-
_0x425a6d: 0x211,
|
|
170
|
-
_0x54925e: 0x20a,
|
|
171
|
-
_0x20b00a: 0x21e,
|
|
172
|
-
_0x5cabc2: 0x20f,
|
|
173
|
-
_0x5d82ed: 0x20c
|
|
174
|
-
}, _0x115b5b = a18_0x5a3b, _0x4cf8cd = {
|
|
175
|
-
'TjPid': _0x115b5b(0x21a),
|
|
176
|
-
'OHGjh': function (_0x4e79a8, _0x27a8f2) {
|
|
177
|
-
return _0x4e79a8 < _0x27a8f2;
|
|
178
|
-
},
|
|
179
|
-
'WtNGY': function (_0x459e95, _0x1c61b0) {
|
|
180
|
-
return _0x459e95 + _0x1c61b0;
|
|
181
|
-
},
|
|
182
|
-
'bACvq': function (_0x3dea17, _0x183f21) {
|
|
183
|
-
return _0x3dea17(_0x183f21);
|
|
184
|
-
},
|
|
185
|
-
'ZWhPS': _0x115b5b(a18_0x1c0ccb._0x128776),
|
|
186
|
-
'TPljG': function (_0x256773, _0x2f7889) {
|
|
187
|
-
return _0x256773 + _0x2f7889;
|
|
188
|
-
},
|
|
189
|
-
'VPkty': 'BUFFER_OVERFLOW',
|
|
190
|
-
'rWfXW': function (_0x1ea329, _0xbd17e) {
|
|
191
|
-
return _0x1ea329 + _0xbd17e;
|
|
192
|
-
},
|
|
193
|
-
'LFTSz': _0x115b5b(0x1f4),
|
|
194
|
-
'EqtKr': function (_0x5984bf, _0x2208b8) {
|
|
195
|
-
return _0x5984bf(_0x2208b8);
|
|
196
|
-
},
|
|
197
|
-
'CmPrm': function (_0x5ce2d5, _0x2841bb) {
|
|
198
|
-
return _0x5ce2d5 !== _0x2841bb;
|
|
199
|
-
},
|
|
200
|
-
'ltOiU': function (_0x1dcafd, _0x1fcf55) {
|
|
201
|
-
return _0x1dcafd === _0x1fcf55;
|
|
202
|
-
},
|
|
203
|
-
'YjnGp': function (_0xf0f8cc, _0x4502ba) {
|
|
204
|
-
return _0xf0f8cc === _0x4502ba;
|
|
205
|
-
},
|
|
206
|
-
'sVyfp': _0x115b5b(a18_0x1c0ccb._0x593ba8),
|
|
207
|
-
'AiEeR': 'Missing\x20MESSAGE_UUID',
|
|
208
|
-
'trTyP': function (_0x265f01, _0x180652) {
|
|
209
|
-
return _0x265f01(_0x180652);
|
|
210
|
-
},
|
|
211
|
-
'IGiRH': _0x115b5b(a18_0x1c0ccb._0x3dcfb5)
|
|
212
|
-
};
|
|
213
|
-
let _0x447210 = '', _0x46d882 = '', _0x511a4a = '', _0x31ba42 = '', _0x479650 = 0x0, _0x2f131f = _0x4cf8cd[_0x115b5b(a18_0x1c0ccb._0x40ea2e)], _0x1745f2 = '';
|
|
214
|
-
const _0x1ec1e8 = [];
|
|
215
|
-
let _0x4cb51d = 0x0;
|
|
216
|
-
while (_0x4cf8cd[_0x115b5b(a18_0x1c0ccb._0x3ce2ed)](_0x4cb51d, _0x376c61[_0x115b5b(0x1ff)])) {
|
|
217
|
-
if (_0x4cf8cd['WtNGY'](_0x4cb51d, 0x5) > _0x376c61[_0x115b5b(0x1ff)])
|
|
218
|
-
return _0x4cf8cd[_0x115b5b(0x225)](err, {
|
|
219
|
-
'code': _0x115b5b(a18_0x1c0ccb._0x3fbc43),
|
|
220
|
-
'message': _0x4cf8cd[_0x115b5b(0x213)]
|
|
221
|
-
});
|
|
222
|
-
const _0x3b3dc3 = _0x376c61[_0x4cb51d], _0x664c93 = new DataView(_0x376c61[_0x115b5b(0x203)], _0x376c61[_0x115b5b(a18_0x1c0ccb._0x5492e9)] + _0x4cb51d + 0x1, 0x4), _0x19b5cd = _0x664c93['getUint32'](0x0);
|
|
223
|
-
_0x4cb51d += 0x5;
|
|
224
|
-
if (_0x4cf8cd[_0x115b5b(0x214)](_0x4cb51d, _0x19b5cd) > _0x376c61['length'])
|
|
225
|
-
return _0x4cf8cd['bACvq'](err, {
|
|
226
|
-
'code': _0x4cf8cd[_0x115b5b(0x22d)],
|
|
227
|
-
'message': 'TLV\x20value\x20exceeds\x20data\x20length\x20at\x20type\x200x' + _0x3b3dc3[_0x115b5b(0x1f8)](0x10)
|
|
228
|
-
});
|
|
229
|
-
const _0x9bcb67 = _0x376c61['slice'](_0x4cb51d, _0x4cf8cd[_0x115b5b(0x212)](_0x4cb51d, _0x19b5cd));
|
|
230
|
-
_0x4cb51d += _0x19b5cd;
|
|
231
|
-
switch (_0x3b3dc3) {
|
|
232
|
-
case TLV_TYPE['MESSAGE_UUID']:
|
|
233
|
-
if (_0x9bcb67[_0x115b5b(a18_0x1c0ccb._0xd09d93)] !== 0x10)
|
|
234
|
-
return err({
|
|
235
|
-
'code': _0x4cf8cd[_0x115b5b(a18_0x1c0ccb._0xd15f26)],
|
|
236
|
-
'message': _0x115b5b(0x228)
|
|
237
|
-
});
|
|
238
|
-
_0x447210 = _0x4cf8cd['EqtKr'](bytesToUuid, _0x9bcb67);
|
|
239
|
-
break;
|
|
240
|
-
case TLV_TYPE[_0x115b5b(0x21f)]:
|
|
241
|
-
_0x46d882 = TEXT_DECODER[_0x115b5b(0x22e)](_0x9bcb67);
|
|
242
|
-
break;
|
|
243
|
-
case TLV_TYPE[_0x115b5b(0x222)]:
|
|
244
|
-
_0x511a4a = TEXT_DECODER[_0x115b5b(0x22e)](_0x9bcb67);
|
|
245
|
-
break;
|
|
246
|
-
case TLV_TYPE[_0x115b5b(0x22c)]: {
|
|
247
|
-
if (_0x4cf8cd[_0x115b5b(a18_0x1c0ccb._0x426010)](_0x9bcb67[_0x115b5b(a18_0x1c0ccb._0x153652)], 0x8))
|
|
248
|
-
return _0x4cf8cd[_0x115b5b(0x225)](err, {
|
|
249
|
-
'code': _0x4cf8cd[_0x115b5b(a18_0x1c0ccb._0xd15f26)],
|
|
250
|
-
'message': 'Timestamp\x20must\x20be\x208\x20bytes'
|
|
251
|
-
});
|
|
252
|
-
const _0x1b1185 = new DataView(_0x9bcb67[_0x115b5b(0x203)], _0x9bcb67[_0x115b5b(0x209)], 0x8), _0x232861 = _0x1b1185[_0x115b5b(a18_0x1c0ccb._0x4c54db)](0x0), _0x3def23 = _0x1b1185['getUint32'](0x4);
|
|
253
|
-
_0x479650 = _0x232861 * 0x100000000 + _0x3def23;
|
|
254
|
-
break;
|
|
255
|
-
}
|
|
256
|
-
case TLV_TYPE['CONTENT_TYPE']: {
|
|
257
|
-
const _0x896575 = TEXT_DECODER['decode'](_0x9bcb67);
|
|
258
|
-
(_0x4cf8cd[_0x115b5b(a18_0x1c0ccb._0x425a6d)](_0x896575, _0x4cf8cd['TjPid']) || _0x4cf8cd[_0x115b5b(0x229)](_0x896575, _0x115b5b(a18_0x1c0ccb._0x54925e))) && (_0x2f131f = _0x896575);
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
case TLV_TYPE[_0x115b5b(a18_0x1c0ccb._0x20b00a)]:
|
|
262
|
-
_0x31ba42 = TEXT_DECODER[_0x115b5b(0x22e)](_0x9bcb67);
|
|
263
|
-
break;
|
|
264
|
-
case TLV_TYPE['MESSAGE_BODY']:
|
|
265
|
-
_0x1745f2 = TEXT_DECODER[_0x115b5b(0x22e)](_0x9bcb67);
|
|
266
|
-
break;
|
|
267
|
-
case TLV_TYPE[_0x115b5b(0x202)]:
|
|
268
|
-
_0x1ec1e8['push'](decodeAttachment(_0x9bcb67));
|
|
269
|
-
break;
|
|
270
|
-
default:
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
if (!_0x447210)
|
|
275
|
-
return err({
|
|
276
|
-
'code': _0x4cf8cd[_0x115b5b(0x21d)],
|
|
277
|
-
'message': _0x4cf8cd[_0x115b5b(a18_0x1c0ccb._0x5cabc2)]
|
|
278
|
-
});
|
|
279
|
-
return _0x4cf8cd[_0x115b5b(0x208)](ok, {
|
|
280
|
-
'uuid': _0x447210,
|
|
281
|
-
'sender': {
|
|
282
|
-
'name': _0x46d882,
|
|
283
|
-
'channels': _0x511a4a ? [{
|
|
284
|
-
'provider': _0x115b5b(0x1fd),
|
|
285
|
-
'email': _0x511a4a
|
|
286
|
-
}] : [],
|
|
287
|
-
'securityTier': null,
|
|
288
|
-
'isEnterprise': ![]
|
|
289
|
-
},
|
|
290
|
-
'recipients': [],
|
|
291
|
-
..._0x31ba42 ? { 'subject': _0x31ba42 } : {},
|
|
292
|
-
'body': _0x1745f2,
|
|
293
|
-
'contentType': _0x2f131f,
|
|
294
|
-
'attachments': _0x1ec1e8,
|
|
295
|
-
'timestamp': _0x479650,
|
|
296
|
-
'messageType': _0x4cf8cd[_0x115b5b(a18_0x1c0ccb._0x5d82ed)]
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
function encodeTlv(_0x569fa6, _0x3249d7) {
|
|
300
|
-
const a18_0x29ca8f = {
|
|
301
|
-
_0x5e603d: 0x1f3,
|
|
302
|
-
_0x15b008: 0x1ff,
|
|
303
|
-
_0x9a3d78: 0x1f1
|
|
304
|
-
}, _0x2a589c = a18_0x5a3b, _0x1dc6d7 = {
|
|
305
|
-
'VafHc': function (_0x1bf0b3, _0x14c218) {
|
|
306
|
-
return _0x1bf0b3 + _0x14c218;
|
|
307
|
-
}
|
|
308
|
-
}, _0x4eab88 = new Uint8Array(_0x1dc6d7[_0x2a589c(a18_0x29ca8f._0x5e603d)](0x5, _0x3249d7[_0x2a589c(0x1ff)]));
|
|
309
|
-
_0x4eab88[0x0] = _0x569fa6;
|
|
310
|
-
const _0x2f2135 = new DataView(_0x4eab88[_0x2a589c(0x203)], 0x1, 0x4);
|
|
311
|
-
return _0x2f2135[_0x2a589c(0x224)](0x0, _0x3249d7[_0x2a589c(a18_0x29ca8f._0x15b008)]), _0x4eab88[_0x2a589c(a18_0x29ca8f._0x9a3d78)](_0x3249d7, 0x5), _0x4eab88;
|
|
312
|
-
}
|
|
313
|
-
function a18_0x5a3b(_0x45a539, _0xfa5fbc) {
|
|
314
|
-
_0x45a539 = _0x45a539 - 0x1ee;
|
|
315
|
-
const _0x1d1a9b = a18_0x1d1a();
|
|
316
|
-
let _0x5a3b35 = _0x1d1a9b[_0x45a539];
|
|
317
|
-
if (a18_0x5a3b['VJpSAE'] === undefined) {
|
|
318
|
-
var _0x29050f = function (_0x380f15) {
|
|
319
|
-
const _0xa17451 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
320
|
-
let _0x5d6cc0 = '', _0x557d12 = '';
|
|
321
|
-
for (let _0x112a5c = 0x0, _0x362081, _0x1bed7f, _0x3ec866 = 0x0; _0x1bed7f = _0x380f15['charAt'](_0x3ec866++); ~_0x1bed7f && (_0x362081 = _0x112a5c % 0x4 ? _0x362081 * 0x40 + _0x1bed7f : _0x1bed7f, _0x112a5c++ % 0x4) ? _0x5d6cc0 += String['fromCharCode'](0xff & _0x362081 >> (-0x2 * _0x112a5c & 0x6)) : 0x0) {
|
|
322
|
-
_0x1bed7f = _0xa17451['indexOf'](_0x1bed7f);
|
|
323
|
-
}
|
|
324
|
-
for (let _0x42d887 = 0x0, _0x1ed803 = _0x5d6cc0['length']; _0x42d887 < _0x1ed803; _0x42d887++) {
|
|
325
|
-
_0x557d12 += '%' + ('00' + _0x5d6cc0['charCodeAt'](_0x42d887)['toString'](0x10))['slice'](-0x2);
|
|
326
|
-
}
|
|
327
|
-
return decodeURIComponent(_0x557d12);
|
|
328
|
-
};
|
|
329
|
-
a18_0x5a3b['ooBjdv'] = _0x29050f, a18_0x5a3b['MQQhnc'] = {}, a18_0x5a3b['VJpSAE'] = !![];
|
|
330
|
-
}
|
|
331
|
-
const _0x1a09cc = _0x1d1a9b[0x0], _0x208471 = _0x45a539 + _0x1a09cc, _0x2e6f85 = a18_0x5a3b['MQQhnc'][_0x208471];
|
|
332
|
-
return !_0x2e6f85 ? (_0x5a3b35 = a18_0x5a3b['ooBjdv'](_0x5a3b35), a18_0x5a3b['MQQhnc'][_0x208471] = _0x5a3b35) : _0x5a3b35 = _0x2e6f85, _0x5a3b35;
|
|
333
|
-
}
|
|
334
|
-
function encodeAttachment(_0x836e24) {
|
|
335
|
-
const a18_0x240d25 = {
|
|
336
|
-
_0x48f86c: 0x1ff,
|
|
337
|
-
_0x3cb6eb: 0x1f1,
|
|
338
|
-
_0x117e26: 0x1fa
|
|
339
|
-
}, _0x4f76b2 = a18_0x5a3b, _0x137fcb = {
|
|
340
|
-
'AgAiv': function (_0x18041c, _0x124f04) {
|
|
341
|
-
return _0x18041c + _0x124f04;
|
|
342
|
-
}
|
|
343
|
-
}, _0x4becfd = TEXT_ENCODER[_0x4f76b2(0x1f2)](_0x836e24['filename']), _0x3cadd5 = TEXT_ENCODER['encode'](_0x836e24['mimeType']), _0x1012cc = new Uint8Array(_0x137fcb['AgAiv'](_0x137fcb['AgAiv'](0x1 + _0x4becfd[_0x4f76b2(0x1ff)], 0x1), _0x3cadd5['length']) + _0x836e24[_0x4f76b2(0x1fa)]['length']);
|
|
344
|
-
let _0x201391 = 0x0;
|
|
345
|
-
return _0x1012cc[_0x201391++] = _0x4becfd[_0x4f76b2(a18_0x240d25._0x48f86c)], _0x1012cc['set'](_0x4becfd, _0x201391), _0x201391 += _0x4becfd[_0x4f76b2(0x1ff)], _0x1012cc[_0x201391++] = _0x3cadd5[_0x4f76b2(0x1ff)], _0x1012cc[_0x4f76b2(0x1f1)](_0x3cadd5, _0x201391), _0x201391 += _0x3cadd5[_0x4f76b2(0x1ff)], _0x1012cc[_0x4f76b2(a18_0x240d25._0x3cb6eb)](_0x836e24[_0x4f76b2(a18_0x240d25._0x117e26)], _0x201391), _0x1012cc;
|
|
346
|
-
}
|
|
347
|
-
function decodeAttachment(_0x2ae091) {
|
|
348
|
-
const a18_0x5dab09 = {
|
|
349
|
-
_0x1bfc63: 0x22e,
|
|
350
|
-
_0x4289e5: 0x1fc,
|
|
351
|
-
_0x5e982b: 0x1fc
|
|
352
|
-
}, _0x55a642 = a18_0x5a3b;
|
|
353
|
-
let _0x52c9e6 = 0x0;
|
|
354
|
-
const _0x1a0f4b = _0x2ae091[_0x52c9e6++], _0x4e62b3 = TEXT_DECODER[_0x55a642(0x22e)](_0x2ae091[_0x55a642(0x1fc)](_0x52c9e6, _0x52c9e6 + _0x1a0f4b));
|
|
355
|
-
_0x52c9e6 += _0x1a0f4b;
|
|
356
|
-
const _0x5f2fb2 = _0x2ae091[_0x52c9e6++], _0x4c970a = TEXT_DECODER[_0x55a642(a18_0x5dab09._0x1bfc63)](_0x2ae091[_0x55a642(a18_0x5dab09._0x4289e5)](_0x52c9e6, _0x52c9e6 + _0x5f2fb2));
|
|
357
|
-
_0x52c9e6 += _0x5f2fb2;
|
|
358
|
-
const _0x451963 = _0x2ae091[_0x55a642(a18_0x5dab09._0x5e982b)](_0x52c9e6);
|
|
359
|
-
return {
|
|
360
|
-
'filename': _0x4e62b3,
|
|
361
|
-
'mimeType': _0x4c970a,
|
|
362
|
-
'data': _0x451963
|
|
363
|
-
};
|
|
364
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generate a RFC 4122 Version 4 UUID (128-bit random).
|
|
3
|
-
* Uses crypto.randomUUID() when available, otherwise constructs manually
|
|
4
|
-
* from crypto.getRandomValues() with proper version/variant bits.
|
|
5
|
-
*
|
|
6
|
-
* @returns UUID string in standard 8-4-4-4-12 hex format
|
|
7
|
-
*/
|
|
8
|
-
export declare function generateUUID(): string;
|
|
9
|
-
/**
|
|
10
|
-
* Parse a UUID string into its raw 16 bytes.
|
|
11
|
-
*
|
|
12
|
-
* @param uuid - UUID string in 8-4-4-4-12 hex format
|
|
13
|
-
* @returns 16-byte Uint8Array
|
|
14
|
-
*/
|
|
15
|
-
export declare function uuidToBytes(uuid: string): Uint8Array;
|
|
16
|
-
/**
|
|
17
|
-
* Convert raw 16 UUID bytes to the standard string format.
|
|
18
|
-
*
|
|
19
|
-
* @param bytes - 16-byte Uint8Array
|
|
20
|
-
* @returns UUID string in 8-4-4-4-12 hex format
|
|
21
|
-
*/
|
|
22
|
-
export declare function bytesToUuid(bytes: Uint8Array): string;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
function a19_0x1f4b(_0x5713be, _0x2915bc) {
|
|
2
|
-
_0x5713be = _0x5713be - 0x1a5;
|
|
3
|
-
const _0x4bf66f = a19_0x4bf6();
|
|
4
|
-
let _0x1f4b90 = _0x4bf66f[_0x5713be];
|
|
5
|
-
if (a19_0x1f4b['viKZZb'] === undefined) {
|
|
6
|
-
var _0x5629d4 = function (_0x199737) {
|
|
7
|
-
const _0x1a13d7 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
8
|
-
let _0x309d0f = '', _0x4c5c8b = '';
|
|
9
|
-
for (let _0x200be4 = 0x0, _0x3e8f75, _0x23ff2e, _0x56b761 = 0x0; _0x23ff2e = _0x199737['charAt'](_0x56b761++); ~_0x23ff2e && (_0x3e8f75 = _0x200be4 % 0x4 ? _0x3e8f75 * 0x40 + _0x23ff2e : _0x23ff2e, _0x200be4++ % 0x4) ? _0x309d0f += String['fromCharCode'](0xff & _0x3e8f75 >> (-0x2 * _0x200be4 & 0x6)) : 0x0) {
|
|
10
|
-
_0x23ff2e = _0x1a13d7['indexOf'](_0x23ff2e);
|
|
11
|
-
}
|
|
12
|
-
for (let _0x176041 = 0x0, _0x356b46 = _0x309d0f['length']; _0x176041 < _0x356b46; _0x176041++) {
|
|
13
|
-
_0x4c5c8b += '%' + ('00' + _0x309d0f['charCodeAt'](_0x176041)['toString'](0x10))['slice'](-0x2);
|
|
14
|
-
}
|
|
15
|
-
return decodeURIComponent(_0x4c5c8b);
|
|
16
|
-
};
|
|
17
|
-
a19_0x1f4b['ugZltk'] = _0x5629d4, a19_0x1f4b['sWyFJg'] = {}, a19_0x1f4b['viKZZb'] = !![];
|
|
18
|
-
}
|
|
19
|
-
const _0x2ae596 = _0x4bf66f[0x0], _0x40c575 = _0x5713be + _0x2ae596, _0xe1e37 = a19_0x1f4b['sWyFJg'][_0x40c575];
|
|
20
|
-
return !_0xe1e37 ? (_0x1f4b90 = a19_0x1f4b['ugZltk'](_0x1f4b90), a19_0x1f4b['sWyFJg'][_0x40c575] = _0x1f4b90) : _0x1f4b90 = _0xe1e37, _0x1f4b90;
|
|
21
|
-
}
|
|
22
|
-
(function (_0x4f9e0b, _0x2e1cf0) {
|
|
23
|
-
const a19_0x569da2 = {
|
|
24
|
-
_0x517d52: 0x1b7,
|
|
25
|
-
_0x3fb6ae: 0x1b2,
|
|
26
|
-
_0x41b50b: 0x1ac,
|
|
27
|
-
_0x56c77b: 0x1a6,
|
|
28
|
-
_0x11d2de: 0x1b4,
|
|
29
|
-
_0x41bb94: 0x1af,
|
|
30
|
-
_0x2cba97: 0x1bb
|
|
31
|
-
}, _0x21cf9f = a19_0x1f4b, _0x8b9f1c = _0x4f9e0b();
|
|
32
|
-
while (!![]) {
|
|
33
|
-
try {
|
|
34
|
-
const _0x65f039 = parseInt(_0x21cf9f(0x1ab)) / 0x1 * (-parseInt(_0x21cf9f(a19_0x569da2._0x517d52)) / 0x2) + -parseInt(_0x21cf9f(a19_0x569da2._0x3fb6ae)) / 0x3 + parseInt(_0x21cf9f(a19_0x569da2._0x41b50b)) / 0x4 * (parseInt(_0x21cf9f(a19_0x569da2._0x56c77b)) / 0x5) + -parseInt(_0x21cf9f(a19_0x569da2._0x11d2de)) / 0x6 * (parseInt(_0x21cf9f(a19_0x569da2._0x41bb94)) / 0x7) + -parseInt(_0x21cf9f(0x1ad)) / 0x8 + -parseInt(_0x21cf9f(0x1a9)) / 0x9 * (-parseInt(_0x21cf9f(0x1ba)) / 0xa) + parseInt(_0x21cf9f(a19_0x569da2._0x2cba97)) / 0xb;
|
|
35
|
-
if (_0x65f039 === _0x2e1cf0)
|
|
36
|
-
break;
|
|
37
|
-
else
|
|
38
|
-
_0x8b9f1c['push'](_0x8b9f1c['shift']());
|
|
39
|
-
} catch (_0x166036) {
|
|
40
|
-
_0x8b9f1c['push'](_0x8b9f1c['shift']());
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}(a19_0x4bf6, 0x53d9c));
|
|
44
|
-
export function generateUUID() {
|
|
45
|
-
const a19_0x48b2ea = {
|
|
46
|
-
_0x20657a: 0x1b6,
|
|
47
|
-
_0x256d80: 0x1b1,
|
|
48
|
-
_0x13214a: 0x1ae,
|
|
49
|
-
_0x360d2e: 0x1a8
|
|
50
|
-
}, _0x3727de = a19_0x1f4b, _0x15d326 = {
|
|
51
|
-
'ESmbP': function (_0x3793ae, _0x5c9b73) {
|
|
52
|
-
return _0x3793ae !== _0x5c9b73;
|
|
53
|
-
},
|
|
54
|
-
'SjJsR': function (_0x48deff, _0x500d04) {
|
|
55
|
-
return _0x48deff | _0x500d04;
|
|
56
|
-
},
|
|
57
|
-
'kjtjz': function (_0x393291, _0x1abaa0) {
|
|
58
|
-
return _0x393291 & _0x1abaa0;
|
|
59
|
-
},
|
|
60
|
-
'khubY': function (_0x394879, _0x1efe37) {
|
|
61
|
-
return _0x394879 | _0x1efe37;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
if (_0x15d326['ESmbP'](typeof crypto, _0x3727de(a19_0x48b2ea._0x20657a)) && typeof crypto[_0x3727de(0x1b9)] === _0x3727de(0x1a5))
|
|
65
|
-
return crypto['randomUUID']();
|
|
66
|
-
const _0x4b6a57 = new Uint8Array(0x10);
|
|
67
|
-
crypto[_0x3727de(a19_0x48b2ea._0x256d80)](_0x4b6a57), _0x4b6a57[0x6] = _0x15d326[_0x3727de(a19_0x48b2ea._0x13214a)](_0x15d326[_0x3727de(0x1b0)](_0x4b6a57[0x6], 0xf), 0x40), _0x4b6a57[0x8] = _0x15d326[_0x3727de(0x1aa)](_0x15d326[_0x3727de(0x1b0)](_0x4b6a57[0x8], 0x3f), 0x80);
|
|
68
|
-
const _0x524a41 = Array['from'](_0x4b6a57, _0x2902a8 => _0x2902a8[_0x3727de(0x1bd)](0x10)[_0x3727de(0x1b5)](0x2, '0'))[_0x3727de(0x1a7)]('');
|
|
69
|
-
return [
|
|
70
|
-
_0x524a41['slice'](0x0, 0x8),
|
|
71
|
-
_0x524a41['slice'](0x8, 0xc),
|
|
72
|
-
_0x524a41[_0x3727de(a19_0x48b2ea._0x360d2e)](0xc, 0x10),
|
|
73
|
-
_0x524a41[_0x3727de(a19_0x48b2ea._0x360d2e)](0x10, 0x14),
|
|
74
|
-
_0x524a41['slice'](0x14, 0x20)
|
|
75
|
-
][_0x3727de(0x1a7)]('-');
|
|
76
|
-
}
|
|
77
|
-
export function uuidToBytes(_0x294369) {
|
|
78
|
-
const a19_0x541d61 = { _0x33a658: 0x1b3 }, _0x5322cb = a19_0x1f4b, _0x57acc8 = {
|
|
79
|
-
'FLSnb': function (_0x5340d2, _0x27bd00, _0x250018) {
|
|
80
|
-
return _0x5340d2(_0x27bd00, _0x250018);
|
|
81
|
-
}
|
|
82
|
-
}, _0xb42d0c = _0x294369[_0x5322cb(a19_0x541d61._0x33a658)](/-/g, ''), _0x37b20b = new Uint8Array(0x10);
|
|
83
|
-
for (let _0x212ae1 = 0x0; _0x212ae1 < 0x10; _0x212ae1++) {
|
|
84
|
-
_0x37b20b[_0x212ae1] = _0x57acc8[_0x5322cb(0x1b8)](parseInt, _0xb42d0c['slice'](_0x212ae1 * 0x2, _0x212ae1 * 0x2 + 0x2), 0x10);
|
|
85
|
-
}
|
|
86
|
-
return _0x37b20b;
|
|
87
|
-
}
|
|
88
|
-
function a19_0x4bf6() {
|
|
89
|
-
const _0x2d9369 = [
|
|
90
|
-
'mZuWodq4oePjtKjwzq',
|
|
91
|
-
'u2PkC1i',
|
|
92
|
-
'mtyXv2HerfLZ',
|
|
93
|
-
'A2P0ANO',
|
|
94
|
-
'z2v0uMfUzg9TvMfSDwvZ',
|
|
95
|
-
'mtq2ndeYm0jrqKzXwa',
|
|
96
|
-
'CMvWBgfJzq',
|
|
97
|
-
'mtmZotiWD0rUA01R',
|
|
98
|
-
'CgfKu3rHCNq',
|
|
99
|
-
'Dw5KzwzPBMvK',
|
|
100
|
-
'mKnUzhjZra',
|
|
101
|
-
'rKXtBMi',
|
|
102
|
-
'CMfUzg9Tvvvjra',
|
|
103
|
-
'nZb1tNvpC04',
|
|
104
|
-
'mtyZnZa3nJfltfvnDxa',
|
|
105
|
-
'zNjVBq',
|
|
106
|
-
'Dg9tDhjPBMC',
|
|
107
|
-
'zNvUy3rPB24',
|
|
108
|
-
'mtiYnti1u0T3BhHy',
|
|
109
|
-
'AM9PBG',
|
|
110
|
-
'C2XPy2u',
|
|
111
|
-
'mJKXodyXB1HlzKfS',
|
|
112
|
-
'A2H1yLK',
|
|
113
|
-
'mtuYmZG1tg9PzwTw',
|
|
114
|
-
'mZzRzhPbqNG'
|
|
115
|
-
];
|
|
116
|
-
a19_0x4bf6 = function () {
|
|
117
|
-
return _0x2d9369;
|
|
118
|
-
};
|
|
119
|
-
return a19_0x4bf6();
|
|
120
|
-
}
|
|
121
|
-
export function bytesToUuid(_0x2f8c11) {
|
|
122
|
-
const a19_0x5de409 = {
|
|
123
|
-
_0x6ace28: 0x1bc,
|
|
124
|
-
_0x2c158b: 0x1a7,
|
|
125
|
-
_0x418d89: 0x1a8,
|
|
126
|
-
_0x16d710: 0x1a8,
|
|
127
|
-
_0x340170: 0x1a8
|
|
128
|
-
}, _0x41793c = a19_0x1f4b, _0x245651 = Array[_0x41793c(a19_0x5de409._0x6ace28)](_0x2f8c11, _0x390f42 => _0x390f42['toString'](0x10)[_0x41793c(0x1b5)](0x2, '0'))[_0x41793c(a19_0x5de409._0x2c158b)]('');
|
|
129
|
-
return [
|
|
130
|
-
_0x245651[_0x41793c(a19_0x5de409._0x418d89)](0x0, 0x8),
|
|
131
|
-
_0x245651[_0x41793c(a19_0x5de409._0x16d710)](0x8, 0xc),
|
|
132
|
-
_0x245651[_0x41793c(a19_0x5de409._0x340170)](0xc, 0x10),
|
|
133
|
-
_0x245651[_0x41793c(0x1a8)](0x10, 0x14),
|
|
134
|
-
_0x245651[_0x41793c(a19_0x5de409._0x418d89)](0x14, 0x20)
|
|
135
|
-
][_0x41793c(0x1a7)]('-');
|
|
136
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module verify
|
|
3
|
-
* Lightweight sub-path export for verification-only use cases.
|
|
4
|
-
*
|
|
5
|
-
* Import as `@private.me/crypto/verify` for tree-shaking:
|
|
6
|
-
* ```ts
|
|
7
|
-
* import { verifyHMAC, fromBase64, isSupported } from '@private.me/crypto/verify';
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* This module re-exports only HMAC verification, base64 decoding,
|
|
11
|
-
* and the capability check — no splitting, no reconstruction, no padding.
|
|
12
|
-
*/
|
|
13
|
-
export { verifyHMAC } from './hmac.js';
|
|
14
|
-
export { fromBase64, toBase64, fromBase64Url, toBase64Url } from './base64.js';
|
|
15
|
-
export { isSupported } from './index.js';
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
function a20_0x5929() {
|
|
2
|
-
var _0x495042 = [
|
|
3
|
-
'mZa0mdeYofzlDxLnqG',
|
|
4
|
-
'ngLoq0nuuq',
|
|
5
|
-
'mLH0D251Eq',
|
|
6
|
-
'ndC2mdy1nLHiD1Hdtq',
|
|
7
|
-
'ndqYotiZnMndq0HuyW',
|
|
8
|
-
'mJC3nJaYnw5PuejnrG',
|
|
9
|
-
'mtm0mdu3ngjyuezOzG',
|
|
10
|
-
'ntu3nte1BujuAhHI',
|
|
11
|
-
'nJKXmtm3oxH5zgTHDq'
|
|
12
|
-
];
|
|
13
|
-
a20_0x5929 = function () {
|
|
14
|
-
return _0x495042;
|
|
15
|
-
};
|
|
16
|
-
return a20_0x5929();
|
|
17
|
-
}
|
|
18
|
-
(function (_0x5e9717, _0x4e73ef) {
|
|
19
|
-
var a20_0x17eaab = {
|
|
20
|
-
_0x241fd7: 0xa5,
|
|
21
|
-
_0x1f1042: 0xa3,
|
|
22
|
-
_0x3dfb73: 0xab,
|
|
23
|
-
_0x281af3: 0xa7,
|
|
24
|
-
_0x18ee9: 0xaa,
|
|
25
|
-
_0x1d7eb4: 0xa6
|
|
26
|
-
}, _0x4ba6d0 = a20_0x46d9, _0x25033e = _0x5e9717();
|
|
27
|
-
while (!![]) {
|
|
28
|
-
try {
|
|
29
|
-
var _0x222d89 = -parseInt(_0x4ba6d0(a20_0x17eaab._0x241fd7)) / 0x1 + parseInt(_0x4ba6d0(0xa9)) / 0x2 * (parseInt(_0x4ba6d0(0xa4)) / 0x3) + -parseInt(_0x4ba6d0(0xa8)) / 0x4 * (parseInt(_0x4ba6d0(a20_0x17eaab._0x1f1042)) / 0x5) + -parseInt(_0x4ba6d0(a20_0x17eaab._0x3dfb73)) / 0x6 + parseInt(_0x4ba6d0(a20_0x17eaab._0x281af3)) / 0x7 + parseInt(_0x4ba6d0(a20_0x17eaab._0x18ee9)) / 0x8 + parseInt(_0x4ba6d0(a20_0x17eaab._0x1d7eb4)) / 0x9;
|
|
30
|
-
if (_0x222d89 === _0x4e73ef)
|
|
31
|
-
break;
|
|
32
|
-
else
|
|
33
|
-
_0x25033e['push'](_0x25033e['shift']());
|
|
34
|
-
} catch (_0x454939) {
|
|
35
|
-
_0x25033e['push'](_0x25033e['shift']());
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}(a20_0x5929, 0x60021));
|
|
39
|
-
export {
|
|
40
|
-
verifyHMAC
|
|
41
|
-
} from './hmac.js';
|
|
42
|
-
function a20_0x46d9(_0x38f89a, _0x471fd9) {
|
|
43
|
-
_0x38f89a = _0x38f89a - 0xa3;
|
|
44
|
-
var _0x59294a = a20_0x5929();
|
|
45
|
-
var _0x46d980 = _0x59294a[_0x38f89a];
|
|
46
|
-
if (a20_0x46d9['KzQQhi'] === undefined) {
|
|
47
|
-
var _0x69bf7a = function (_0x462f2f) {
|
|
48
|
-
var _0x4c49db = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
49
|
-
var _0x1f148a = '', _0xde4129 = '';
|
|
50
|
-
for (var _0x4ac71d = 0x0, _0xe07edc, _0x2efe63, _0x4a044a = 0x0; _0x2efe63 = _0x462f2f['charAt'](_0x4a044a++); ~_0x2efe63 && (_0xe07edc = _0x4ac71d % 0x4 ? _0xe07edc * 0x40 + _0x2efe63 : _0x2efe63, _0x4ac71d++ % 0x4) ? _0x1f148a += String['fromCharCode'](0xff & _0xe07edc >> (-0x2 * _0x4ac71d & 0x6)) : 0x0) {
|
|
51
|
-
_0x2efe63 = _0x4c49db['indexOf'](_0x2efe63);
|
|
52
|
-
}
|
|
53
|
-
for (var _0x53c370 = 0x0, _0x11afb6 = _0x1f148a['length']; _0x53c370 < _0x11afb6; _0x53c370++) {
|
|
54
|
-
_0xde4129 += '%' + ('00' + _0x1f148a['charCodeAt'](_0x53c370)['toString'](0x10))['slice'](-0x2);
|
|
55
|
-
}
|
|
56
|
-
return decodeURIComponent(_0xde4129);
|
|
57
|
-
};
|
|
58
|
-
a20_0x46d9['VSNeNq'] = _0x69bf7a, a20_0x46d9['oPHkLn'] = {}, a20_0x46d9['KzQQhi'] = !![];
|
|
59
|
-
}
|
|
60
|
-
var _0x4b56fe = _0x59294a[0x0], _0x2fba35 = _0x38f89a + _0x4b56fe, _0x64aa67 = a20_0x46d9['oPHkLn'][_0x2fba35];
|
|
61
|
-
return !_0x64aa67 ? (_0x46d980 = a20_0x46d9['VSNeNq'](_0x46d980), a20_0x46d9['oPHkLn'][_0x2fba35] = _0x46d980) : _0x46d980 = _0x64aa67, _0x46d980;
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
fromBase64,
|
|
65
|
-
toBase64,
|
|
66
|
-
fromBase64Url,
|
|
67
|
-
toBase64Url
|
|
68
|
-
} from './base64.js';
|
|
69
|
-
export {
|
|
70
|
-
isSupported
|
|
71
|
-
} from './index.js';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* XorIDA Threshold Secret Sharing over GF(2).
|
|
3
|
-
*
|
|
4
|
-
* Proprietary, patent-protected (k,n)-threshold secret sharing construction.
|
|
5
|
-
*
|
|
6
|
-
* All arithmetic is XOR (GF(2)). The generator matrix is constructed from a cyclic
|
|
7
|
-
* index formula using NextOddPrime(n). Any k-of-n shares reconstruct the original
|
|
8
|
-
* message via Gaussian elimination on the restricted generator matrix.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Find the smallest odd prime >= n.
|
|
12
|
-
* Used to determine the cyclic group Z_p for generator matrix construction.
|
|
13
|
-
*
|
|
14
|
-
* @param n - Total number of shares
|
|
15
|
-
* @returns Smallest odd prime >= n
|
|
16
|
-
*/
|
|
17
|
-
export declare function nextOddPrime(n: number): number;
|
|
18
|
-
/**
|
|
19
|
-
* Split a padded message into n shares using XorIDA threshold sharing.
|
|
20
|
-
*
|
|
21
|
-
* The message length must be a multiple of b = NextOddPrime(n) - 1.
|
|
22
|
-
* Each share is the same length as the input message.
|
|
23
|
-
*
|
|
24
|
-
* @param paddedMessage - PKCS#7-padded message (length must be multiple of b)
|
|
25
|
-
* @param n - Total number of shares to produce
|
|
26
|
-
* @param k - Threshold: minimum shares needed for reconstruction
|
|
27
|
-
* @returns Array of n shares, each the same length as paddedMessage
|
|
28
|
-
*/
|
|
29
|
-
export declare function splitXorIDA(paddedMessage: Uint8Array, n: number, k: number): Uint8Array[];
|
|
30
|
-
/**
|
|
31
|
-
* Split with externally provided random source arrays (for testing with known vectors).
|
|
32
|
-
* @internal Exported for testing only.
|
|
33
|
-
*/
|
|
34
|
-
export declare function splitWithRandom(paddedMessage: Uint8Array, n: number, k: number, p: number, b: number, randomArrays?: Uint8Array[]): Uint8Array[];
|
|
35
|
-
/**
|
|
36
|
-
* Reconstruct the padded message from k shares via GF(2) Gaussian elimination.
|
|
37
|
-
*
|
|
38
|
-
* @param shares - Array of k share byte arrays
|
|
39
|
-
* @param indices - Original indices (0-based) of the provided shares
|
|
40
|
-
* @param n - Total number of shares that were produced
|
|
41
|
-
* @param k - Threshold used during splitting
|
|
42
|
-
* @returns Reconstructed padded message
|
|
43
|
-
*/
|
|
44
|
-
export declare function reconstructXorIDA(shares: Uint8Array[], indices: number[], n: number, k: number): Uint8Array;
|