@gct-paas/core 0.1.4-dev.3 → 0.1.4-dev.4
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/dist/index.min.cjs +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/controller/form/form.controller.mjs +1 -2
- package/es/controller/gct-form/gct-form.controller.mjs +1 -2
- package/es/global/gct/gct.d.ts +1 -1
- package/es/interface/controller/form/form.controller.mjs +1 -1
- package/es/interface/hooks/i-designer-hooks.mjs +1 -1
- package/es/interface/i-modal/i-modal.mjs +1 -1
- package/es/modules/api-service/api-manage.mjs +1 -1
- package/es/modules/api-service/api-service.interface.d.ts +2 -2
- package/es/modules/api-service/api-service.interface.mjs +2 -2
- package/es/modules/api-service/api-service.mjs +1 -1
- package/es/modules/api-service/index.mjs +2 -4
- package/es/modules/env-manager/env-manager.d.ts +1 -1
- package/es/modules/env-manager/env-manager.interface.d.ts +1 -1
- package/es/modules/platform-config/useBasicSetting.d.ts +2 -2
- package/es/modules/platform-config/useDeploySetting.d.ts +1 -1
- package/es/modules/platform-config/useLoginSetting.d.ts +1 -1
- package/es/modules/platform-config/useOrgSetting.d.ts +1 -1
- package/es/modules/platform-config/useSecuritySetting.d.ts +1 -1
- package/es/modules/platform-config/useThemeSetting.d.ts +1 -1
- package/es/modules/platform-config/useWatermarkSetting.d.ts +1 -1
- package/es/register/designer-register/designer-register.mjs +1 -2
- package/es/register/render-register/render-register.mjs +1 -2
- package/es/store/global-store.mjs +1 -1
- package/es/types/index.d.ts +2 -2
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -1
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +1 -1
- package/es/utils/tools/tools.mjs +1 -2
- package/package.json +6 -8
- package/es/_virtual/_commonjs-dynamic-modules.mjs +0 -5
- package/es/_virtual/_commonjsHelpers.mjs +0 -44
- package/es/_virtual/aes.mjs +0 -3
- package/es/_virtual/blowfish.mjs +0 -3
- package/es/_virtual/cipher-core.mjs +0 -3
- package/es/_virtual/core.mjs +0 -3
- package/es/_virtual/enc-base64.mjs +0 -3
- package/es/_virtual/enc-base64url.mjs +0 -3
- package/es/_virtual/enc-utf16.mjs +0 -3
- package/es/_virtual/evpkdf.mjs +0 -3
- package/es/_virtual/format-hex.mjs +0 -3
- package/es/_virtual/hmac.mjs +0 -3
- package/es/_virtual/index.mjs +0 -7
- package/es/_virtual/index2.mjs +0 -7
- package/es/_virtual/index3.mjs +0 -3
- package/es/_virtual/lib-typedarrays.mjs +0 -3
- package/es/_virtual/md5.mjs +0 -3
- package/es/_virtual/mode-cfb.mjs +0 -3
- package/es/_virtual/mode-ctr-gladman.mjs +0 -3
- package/es/_virtual/mode-ctr.mjs +0 -3
- package/es/_virtual/mode-ecb.mjs +0 -3
- package/es/_virtual/mode-ofb.mjs +0 -3
- package/es/_virtual/pad-ansix923.mjs +0 -3
- package/es/_virtual/pad-iso10126.mjs +0 -3
- package/es/_virtual/pad-iso97971.mjs +0 -3
- package/es/_virtual/pad-nopadding.mjs +0 -3
- package/es/_virtual/pad-zeropadding.mjs +0 -3
- package/es/_virtual/pbkdf2.mjs +0 -3
- package/es/_virtual/rabbit-legacy.mjs +0 -3
- package/es/_virtual/rabbit.mjs +0 -3
- package/es/_virtual/rc4.mjs +0 -3
- package/es/_virtual/ripemd160.mjs +0 -3
- package/es/_virtual/sha1.mjs +0 -3
- package/es/_virtual/sha224.mjs +0 -3
- package/es/_virtual/sha256.mjs +0 -3
- package/es/_virtual/sha3.mjs +0 -3
- package/es/_virtual/sha384.mjs +0 -3
- package/es/_virtual/sha512.mjs +0 -3
- package/es/_virtual/tripledes.mjs +0 -3
- package/es/_virtual/x64-core.mjs +0 -3
- package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/index.mjs +0 -3
- package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/service/api-config.mjs +0 -8213
- package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/index.mjs +0 -3
- package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/service/api-config.mjs +0 -7156
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.mjs +0 -255
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.mjs +0 -492
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.mjs +0 -913
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.mjs +0 -824
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.mjs +0 -153
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.mjs +0 -165
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.mjs +0 -166
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.mjs +0 -153
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.mjs +0 -84
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.mjs +0 -160
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs +0 -69
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.mjs +0 -93
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.mjs +0 -285
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.mjs +0 -98
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.mjs +0 -134
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.mjs +0 -76
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.mjs +0 -58
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.mjs +0 -72
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.mjs +0 -67
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.mjs +0 -62
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.mjs +0 -58
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.mjs +0 -48
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.mjs +0 -65
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.mjs +0 -164
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.mjs +0 -211
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.mjs +0 -213
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.mjs +0 -160
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.mjs +0 -284
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.mjs +0 -167
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.mjs +0 -98
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.mjs +0 -216
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.mjs +0 -344
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.mjs +0 -102
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.mjs +0 -344
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.mjs +0 -800
- package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.mjs +0 -321
- package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +0 -541
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/async-series-hook/async-series-hook.mjs +0 -73
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +0 -2
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs +0 -100
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +0 -2
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +0 -47
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +0 -5
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +0 -24
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +0 -94
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.mjs +0 -146
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +0 -149
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +0 -227
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import '../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __module as aes$1 } from '../../../../../_virtual/aes.mjs';
|
|
3
|
-
import { __require as requireCore } from './core.mjs';
|
|
4
|
-
import { __require as requireEncBase64 } from './enc-base64.mjs';
|
|
5
|
-
import { __require as requireMd5 } from './md5.mjs';
|
|
6
|
-
import { __require as requireEvpkdf } from './evpkdf.mjs';
|
|
7
|
-
import { __require as requireCipherCore } from './cipher-core.mjs';
|
|
8
|
-
|
|
9
|
-
var aes = aes$1.exports;
|
|
10
|
-
|
|
11
|
-
var hasRequiredAes;
|
|
12
|
-
|
|
13
|
-
function requireAes () {
|
|
14
|
-
if (hasRequiredAes) return aes$1.exports;
|
|
15
|
-
hasRequiredAes = 1;
|
|
16
|
-
(function (module, exports) {
|
|
17
|
-
;(function (root, factory, undef) {
|
|
18
|
-
if ('object' === "object") {
|
|
19
|
-
// CommonJS
|
|
20
|
-
module.exports = exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
21
|
-
}
|
|
22
|
-
else if (typeof undefined === "function" && undefined.amd) {
|
|
23
|
-
// AMD
|
|
24
|
-
undefined(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
// Global (browser)
|
|
28
|
-
factory(root.CryptoJS);
|
|
29
|
-
}
|
|
30
|
-
}(aes, function (CryptoJS) {
|
|
31
|
-
|
|
32
|
-
(function () {
|
|
33
|
-
// Shortcuts
|
|
34
|
-
var C = CryptoJS;
|
|
35
|
-
var C_lib = C.lib;
|
|
36
|
-
var BlockCipher = C_lib.BlockCipher;
|
|
37
|
-
var C_algo = C.algo;
|
|
38
|
-
|
|
39
|
-
// Lookup tables
|
|
40
|
-
var SBOX = [];
|
|
41
|
-
var INV_SBOX = [];
|
|
42
|
-
var SUB_MIX_0 = [];
|
|
43
|
-
var SUB_MIX_1 = [];
|
|
44
|
-
var SUB_MIX_2 = [];
|
|
45
|
-
var SUB_MIX_3 = [];
|
|
46
|
-
var INV_SUB_MIX_0 = [];
|
|
47
|
-
var INV_SUB_MIX_1 = [];
|
|
48
|
-
var INV_SUB_MIX_2 = [];
|
|
49
|
-
var INV_SUB_MIX_3 = [];
|
|
50
|
-
|
|
51
|
-
// Compute lookup tables
|
|
52
|
-
(function () {
|
|
53
|
-
// Compute double table
|
|
54
|
-
var d = [];
|
|
55
|
-
for (var i = 0; i < 256; i++) {
|
|
56
|
-
if (i < 128) {
|
|
57
|
-
d[i] = i << 1;
|
|
58
|
-
} else {
|
|
59
|
-
d[i] = (i << 1) ^ 0x11b;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Walk GF(2^8)
|
|
64
|
-
var x = 0;
|
|
65
|
-
var xi = 0;
|
|
66
|
-
for (var i = 0; i < 256; i++) {
|
|
67
|
-
// Compute sbox
|
|
68
|
-
var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4);
|
|
69
|
-
sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63;
|
|
70
|
-
SBOX[x] = sx;
|
|
71
|
-
INV_SBOX[sx] = x;
|
|
72
|
-
|
|
73
|
-
// Compute multiplication
|
|
74
|
-
var x2 = d[x];
|
|
75
|
-
var x4 = d[x2];
|
|
76
|
-
var x8 = d[x4];
|
|
77
|
-
|
|
78
|
-
// Compute sub bytes, mix columns tables
|
|
79
|
-
var t = (d[sx] * 0x101) ^ (sx * 0x1010100);
|
|
80
|
-
SUB_MIX_0[x] = (t << 24) | (t >>> 8);
|
|
81
|
-
SUB_MIX_1[x] = (t << 16) | (t >>> 16);
|
|
82
|
-
SUB_MIX_2[x] = (t << 8) | (t >>> 24);
|
|
83
|
-
SUB_MIX_3[x] = t;
|
|
84
|
-
|
|
85
|
-
// Compute inv sub bytes, inv mix columns tables
|
|
86
|
-
var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100);
|
|
87
|
-
INV_SUB_MIX_0[sx] = (t << 24) | (t >>> 8);
|
|
88
|
-
INV_SUB_MIX_1[sx] = (t << 16) | (t >>> 16);
|
|
89
|
-
INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24);
|
|
90
|
-
INV_SUB_MIX_3[sx] = t;
|
|
91
|
-
|
|
92
|
-
// Compute next counter
|
|
93
|
-
if (!x) {
|
|
94
|
-
x = xi = 1;
|
|
95
|
-
} else {
|
|
96
|
-
x = x2 ^ d[d[d[x8 ^ x2]]];
|
|
97
|
-
xi ^= d[d[xi]];
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}());
|
|
101
|
-
|
|
102
|
-
// Precomputed Rcon lookup
|
|
103
|
-
var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* AES block cipher algorithm.
|
|
107
|
-
*/
|
|
108
|
-
var AES = C_algo.AES = BlockCipher.extend({
|
|
109
|
-
_doReset: function () {
|
|
110
|
-
var t;
|
|
111
|
-
|
|
112
|
-
// Skip reset of nRounds has been set before and key did not change
|
|
113
|
-
if (this._nRounds && this._keyPriorReset === this._key) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Shortcuts
|
|
118
|
-
var key = this._keyPriorReset = this._key;
|
|
119
|
-
var keyWords = key.words;
|
|
120
|
-
var keySize = key.sigBytes / 4;
|
|
121
|
-
|
|
122
|
-
// Compute number of rounds
|
|
123
|
-
var nRounds = this._nRounds = keySize + 6;
|
|
124
|
-
|
|
125
|
-
// Compute number of key schedule rows
|
|
126
|
-
var ksRows = (nRounds + 1) * 4;
|
|
127
|
-
|
|
128
|
-
// Compute key schedule
|
|
129
|
-
var keySchedule = this._keySchedule = [];
|
|
130
|
-
for (var ksRow = 0; ksRow < ksRows; ksRow++) {
|
|
131
|
-
if (ksRow < keySize) {
|
|
132
|
-
keySchedule[ksRow] = keyWords[ksRow];
|
|
133
|
-
} else {
|
|
134
|
-
t = keySchedule[ksRow - 1];
|
|
135
|
-
|
|
136
|
-
if (!(ksRow % keySize)) {
|
|
137
|
-
// Rot word
|
|
138
|
-
t = (t << 8) | (t >>> 24);
|
|
139
|
-
|
|
140
|
-
// Sub word
|
|
141
|
-
t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];
|
|
142
|
-
|
|
143
|
-
// Mix Rcon
|
|
144
|
-
t ^= RCON[(ksRow / keySize) | 0] << 24;
|
|
145
|
-
} else if (keySize > 6 && ksRow % keySize == 4) {
|
|
146
|
-
// Sub word
|
|
147
|
-
t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// Compute inv key schedule
|
|
155
|
-
var invKeySchedule = this._invKeySchedule = [];
|
|
156
|
-
for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {
|
|
157
|
-
var ksRow = ksRows - invKsRow;
|
|
158
|
-
|
|
159
|
-
if (invKsRow % 4) {
|
|
160
|
-
var t = keySchedule[ksRow];
|
|
161
|
-
} else {
|
|
162
|
-
var t = keySchedule[ksRow - 4];
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (invKsRow < 4 || ksRow <= 4) {
|
|
166
|
-
invKeySchedule[invKsRow] = t;
|
|
167
|
-
} else {
|
|
168
|
-
invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[(t >>> 16) & 0xff]] ^
|
|
169
|
-
INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
encryptBlock: function (M, offset) {
|
|
175
|
-
this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
decryptBlock: function (M, offset) {
|
|
179
|
-
// Swap 2nd and 4th rows
|
|
180
|
-
var t = M[offset + 1];
|
|
181
|
-
M[offset + 1] = M[offset + 3];
|
|
182
|
-
M[offset + 3] = t;
|
|
183
|
-
|
|
184
|
-
this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);
|
|
185
|
-
|
|
186
|
-
// Inv swap 2nd and 4th rows
|
|
187
|
-
var t = M[offset + 1];
|
|
188
|
-
M[offset + 1] = M[offset + 3];
|
|
189
|
-
M[offset + 3] = t;
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
_doCryptBlock: function (M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {
|
|
193
|
-
// Shortcut
|
|
194
|
-
var nRounds = this._nRounds;
|
|
195
|
-
|
|
196
|
-
// Get input, add round key
|
|
197
|
-
var s0 = M[offset] ^ keySchedule[0];
|
|
198
|
-
var s1 = M[offset + 1] ^ keySchedule[1];
|
|
199
|
-
var s2 = M[offset + 2] ^ keySchedule[2];
|
|
200
|
-
var s3 = M[offset + 3] ^ keySchedule[3];
|
|
201
|
-
|
|
202
|
-
// Key schedule row counter
|
|
203
|
-
var ksRow = 4;
|
|
204
|
-
|
|
205
|
-
// Rounds
|
|
206
|
-
for (var round = 1; round < nRounds; round++) {
|
|
207
|
-
// Shift rows, sub bytes, mix columns, add round key
|
|
208
|
-
var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[(s1 >>> 16) & 0xff] ^ SUB_MIX_2[(s2 >>> 8) & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];
|
|
209
|
-
var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[(s2 >>> 16) & 0xff] ^ SUB_MIX_2[(s3 >>> 8) & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];
|
|
210
|
-
var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[(s3 >>> 16) & 0xff] ^ SUB_MIX_2[(s0 >>> 8) & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];
|
|
211
|
-
var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[(s0 >>> 16) & 0xff] ^ SUB_MIX_2[(s1 >>> 8) & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++];
|
|
212
|
-
|
|
213
|
-
// Update state
|
|
214
|
-
s0 = t0;
|
|
215
|
-
s1 = t1;
|
|
216
|
-
s2 = t2;
|
|
217
|
-
s3 = t3;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// Shift rows, sub bytes, add round key
|
|
221
|
-
var t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];
|
|
222
|
-
var t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];
|
|
223
|
-
var t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];
|
|
224
|
-
var t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];
|
|
225
|
-
|
|
226
|
-
// Set output
|
|
227
|
-
M[offset] = t0;
|
|
228
|
-
M[offset + 1] = t1;
|
|
229
|
-
M[offset + 2] = t2;
|
|
230
|
-
M[offset + 3] = t3;
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
keySize: 256/32
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Shortcut functions to the cipher's object interface.
|
|
238
|
-
*
|
|
239
|
-
* @example
|
|
240
|
-
*
|
|
241
|
-
* var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);
|
|
242
|
-
* var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);
|
|
243
|
-
*/
|
|
244
|
-
C.AES = BlockCipher._createHelper(AES);
|
|
245
|
-
}());
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
return CryptoJS.AES;
|
|
249
|
-
|
|
250
|
-
}));
|
|
251
|
-
} (aes$1, aes$1.exports));
|
|
252
|
-
return aes$1.exports;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export { requireAes as __require };
|