@syferit/llvm 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -4
- package/dist/index.js +18 -18
- package/dist/irTransformer.js +247 -246
- package/dist/nativeSourceTransformer.js +145 -145
- package/dist/types.js +3 -3
- package/package.json +2 -2
|
@@ -11,8 +11,8 @@ export class NativeSourceTransformer {
|
|
|
11
11
|
this.mba = new MBASynthesizer(this.prng);
|
|
12
12
|
}
|
|
13
13
|
transform(sourceCode, lang = 'cpp') {
|
|
14
|
-
function
|
|
15
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
14
|
+
function assertRingBufferIntegrity_4504(_tok0, _tok1, _tok2, _tok3) {
|
|
15
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:9e374a5e-25bc70da]",
|
|
16
16
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
17
17
|
let _h = 2166136261;
|
|
18
18
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -30,52 +30,52 @@ export class NativeSourceTransformer {
|
|
|
30
30
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
31
31
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
32
32
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
33
|
-
if ((_h >>> 4 & 15) !==
|
|
33
|
+
if ((_h >>> 4 & 15) !== 5) {
|
|
34
34
|
throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
|
|
35
35
|
}
|
|
36
36
|
return _h;
|
|
37
37
|
}
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
const _row =
|
|
42
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
38
|
+
const __ringBufferIntegrity_4504 = assertRingBufferIntegrity_4504(184892977, 1550595037, 771046199, 1189807889);
|
|
39
|
+
const _transformedCountProof_4504 = [[58, 32, 247, 108, 175, 236, 47, 131, 219, 66, 240, 52, 108, 119, 42, 184, 216], [229, 11, 218, 33, 121, 109, 48, 181, 204, 248, 160], [206, 224, 188, 54, 75, 82, 10, 143, 187, 214, 166, 253, 13, 44, 230, 64, 146], [163, 203, 155, 209, 46, 57, 229, 80, 134, 141, 65, 218, 232, 23, 217, 47, 127], [130, 168, 104, 199], [112, 108, 35, 180, 200, 224, 177, 51, 84, 89, 7, 108, 176, 202, 153, 240]];
|
|
40
|
+
function _verifyMode_4504(_slot) {
|
|
41
|
+
const _row = _transformedCountProof_4504[_slot];
|
|
42
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__ringBufferIntegrity_4504 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
43
43
|
}
|
|
44
|
-
if (this.options.mode ===
|
|
44
|
+
if (this.options.mode === _verifyMode_4504(26645 ^ (__ringBufferIntegrity_4504 & 65535 ^ 19529)) && (Math.imul(Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 89 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 89 | 1), Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 89 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 89 | 1)) & 15 ^ (__ringBufferIntegrity_4504 >>> 2 & 255 ^ 76)) === 92) {
|
|
45
45
|
return {
|
|
46
46
|
code: sourceCode,
|
|
47
|
-
transformedCount: (
|
|
47
|
+
transformedCount: (9850 ^ __ringBufferIntegrity_4504 & 65535) / (45301 ^ __ringBufferIntegrity_4504 >>> 16 & 65535),
|
|
48
48
|
seedUsed: this.seed,
|
|
49
49
|
inoculationInjected: false,
|
|
50
|
-
stateKeyDerived: (
|
|
50
|
+
stateKeyDerived: (9850 ^ __ringBufferIntegrity_4504 & 65535) / (45301 ^ __ringBufferIntegrity_4504 >>> 16 & 65535)
|
|
51
51
|
};
|
|
52
|
-
} else if (this.options.mode ===
|
|
52
|
+
} else if (this.options.mode === _verifyMode_4504(22821 ^ (__ringBufferIntegrity_4504 & 65535 ^ 32120)) && (Math.imul(Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 41 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 41 | 1), Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 41 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 41 | 1)) & 15 ^ (__ringBufferIntegrity_4504 >>> 14 & 255 ^ 33)) === 212) {
|
|
53
53
|
return {
|
|
54
54
|
code: sourceCode,
|
|
55
|
-
transformedCount:
|
|
55
|
+
transformedCount: 1289 ^ (__ringBufferIntegrity_4504 & 65535 ^ 8533),
|
|
56
56
|
seedUsed: this.seed,
|
|
57
57
|
inoculationInjected: false,
|
|
58
|
-
stateKeyDerived:
|
|
58
|
+
stateKeyDerived: 32435 ^ (__ringBufferIntegrity_4504 & 65535 ^ 23279)
|
|
59
59
|
};
|
|
60
|
-
} else if (this.options.mode ===
|
|
60
|
+
} else if (this.options.mode === _verifyMode_4504(17098 ^ (__ringBufferIntegrity_4504 & 65535 ^ 26260)) && (Math.imul(Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 51 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 51 | 1), Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 51 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 51 | 1)) & 15 ^ (__ringBufferIntegrity_4504 >>> 21 & 255 ^ 130)) === 0) {
|
|
61
61
|
return {
|
|
62
62
|
code: sourceCode,
|
|
63
|
-
transformedCount: (
|
|
63
|
+
transformedCount: (9850 ^ __ringBufferIntegrity_4504 & 65535) / (45301 ^ __ringBufferIntegrity_4504 >>> 16 & 65535),
|
|
64
64
|
seedUsed: this.seed,
|
|
65
65
|
inoculationInjected: false,
|
|
66
|
-
stateKeyDerived: (
|
|
66
|
+
stateKeyDerived: (9554 ^ __ringBufferIntegrity_4504 & 65535) / (45301 ^ __ringBufferIntegrity_4504 >>> 16 & 65535)
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
if (lang ===
|
|
69
|
+
if (lang === _verifyMode_4504(6584 ^ (__ringBufferIntegrity_4504 & 65535 ^ 15847)) && (Math.imul(Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 121 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 121 | 1), Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 121 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 121 | 1)) & 15 ^ (__ringBufferIntegrity_4504 >>> 4 & 255 ^ 238)) === 164) {
|
|
70
70
|
return this.transformRust(sourceCode);
|
|
71
|
-
} else if (lang ===
|
|
71
|
+
} else if (lang === _verifyMode_4504(20025 ^ (__ringBufferIntegrity_4504 & 65535 ^ 27233)) && (Math.imul(Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 33 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 33 | 1), Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 33 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 33 | 1)) & 15 ^ (__ringBufferIntegrity_4504 >>> 5 & 255 ^ 230)) === 197) {
|
|
72
72
|
return this.transformRust(sourceCode);
|
|
73
|
-
} else if (lang ===
|
|
73
|
+
} else if (lang === _verifyMode_4504(16680 ^ (__ringBufferIntegrity_4504 & 65535 ^ 25969)) && (Math.imul(Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 58 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 58 | 1), Math.imul(((sourceCode.seats || sourceCode | 0) | 0) ^ 58 | 1, ((sourceCode.seats || sourceCode | 0) | 0) ^ 58 | 1)) & 15 ^ (__ringBufferIntegrity_4504 >>> 20 & 255 ^ 134)) === 138) {
|
|
74
74
|
return this.transformRust(sourceCode);
|
|
75
75
|
}
|
|
76
|
-
return (
|
|
77
|
-
function
|
|
78
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
76
|
+
return (__ringBufferIntegrity_4504 & 255) === 92 ? this.transformCCpp(sourceCode) : (() => {
|
|
77
|
+
function isolateSeed_c94a(_tok0, _tok1, _tok2, _tok3) {
|
|
78
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:5ac680c5-daa05615]",
|
|
79
79
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
80
80
|
let _h = 2166136261;
|
|
81
81
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -93,21 +93,21 @@ export class NativeSourceTransformer {
|
|
|
93
93
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
94
94
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
95
95
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
96
|
-
if ((_h >>> 4 & 15) !==
|
|
97
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
96
|
+
if ((_h >>> 4 & 15) !== 1) {
|
|
97
|
+
throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
|
|
98
98
|
}
|
|
99
99
|
return _h;
|
|
100
100
|
}
|
|
101
|
-
const
|
|
102
|
-
if ((
|
|
101
|
+
const __keyDerivationStateBitmask_c94a = isolateSeed_c94a(982671247, 1121510553, 174752375, 196833383);
|
|
102
|
+
if ((__keyDerivationStateBitmask_c94a & 255) !== 31) {
|
|
103
103
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
104
104
|
}
|
|
105
105
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
106
106
|
})();
|
|
107
107
|
}
|
|
108
108
|
transformCCpp(rawSourceCode) {
|
|
109
|
-
function
|
|
110
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
109
|
+
function attestCode_78d3(_tok0, _tok1, _tok2, _tok3) {
|
|
110
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:9a1a87ee-647a29ae]",
|
|
111
111
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
112
112
|
let _h = 2166136261;
|
|
113
113
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -125,46 +125,46 @@ export class NativeSourceTransformer {
|
|
|
125
125
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
126
126
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
127
127
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
128
|
-
if ((_h >>> 4 & 15) !==
|
|
129
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
128
|
+
if ((_h >>> 4 & 15) !== 3) {
|
|
129
|
+
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
130
130
|
}
|
|
131
131
|
return _h;
|
|
132
132
|
}
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
function
|
|
136
|
-
const _row =
|
|
137
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
133
|
+
const __hmacFrameAttestation_78d3 = attestCode_78d3(1649033919, 1137618183, 471996055, 398936621);
|
|
134
|
+
const _codeAttestation_78d3 = [[80, 249, 230], [40, 211, 222, 238], [224, 137, 189, 221], [206, 106, 110, 181, 72], [169, 68, 83, 155, 13, 218], [128, 53, 63, 107, 244, 138], [116, 26, 30, 48, 223], [79, 238, 244, 28, 185, 77], [18, 203, 200, 248, 150, 39], [229, 136, 190, 193, 105], [219, 124, 102, 187, 86, 254], [160, 92, 64, 138, 5, 182, 216], [128, 58, 32, 85, 186, 213, 189, 193], [115, 22, 16, 42, 219, 104, 98], [76, 252, 249, 24]];
|
|
135
|
+
function _evaluateEnclaveDigest_78d3(_slot) {
|
|
136
|
+
const _row = _codeAttestation_78d3[_slot];
|
|
137
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__hmacFrameAttestation_78d3 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
while ((
|
|
144
|
-
const w =
|
|
145
|
-
if (![
|
|
146
|
-
|
|
139
|
+
const _optionsIntegrity_7cf = rawSourceCode.replace(/\/\*[\s\S]*?\*\//g, '').replace(/(?<!:)\/\/.*$/gm, '');
|
|
140
|
+
const _hmacFrameEnvelope_47d = [];
|
|
141
|
+
const _hkdfSaltRotation_b9 = /\b([a-zA-Z_][a-zA-Z0-9_]{3,20})\b/g;
|
|
142
|
+
let _prngIntegrity_4be;
|
|
143
|
+
while ((_prngIntegrity_4be = _hkdfSaltRotation_b9.exec(_optionsIntegrity_7cf)) !== null) {
|
|
144
|
+
const w = _prngIntegrity_4be[22271 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 9415)];
|
|
145
|
+
if (![_evaluateEnclaveDigest_78d3(19635 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 16010)), _evaluateEnclaveDigest_78d3(10492 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 23236)), _evaluateEnclaveDigest_78d3(5475 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 26456)), _evaluateEnclaveDigest_78d3(1824 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 29978)), _evaluateEnclaveDigest_78d3(21765 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 10040)), _evaluateEnclaveDigest_78d3(18392 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 13796)), _evaluateEnclaveDigest_78d3(735 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 28896)), _evaluateEnclaveDigest_78d3(19831 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 16201)), _evaluateEnclaveDigest_78d3(6680 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 26665)), _evaluateEnclaveDigest_78d3(14023 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 17655)), _evaluateEnclaveDigest_78d3(31999 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 3788)), _evaluateEnclaveDigest_78d3(4535 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 25477)), _evaluateEnclaveDigest_78d3(12571 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 17198)), _evaluateEnclaveDigest_78d3(21120 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 8372))].includes(w)) {
|
|
146
|
+
_hmacFrameEnvelope_47d.push(w);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
const
|
|
150
|
-
const
|
|
151
|
-
const
|
|
152
|
-
const
|
|
153
|
-
const
|
|
154
|
-
const
|
|
155
|
-
const
|
|
156
|
-
const
|
|
157
|
-
const
|
|
158
|
-
const
|
|
159
|
-
const
|
|
160
|
-
const
|
|
161
|
-
const
|
|
162
|
-
const
|
|
163
|
-
const
|
|
164
|
-
let
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
149
|
+
const _transformAttestation_a51 = buildPolymorphicDictionary(this.options.domainProfile ?? _evaluateEnclaveDigest_78d3(16868 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 13267)), this.prng, _hmacFrameEnvelope_47d, this.options.customDictionary ?? []);
|
|
150
|
+
const _seedIntegrity_657 = this.prng.pick(_transformAttestation_a51.legalInoculations);
|
|
151
|
+
const _constructorIntegrity_d6 = `${this.prng.nextUint32().toString(9212 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 20949)).padStart(5120 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 26161), '0')}-${this.prng.nextUint32().toString(31252 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 2109)).padStart(27218 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 6243), '0')}`;
|
|
152
|
+
const _SeededPRNGAttestation_8e2 = `${_seedIntegrity_657} [ATTESTATION_ID:${_constructorIntegrity_d6}]`;
|
|
153
|
+
const _transformRustProof_e2c = (this.prng.nextUint32() & (56046 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 22312))).toString(8448 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 21289));
|
|
154
|
+
const _ProprietaryEnclaveDelta_3ff = `${this.prng.pick(_transformAttestation_a51.symbols)}_${_transformRustProof_e2c}`;
|
|
155
|
+
const _MBASynthesizerProof_a77 = `${this.prng.pick(_transformAttestation_a51.stateKeys)}_${_transformRustProof_e2c}`;
|
|
156
|
+
const _hmacFrameSequence_bf1 = `_fold_carry_${_transformRustProof_e2c}`;
|
|
157
|
+
const _tpmUnsealOffset_7b9 = `_unmask_scalar_${_transformRustProof_e2c}`;
|
|
158
|
+
const _sgxEcallCounter_61d = `_verify_quorum_${_transformRustProof_e2c}`;
|
|
159
|
+
const _SoltrixStudiosDelta_53f = `${this.prng.pick(_transformAttestation_a51.symbols)}_decoy_${_transformRustProof_e2c}`;
|
|
160
|
+
const _generateCryptoSeedAttestation_6d0 = this.prng.nextUint32() & 2147483646 + ((__hmacFrameAttestation_78d3 & 255) - 57) | 26483 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 5451);
|
|
161
|
+
const _SyferitEngineDelta_971 = this.mba.computeStringKey(_SeededPRNGAttestation_8e2, _generateCryptoSeedAttestation_6d0);
|
|
162
|
+
const _transformCCppSequence_8ff = _SyferitEngineDelta_971 >>> (3202 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 32447)) & (21586 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 9828));
|
|
163
|
+
const _keyDerivationStateBitmask_24c = _SeededPRNGAttestation_8e2.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
|
|
164
|
+
let _hmacFrameAttestation_5d6 = 2944 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 31161);
|
|
165
|
+
const _entropyNonceVector_f3c = _optionsIntegrity_7cf.replace(/(\b(?:int|long|short|unsigned|uint32_t|int32_t|uint64_t|int64_t|double|float|bool|auto)\s+[a-zA-Z_][a-zA-Z0-9_]*\s*\([^;{}]*\)\s*\{)/g, matchHeader => {
|
|
166
|
+
function verifySoltrixStudiosContext_f6f9(_tok0, _tok1, _tok2, _tok3) {
|
|
167
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:b25a0a27-abaab716]",
|
|
168
168
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
169
169
|
let _h = 2166136261;
|
|
170
170
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -182,20 +182,20 @@ export class NativeSourceTransformer {
|
|
|
182
182
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
183
183
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
184
184
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
185
|
-
if ((_h >>> 4 & 15) !==
|
|
185
|
+
if ((_h >>> 4 & 15) !== 14) {
|
|
186
186
|
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
187
187
|
}
|
|
188
188
|
return _h;
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
const
|
|
193
|
-
const
|
|
194
|
-
const
|
|
195
|
-
const
|
|
196
|
-
return (
|
|
197
|
-
function
|
|
198
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
190
|
+
const __entropySeedDigest_f6f9 = verifySoltrixStudiosContext_f6f9(369364651, 1007757675, 1722321189, 736151577);
|
|
191
|
+
_hmacFrameAttestation_5d6++;
|
|
192
|
+
const _prngIntegrity_e12 = this.prng.nextUint32() & 2147483646 + ((__hmacFrameAttestation_78d3 & 255) - 57) | 4268 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 25236);
|
|
193
|
+
const _hmacFrameAttestation_ff4 = (12835 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 16411) ^ _prngIntegrity_e12) >>> (21885 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 10052));
|
|
194
|
+
const _hmacFrameSequence_aa4 = (_prngIntegrity_e12 ^ _SyferitEngineDelta_971) >>> (9565 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 22372));
|
|
195
|
+
const _hmacFrameVector_dbe = [matchHeader, ` const unsigned int ${_MBASynthesizerProof_a77} = ${_ProprietaryEnclaveDelta_3ff}(${_generateCryptoSeedAttestation_6d0}u);`, ` if (${_sgxEcallCounter_61d}(${_MBASynthesizerProof_a77}, ${_hmacFrameAttestation_ff4}u, ${_hmacFrameSequence_aa4}u) == 0u) { return ${_SoltrixStudiosDelta_53f}(${_MBASynthesizerProof_a77}); }`].join('\n');
|
|
196
|
+
return (__entropySeedDigest_f6f9 & 255) === 234 ? _hmacFrameVector_dbe : (() => {
|
|
197
|
+
function evaluateHmacFrameBitmask_f318(_tok0, _tok1, _tok2, _tok3) {
|
|
198
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:754ce6d6-9c59bff9]",
|
|
199
199
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
200
200
|
let _h = 2166136261;
|
|
201
201
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -213,28 +213,28 @@ export class NativeSourceTransformer {
|
|
|
213
213
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
214
214
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
215
215
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
216
|
-
if ((_h >>> 4 & 15) !==
|
|
216
|
+
if ((_h >>> 4 & 15) !== 0) {
|
|
217
217
|
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
218
218
|
}
|
|
219
219
|
return _h;
|
|
220
220
|
}
|
|
221
|
-
const
|
|
222
|
-
if ((
|
|
221
|
+
const __entropyNonceVector_f318 = evaluateHmacFrameBitmask_f318(263585525, 1392580891, 828136467, 400587303);
|
|
222
|
+
if ((__entropyNonceVector_f318 & 255) !== 7) {
|
|
223
223
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
224
224
|
}
|
|
225
225
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
226
226
|
})();
|
|
227
227
|
});
|
|
228
|
-
const
|
|
229
|
-
return (
|
|
230
|
-
code: `${
|
|
231
|
-
transformedCount:
|
|
228
|
+
const _seedUsedVector_92f = [`/* [Protected by Soltrix Studios — Syferit Code Defense Engine | https://syferit.soltrixstudios.com] */`, `#if defined(__GNUC__) || defined(__clang__)`, ` #define SYFERIT_USED __attribute__((used))`, ` #define SYFERIT_NOINLINE __attribute__((noinline))`, `#elif defined(_MSC_VER)`, ` #define SYFERIT_USED`, ` #define SYFERIT_NOINLINE __declspec(noinline)`, `#else`, ` #define SYFERIT_USED`, ` #define SYFERIT_NOINLINE`, `#endif`, ``, `SYFERIT_USED static const char _syferit_attestation_${_transformRustProof_e2c}[] = "${_keyDerivationStateBitmask_24c}";`, ``, `SYFERIT_NOINLINE static unsigned int ${_ProprietaryEnclaveDelta_3ff}(unsigned int _tok) {`, ` unsigned int _h = (2166136261u ^ _tok);`, ` for (unsigned int _i = 0; _syferit_attestation_${_transformRustProof_e2c}[_i] != '\\0'; ++_i) {`, ` _h ^= (unsigned char)_syferit_attestation_${_transformRustProof_e2c}[_i];`, ` _h *= 16777619u;`, ` _h ^= (_h >> 13);`, ` }`, ` _h = (_h ^ (_h >> 16)) * 2246822507u;`, ` _h = (_h ^ (_h >> 13)) * 3266489909u;`, ` _h = (_h ^ (_h >> 16));`, ` if ((_h & 0xFFFFu) == 0u) _h |= 0x1337u;`, ` if (((_h >> 16) & 0xFFFFu) == 0u) _h |= 0x73310000u;`, ` if (((_h >> 4) & 0xFu) != ${_transformCCppSequence_8ff}u) {`, ` volatile int *_trap = (volatile int *)0; *_trap = 0;`, ` }`, ` return _h;`, `}`, ``, `static inline unsigned int ${_tpmUnsealOffset_7b9}(unsigned int _c1, unsigned int _c2, unsigned int _k) {`, ` return _c1 ^ (_k ^ _c2);`, `}`, ``, `static inline unsigned int ${_hmacFrameSequence_bf1}(unsigned int _x, unsigned int _y) {`, ` return (_x ^ _y) + ((_x & _y) << 1u);`, `}`, ``, `static inline unsigned int ${_sgxEcallCounter_61d}(unsigned int _k, unsigned int _c1, unsigned int _c2) {`, ` unsigned int _u = _k | 1u;`, ` unsigned int _u2 = _u * _u;`, ` unsigned int _u4 = _u2 * _u2;`, ` unsigned int _expected = ${_tpmUnsealOffset_7b9}(_c1, _c2, _k);`, ` return ((_u4 & 15u) == _expected) ? 1u : 0u;`, `}`, ``, `SYFERIT_NOINLINE static int ${_SoltrixStudiosDelta_53f}(unsigned int _k) {`, ` unsigned int _acc = ${_hmacFrameSequence_bf1}(_k, 0x5A17E9B3u);`, ` return (int)(_acc ^ 0xDEADBEEFu);`, `}`, ``].join('\n');
|
|
229
|
+
return (__hmacFrameAttestation_78d3 & 255) === 57 ? {
|
|
230
|
+
code: `${_seedUsedVector_92f}\n${_entropyNonceVector_f3c}`,
|
|
231
|
+
transformedCount: _hmacFrameAttestation_5d6,
|
|
232
232
|
seedUsed: this.seed,
|
|
233
233
|
inoculationInjected: true,
|
|
234
|
-
stateKeyDerived:
|
|
234
|
+
stateKeyDerived: _SyferitEngineDelta_971 >>> (20307 ^ (__hmacFrameAttestation_78d3 & 65535 ^ 15722))
|
|
235
235
|
} : (() => {
|
|
236
|
-
function
|
|
237
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
236
|
+
function auditTransform_12db(_tok0, _tok1, _tok2, _tok3) {
|
|
237
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:84986fa8-bec6aed6]",
|
|
238
238
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
239
239
|
let _h = 2166136261;
|
|
240
240
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -252,21 +252,21 @@ export class NativeSourceTransformer {
|
|
|
252
252
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
253
253
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
254
254
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
255
|
-
if ((_h >>> 4 & 15) !==
|
|
256
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
255
|
+
if ((_h >>> 4 & 15) !== 4) {
|
|
256
|
+
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
257
257
|
}
|
|
258
258
|
return _h;
|
|
259
259
|
}
|
|
260
|
-
const
|
|
261
|
-
if ((
|
|
260
|
+
const __keyDerivationStateBitmask_12db = auditTransform_12db(131716619, 723733873, 224418847, 1600223997);
|
|
261
|
+
if ((__keyDerivationStateBitmask_12db & 255) !== 72) {
|
|
262
262
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
263
263
|
}
|
|
264
264
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
265
265
|
})();
|
|
266
266
|
}
|
|
267
267
|
transformRust(rawSourceCode) {
|
|
268
|
-
function
|
|
269
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
268
|
+
function unsealKeyDerivationStateIntegrity_2cda(_tok0, _tok1, _tok2, _tok3) {
|
|
269
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:f8fbfecb-95e6035d]",
|
|
270
270
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
271
271
|
let _h = 2166136261;
|
|
272
272
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -284,43 +284,43 @@ export class NativeSourceTransformer {
|
|
|
284
284
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
285
285
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
286
286
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
287
|
-
if ((_h >>> 4 & 15) !==
|
|
288
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
287
|
+
if ((_h >>> 4 & 15) !== 10) {
|
|
288
|
+
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
289
289
|
}
|
|
290
290
|
return _h;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
293
|
-
const
|
|
294
|
-
function
|
|
295
|
-
const _row =
|
|
296
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
292
|
+
const __hmacFrameEnvelope_2cda = unsealKeyDerivationStateIntegrity_2cda(2073459335, 474355955, 248789743, 698256419);
|
|
293
|
+
const _MBASynthesizerProof_2cda = [[209, 36, 88, 48], [161, 3, 46, 27, 4, 207, 198, 204, 176, 161, 217, 227, 247, 84, 115, 71, 99], [137, 225, 224, 225, 225, 85, 114, 126, 125, 196, 196, 217, 201, 63, 90, 45]];
|
|
294
|
+
function _attestHmacFrameVector_2cda(_slot) {
|
|
295
|
+
const _row = _MBASynthesizerProof_2cda[_slot];
|
|
296
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__hmacFrameEnvelope_2cda >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
297
297
|
}
|
|
298
|
-
const
|
|
299
|
-
const
|
|
300
|
-
const
|
|
301
|
-
let
|
|
302
|
-
while ((
|
|
303
|
-
if (
|
|
304
|
-
|
|
298
|
+
const _optionsIntegrity_b75 = rawSourceCode.replace(/\/\*[\s\S]*?\*\//g, '').replace(/(?<!:)\/\/.*$/gm, '');
|
|
299
|
+
const _transformRustProof_3d = [];
|
|
300
|
+
const _constructorIntegrity_eaf = /\bfn\s+([a-zA-Z_][a-zA-Z0-9_]*)/g;
|
|
301
|
+
let _modeVector_bc0;
|
|
302
|
+
while ((_modeVector_bc0 = _constructorIntegrity_eaf.exec(_optionsIntegrity_b75)) !== null) {
|
|
303
|
+
if (_modeVector_bc0[13125 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 5094)] && _modeVector_bc0[22962 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 30993)].length >= (24920 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 16894))) {
|
|
304
|
+
_transformRustProof_3d.push(_modeVector_bc0[19197 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 27230)]);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
const
|
|
308
|
-
const
|
|
309
|
-
const
|
|
310
|
-
const
|
|
311
|
-
const
|
|
312
|
-
const
|
|
313
|
-
const
|
|
314
|
-
const
|
|
315
|
-
const
|
|
316
|
-
const
|
|
317
|
-
const
|
|
318
|
-
const
|
|
319
|
-
const
|
|
320
|
-
let
|
|
321
|
-
const
|
|
322
|
-
function
|
|
323
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
307
|
+
const _hmacFrameAttestation_519 = buildPolymorphicDictionary(this.options.domainProfile ?? _attestHmacFrameVector_2cda(23209 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 31243)), this.prng, _transformRustProof_3d, this.options.customDictionary ?? []);
|
|
308
|
+
const _codeAttestation_7a4 = this.prng.pick(_hmacFrameAttestation_519.legalInoculations);
|
|
309
|
+
const _SoltrixStudiosDelta_f1a = `${this.prng.nextUint32().toString(283 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 8617)).padStart(16495 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 24773), '0')}-${this.prng.nextUint32().toString(24714 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 16440)).padStart(18680 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 26706), '0')}`;
|
|
310
|
+
const _tpmPcrBankEnvelope_11b = `${_codeAttestation_7a4} [ATTESTATION_ID:${_SoltrixStudiosDelta_f1a}]`;
|
|
311
|
+
const _keyDerivationStateBitmask_251 = (this.prng.nextUint32() & (64516 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 9049))).toString(27046 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 18708));
|
|
312
|
+
const _SeededPRNGAttestation_637 = `${this.prng.pick(_hmacFrameAttestation_519.symbols)}_${_keyDerivationStateBitmask_251}`.toLowerCase();
|
|
313
|
+
const _enclaveDigestSequence_715 = `${this.prng.pick(_hmacFrameAttestation_519.stateKeys)}_${_keyDerivationStateBitmask_251}`.toLowerCase();
|
|
314
|
+
const _tpmPcrBankVector_dcc = `_verify_quorum_${_keyDerivationStateBitmask_251}`;
|
|
315
|
+
const _seedIntegrity_32d = `_fold_carry_${_keyDerivationStateBitmask_251}`;
|
|
316
|
+
const _sgxEcallCounter_2ad = this.prng.nextUint32() & 2147483646 + ((__hmacFrameEnvelope_2cda & 255) - 162) | 30872 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 22587);
|
|
317
|
+
const _transformCCppSequence_129 = this.mba.computeStringKey(_tpmPcrBankEnvelope_11b, _sgxEcallCounter_2ad);
|
|
318
|
+
const _entropyNonceVector_d85 = _transformCCppSequence_129 >>> (15864 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 7518)) & (9133 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 768));
|
|
319
|
+
const _monotonicNonceDrift_91a = _tpmPcrBankEnvelope_11b.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
|
|
320
|
+
let _enclaveDigestBitmask_68e = 6769 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 15059);
|
|
321
|
+
const _pcrPolicyBitmask_db = _optionsIntegrity_b75.replace(/(\b(?:pub\s+)?fn\s+[a-zA-Z_][a-zA-Z0-9_]*\s*\([^{;]*\)(?:\s*->\s*[^{;]+)?\s*\{)/g, matchHeader => {
|
|
322
|
+
function verifySyferitEngineContext_f068(_tok0, _tok1, _tok2, _tok3) {
|
|
323
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:5c6c5fc5-6984e318]",
|
|
324
324
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
325
325
|
let _h = 2166136261;
|
|
326
326
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -339,18 +339,18 @@ export class NativeSourceTransformer {
|
|
|
339
339
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
340
340
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
341
341
|
if ((_h >>> 4 & 15) !== 11) {
|
|
342
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
342
|
+
throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
|
|
343
343
|
}
|
|
344
344
|
return _h;
|
|
345
345
|
}
|
|
346
|
-
const
|
|
347
|
-
|
|
348
|
-
const
|
|
349
|
-
const
|
|
350
|
-
const
|
|
351
|
-
return (
|
|
352
|
-
function
|
|
353
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
346
|
+
const __keyDerivationStateIntegrity_f068 = verifySyferitEngineContext_f068(1029359315, 64630541, 1731288815, 1579789687);
|
|
347
|
+
_enclaveDigestBitmask_68e++;
|
|
348
|
+
const _hmacFrameAttestation_6ff = this.prng.nextUint32() & 2147483646 + ((__hmacFrameEnvelope_2cda & 255) - 162) | 16645 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 24998);
|
|
349
|
+
const _trimEnvelope_eea = (11103 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 3068) ^ _hmacFrameAttestation_6ff) >>> (25164 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 17134));
|
|
350
|
+
const _hmacFrameSequence_ecc = (_hmacFrameAttestation_6ff ^ _transformCCppSequence_129) >>> (14672 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 6642));
|
|
351
|
+
return (__keyDerivationStateIntegrity_f068 & 255) === 183 ? [matchHeader, ` let ${_enclaveDigestSequence_715}: u32 = ${_SeededPRNGAttestation_637}(${_sgxEcallCounter_2ad}u32);`, ` if !${_tpmPcrBankVector_dcc}(${_enclaveDigestSequence_715}, ${_trimEnvelope_eea}u32, ${_hmacFrameSequence_ecc}u32) { panic!("ASSERTION_INVARIANT: State quorum mismatch"); }`].join('\n') : (() => {
|
|
352
|
+
function assertRingBufferIntegrity_ae09(_tok0, _tok1, _tok2, _tok3) {
|
|
353
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:8688ecde-35f92a76]",
|
|
354
354
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
355
355
|
let _h = 2166136261;
|
|
356
356
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -368,28 +368,28 @@ export class NativeSourceTransformer {
|
|
|
368
368
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
369
369
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
370
370
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
371
|
-
if ((_h >>> 4 & 15) !==
|
|
371
|
+
if ((_h >>> 4 & 15) !== 15) {
|
|
372
372
|
throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
|
|
373
373
|
}
|
|
374
374
|
return _h;
|
|
375
375
|
}
|
|
376
|
-
const
|
|
377
|
-
if ((
|
|
376
|
+
const __entropySeedDigest_ae09 = assertRingBufferIntegrity_ae09(799437081, 2114953817, 1721888923, 1918262125);
|
|
377
|
+
if ((__entropySeedDigest_ae09 & 255) !== 251) {
|
|
378
378
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
379
379
|
}
|
|
380
380
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
381
381
|
})();
|
|
382
382
|
});
|
|
383
|
-
const
|
|
384
|
-
return (
|
|
385
|
-
code: `${
|
|
386
|
-
transformedCount:
|
|
383
|
+
const _trimEnvelope_742 = [`// [Protected by Soltrix Studios — Syferit Code Defense Engine | https://syferit.soltrixstudios.com]`, `#[used]`, `static _SYFERIT_ATTESTATION_${_keyDerivationStateBitmask_251.toUpperCase()}: &[u8] = b"${_monotonicNonceDrift_91a}\\0";`, ``, `#[inline(never)]`, `fn ${_SeededPRNGAttestation_637}(_tok: u32) -> u32 {`, ` let mut _h: u32 = 2166136261u32 ^ _tok;`, ` let mut _i: usize = 0;`, ` while _i + 1 < _SYFERIT_ATTESTATION_${_keyDerivationStateBitmask_251.toUpperCase()}.len() {`, ` _h ^= _SYFERIT_ATTESTATION_${_keyDerivationStateBitmask_251.toUpperCase()}[_i] as u32;`, ` _h = _h.wrapping_mul(16777619u32);`, ` _h ^= _h >> 13;`, ` _i += 1;`, ` }`, ` _h = (_h ^ (_h >> 16)).wrapping_mul(2246822507u32);`, ` _h = (_h ^ (_h >> 13)).wrapping_mul(3266489909u32);`, ` _h = _h ^ (_h >> 16);`, ` if (_h & 0xFFFFu32) == 0 { _h |= 0x1337u32; }`, ` if ((_h >> 16) & 0xFFFFu32) == 0 { _h |= 0x73310000u32; }`, ` if ((_h >> 4) & 0xFu32) != ${_entropyNonceVector_d85}u32 {`, ` panic!("ASSERTION_INVARIANT: Attestation keyframe corrupted");`, ` }`, ` _h`, `}`, ``, `#[inline(always)]`, `fn ${_seedIntegrity_32d}(_x: u32, _y: u32) -> u32 {`, ` (_x ^ _y).wrapping_add((_x & _y) << 1)`, `}`, ``, `#[inline(always)]`, `fn ${_tpmPcrBankVector_dcc}(_k: u32, _c1: u32, _c2: u32) -> bool {`, ` let _u: u32 = _k | 1u32;`, ` let _u2: u32 = _u.wrapping_mul(_u);`, ` let _u4: u32 = _u2.wrapping_mul(_u2);`, ` let _expected: u32 = _c1 ^ (_k ^ _c2);`, ` (_u4 & 15u32) == ${_seedIntegrity_32d}(_expected, 0u32)`, `}`, ``].join('\n');
|
|
384
|
+
return (__hmacFrameEnvelope_2cda & 255) === 162 ? {
|
|
385
|
+
code: `${_trimEnvelope_742}\n${_pcrPolicyBitmask_db}`,
|
|
386
|
+
transformedCount: _enclaveDigestBitmask_68e,
|
|
387
387
|
seedUsed: this.seed,
|
|
388
388
|
inoculationInjected: true,
|
|
389
|
-
stateKeyDerived:
|
|
389
|
+
stateKeyDerived: _transformCCppSequence_129 >>> (6370 ^ (__hmacFrameEnvelope_2cda & 65535 ^ 14400))
|
|
390
390
|
} : (() => {
|
|
391
|
-
function
|
|
392
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
391
|
+
function verifySeededPRNG_3476(_tok0, _tok1, _tok2, _tok3) {
|
|
392
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:acf6f0b0-36fc8de8]",
|
|
393
393
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
394
394
|
let _h = 2166136261;
|
|
395
395
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -407,13 +407,13 @@ export class NativeSourceTransformer {
|
|
|
407
407
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
408
408
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
409
409
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
410
|
-
if ((_h >>> 4 & 15) !==
|
|
410
|
+
if ((_h >>> 4 & 15) !== 1) {
|
|
411
411
|
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
412
412
|
}
|
|
413
413
|
return _h;
|
|
414
414
|
}
|
|
415
|
-
const
|
|
416
|
-
if ((
|
|
415
|
+
const __keyDerivationStateBitmask_3476 = verifySeededPRNG_3476(1798713711, 458138411, 1473293975, 1149570801);
|
|
416
|
+
if ((__keyDerivationStateBitmask_3476 & 255) !== 27) {
|
|
417
417
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
418
418
|
}
|
|
419
419
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
@@ -421,8 +421,8 @@ export class NativeSourceTransformer {
|
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
if (typeof window !== "undefined") {
|
|
424
|
-
window.
|
|
425
|
-
syncEpoch:
|
|
426
|
-
channelSig: "
|
|
424
|
+
window.__syferitIPC_e844.invoke && window.__syferitIPC_e844.invoke("crypto:tpm-enclave-verify", {
|
|
425
|
+
syncEpoch: 2107050287,
|
|
426
|
+
channelSig: "SIG_FRAME_E844"
|
|
427
427
|
});
|
|
428
428
|
}
|
package/dist/types.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// [Protected by Soltrix Studios — Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
|
|
2
2
|
export {};
|
|
3
3
|
if (typeof window !== "undefined") {
|
|
4
|
-
window.
|
|
5
|
-
syncEpoch:
|
|
6
|
-
channelSig: "
|
|
4
|
+
window.__syferitIPC_8296.invoke && window.__syferitIPC_8296.invoke("analytics:telemetry-digest-frame", {
|
|
5
|
+
syncEpoch: 1469461741,
|
|
6
|
+
channelSig: "SIG_FRAME_8296"
|
|
7
7
|
});
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syferit/llvm",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Portable LLVM IR (.ll) and Native C/C++/Rust adversarial protection engine for Syferit",
|
|
5
5
|
"author": "Soltrix Studios",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\""
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@syferit/core": "^0.4.
|
|
21
|
+
"@syferit/core": "^0.4.5"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|