@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.
Files changed (122) hide show
  1. package/dist/index.min.cjs +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/controller/form/form.controller.mjs +1 -2
  4. package/es/controller/gct-form/gct-form.controller.mjs +1 -2
  5. package/es/global/gct/gct.d.ts +1 -1
  6. package/es/interface/controller/form/form.controller.mjs +1 -1
  7. package/es/interface/hooks/i-designer-hooks.mjs +1 -1
  8. package/es/interface/i-modal/i-modal.mjs +1 -1
  9. package/es/modules/api-service/api-manage.mjs +1 -1
  10. package/es/modules/api-service/api-service.interface.d.ts +2 -2
  11. package/es/modules/api-service/api-service.interface.mjs +2 -2
  12. package/es/modules/api-service/api-service.mjs +1 -1
  13. package/es/modules/api-service/index.mjs +2 -4
  14. package/es/modules/env-manager/env-manager.d.ts +1 -1
  15. package/es/modules/env-manager/env-manager.interface.d.ts +1 -1
  16. package/es/modules/platform-config/useBasicSetting.d.ts +2 -2
  17. package/es/modules/platform-config/useDeploySetting.d.ts +1 -1
  18. package/es/modules/platform-config/useLoginSetting.d.ts +1 -1
  19. package/es/modules/platform-config/useOrgSetting.d.ts +1 -1
  20. package/es/modules/platform-config/useSecuritySetting.d.ts +1 -1
  21. package/es/modules/platform-config/useThemeSetting.d.ts +1 -1
  22. package/es/modules/platform-config/useWatermarkSetting.d.ts +1 -1
  23. package/es/register/designer-register/designer-register.mjs +1 -2
  24. package/es/register/render-register/render-register.mjs +1 -2
  25. package/es/store/global-store.mjs +1 -1
  26. package/es/types/index.d.ts +2 -2
  27. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -1
  28. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +1 -1
  29. package/es/utils/tools/tools.mjs +1 -2
  30. package/package.json +6 -8
  31. package/es/_virtual/_commonjs-dynamic-modules.mjs +0 -5
  32. package/es/_virtual/_commonjsHelpers.mjs +0 -44
  33. package/es/_virtual/aes.mjs +0 -3
  34. package/es/_virtual/blowfish.mjs +0 -3
  35. package/es/_virtual/cipher-core.mjs +0 -3
  36. package/es/_virtual/core.mjs +0 -3
  37. package/es/_virtual/enc-base64.mjs +0 -3
  38. package/es/_virtual/enc-base64url.mjs +0 -3
  39. package/es/_virtual/enc-utf16.mjs +0 -3
  40. package/es/_virtual/evpkdf.mjs +0 -3
  41. package/es/_virtual/format-hex.mjs +0 -3
  42. package/es/_virtual/hmac.mjs +0 -3
  43. package/es/_virtual/index.mjs +0 -7
  44. package/es/_virtual/index2.mjs +0 -7
  45. package/es/_virtual/index3.mjs +0 -3
  46. package/es/_virtual/lib-typedarrays.mjs +0 -3
  47. package/es/_virtual/md5.mjs +0 -3
  48. package/es/_virtual/mode-cfb.mjs +0 -3
  49. package/es/_virtual/mode-ctr-gladman.mjs +0 -3
  50. package/es/_virtual/mode-ctr.mjs +0 -3
  51. package/es/_virtual/mode-ecb.mjs +0 -3
  52. package/es/_virtual/mode-ofb.mjs +0 -3
  53. package/es/_virtual/pad-ansix923.mjs +0 -3
  54. package/es/_virtual/pad-iso10126.mjs +0 -3
  55. package/es/_virtual/pad-iso97971.mjs +0 -3
  56. package/es/_virtual/pad-nopadding.mjs +0 -3
  57. package/es/_virtual/pad-zeropadding.mjs +0 -3
  58. package/es/_virtual/pbkdf2.mjs +0 -3
  59. package/es/_virtual/rabbit-legacy.mjs +0 -3
  60. package/es/_virtual/rabbit.mjs +0 -3
  61. package/es/_virtual/rc4.mjs +0 -3
  62. package/es/_virtual/ripemd160.mjs +0 -3
  63. package/es/_virtual/sha1.mjs +0 -3
  64. package/es/_virtual/sha224.mjs +0 -3
  65. package/es/_virtual/sha256.mjs +0 -3
  66. package/es/_virtual/sha3.mjs +0 -3
  67. package/es/_virtual/sha384.mjs +0 -3
  68. package/es/_virtual/sha512.mjs +0 -3
  69. package/es/_virtual/tripledes.mjs +0 -3
  70. package/es/_virtual/x64-core.mjs +0 -3
  71. 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
  72. 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
  73. 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
  74. 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
  75. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.mjs +0 -255
  76. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.mjs +0 -492
  77. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.mjs +0 -913
  78. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.mjs +0 -824
  79. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.mjs +0 -153
  80. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.mjs +0 -165
  81. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.mjs +0 -166
  82. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.mjs +0 -153
  83. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.mjs +0 -84
  84. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.mjs +0 -160
  85. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs +0 -69
  86. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.mjs +0 -93
  87. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.mjs +0 -285
  88. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.mjs +0 -98
  89. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.mjs +0 -134
  90. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.mjs +0 -76
  91. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.mjs +0 -58
  92. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.mjs +0 -72
  93. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.mjs +0 -67
  94. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.mjs +0 -62
  95. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.mjs +0 -58
  96. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.mjs +0 -48
  97. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.mjs +0 -65
  98. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.mjs +0 -164
  99. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.mjs +0 -211
  100. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.mjs +0 -213
  101. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.mjs +0 -160
  102. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.mjs +0 -284
  103. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.mjs +0 -167
  104. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.mjs +0 -98
  105. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.mjs +0 -216
  106. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.mjs +0 -344
  107. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.mjs +0 -102
  108. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.mjs +0 -344
  109. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.mjs +0 -800
  110. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.mjs +0 -321
  111. package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +0 -541
  112. 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
  113. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +0 -2
  114. 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
  115. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +0 -2
  116. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +0 -47
  117. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +0 -5
  118. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +0 -24
  119. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +0 -94
  120. 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
  121. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +0 -149
  122. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +0 -227
@@ -1,800 +0,0 @@
1
- import '../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __module as tripledes$1 } from '../../../../../_virtual/tripledes.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 tripledes = tripledes$1.exports;
10
-
11
- var hasRequiredTripledes;
12
-
13
- function requireTripledes () {
14
- if (hasRequiredTripledes) return tripledes$1.exports;
15
- hasRequiredTripledes = 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
- }(tripledes, function (CryptoJS) {
31
-
32
- (function () {
33
- // Shortcuts
34
- var C = CryptoJS;
35
- var C_lib = C.lib;
36
- var WordArray = C_lib.WordArray;
37
- var BlockCipher = C_lib.BlockCipher;
38
- var C_algo = C.algo;
39
-
40
- // Permuted Choice 1 constants
41
- var PC1 = [
42
- 57, 49, 41, 33, 25, 17, 9, 1,
43
- 58, 50, 42, 34, 26, 18, 10, 2,
44
- 59, 51, 43, 35, 27, 19, 11, 3,
45
- 60, 52, 44, 36, 63, 55, 47, 39,
46
- 31, 23, 15, 7, 62, 54, 46, 38,
47
- 30, 22, 14, 6, 61, 53, 45, 37,
48
- 29, 21, 13, 5, 28, 20, 12, 4
49
- ];
50
-
51
- // Permuted Choice 2 constants
52
- var PC2 = [
53
- 14, 17, 11, 24, 1, 5,
54
- 3, 28, 15, 6, 21, 10,
55
- 23, 19, 12, 4, 26, 8,
56
- 16, 7, 27, 20, 13, 2,
57
- 41, 52, 31, 37, 47, 55,
58
- 30, 40, 51, 45, 33, 48,
59
- 44, 49, 39, 56, 34, 53,
60
- 46, 42, 50, 36, 29, 32
61
- ];
62
-
63
- // Cumulative bit shift constants
64
- var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
65
-
66
- // SBOXes and round permutation constants
67
- var SBOX_P = [
68
- {
69
- 0x0: 0x808200,
70
- 0x10000000: 0x8000,
71
- 0x20000000: 0x808002,
72
- 0x30000000: 0x2,
73
- 0x40000000: 0x200,
74
- 0x50000000: 0x808202,
75
- 0x60000000: 0x800202,
76
- 0x70000000: 0x800000,
77
- 0x80000000: 0x202,
78
- 0x90000000: 0x800200,
79
- 0xa0000000: 0x8200,
80
- 0xb0000000: 0x808000,
81
- 0xc0000000: 0x8002,
82
- 0xd0000000: 0x800002,
83
- 0xe0000000: 0x0,
84
- 0xf0000000: 0x8202,
85
- 0x8000000: 0x0,
86
- 0x18000000: 0x808202,
87
- 0x28000000: 0x8202,
88
- 0x38000000: 0x8000,
89
- 0x48000000: 0x808200,
90
- 0x58000000: 0x200,
91
- 0x68000000: 0x808002,
92
- 0x78000000: 0x2,
93
- 0x88000000: 0x800200,
94
- 0x98000000: 0x8200,
95
- 0xa8000000: 0x808000,
96
- 0xb8000000: 0x800202,
97
- 0xc8000000: 0x800002,
98
- 0xd8000000: 0x8002,
99
- 0xe8000000: 0x202,
100
- 0xf8000000: 0x800000,
101
- 0x1: 0x8000,
102
- 0x10000001: 0x2,
103
- 0x20000001: 0x808200,
104
- 0x30000001: 0x800000,
105
- 0x40000001: 0x808002,
106
- 0x50000001: 0x8200,
107
- 0x60000001: 0x200,
108
- 0x70000001: 0x800202,
109
- 0x80000001: 0x808202,
110
- 0x90000001: 0x808000,
111
- 0xa0000001: 0x800002,
112
- 0xb0000001: 0x8202,
113
- 0xc0000001: 0x202,
114
- 0xd0000001: 0x800200,
115
- 0xe0000001: 0x8002,
116
- 0xf0000001: 0x0,
117
- 0x8000001: 0x808202,
118
- 0x18000001: 0x808000,
119
- 0x28000001: 0x800000,
120
- 0x38000001: 0x200,
121
- 0x48000001: 0x8000,
122
- 0x58000001: 0x800002,
123
- 0x68000001: 0x2,
124
- 0x78000001: 0x8202,
125
- 0x88000001: 0x8002,
126
- 0x98000001: 0x800202,
127
- 0xa8000001: 0x202,
128
- 0xb8000001: 0x808200,
129
- 0xc8000001: 0x800200,
130
- 0xd8000001: 0x0,
131
- 0xe8000001: 0x8200,
132
- 0xf8000001: 0x808002
133
- },
134
- {
135
- 0x0: 0x40084010,
136
- 0x1000000: 0x4000,
137
- 0x2000000: 0x80000,
138
- 0x3000000: 0x40080010,
139
- 0x4000000: 0x40000010,
140
- 0x5000000: 0x40084000,
141
- 0x6000000: 0x40004000,
142
- 0x7000000: 0x10,
143
- 0x8000000: 0x84000,
144
- 0x9000000: 0x40004010,
145
- 0xa000000: 0x40000000,
146
- 0xb000000: 0x84010,
147
- 0xc000000: 0x80010,
148
- 0xd000000: 0x0,
149
- 0xe000000: 0x4010,
150
- 0xf000000: 0x40080000,
151
- 0x800000: 0x40004000,
152
- 0x1800000: 0x84010,
153
- 0x2800000: 0x10,
154
- 0x3800000: 0x40004010,
155
- 0x4800000: 0x40084010,
156
- 0x5800000: 0x40000000,
157
- 0x6800000: 0x80000,
158
- 0x7800000: 0x40080010,
159
- 0x8800000: 0x80010,
160
- 0x9800000: 0x0,
161
- 0xa800000: 0x4000,
162
- 0xb800000: 0x40080000,
163
- 0xc800000: 0x40000010,
164
- 0xd800000: 0x84000,
165
- 0xe800000: 0x40084000,
166
- 0xf800000: 0x4010,
167
- 0x10000000: 0x0,
168
- 0x11000000: 0x40080010,
169
- 0x12000000: 0x40004010,
170
- 0x13000000: 0x40084000,
171
- 0x14000000: 0x40080000,
172
- 0x15000000: 0x10,
173
- 0x16000000: 0x84010,
174
- 0x17000000: 0x4000,
175
- 0x18000000: 0x4010,
176
- 0x19000000: 0x80000,
177
- 0x1a000000: 0x80010,
178
- 0x1b000000: 0x40000010,
179
- 0x1c000000: 0x84000,
180
- 0x1d000000: 0x40004000,
181
- 0x1e000000: 0x40000000,
182
- 0x1f000000: 0x40084010,
183
- 0x10800000: 0x84010,
184
- 0x11800000: 0x80000,
185
- 0x12800000: 0x40080000,
186
- 0x13800000: 0x4000,
187
- 0x14800000: 0x40004000,
188
- 0x15800000: 0x40084010,
189
- 0x16800000: 0x10,
190
- 0x17800000: 0x40000000,
191
- 0x18800000: 0x40084000,
192
- 0x19800000: 0x40000010,
193
- 0x1a800000: 0x40004010,
194
- 0x1b800000: 0x80010,
195
- 0x1c800000: 0x0,
196
- 0x1d800000: 0x4010,
197
- 0x1e800000: 0x40080010,
198
- 0x1f800000: 0x84000
199
- },
200
- {
201
- 0x0: 0x104,
202
- 0x100000: 0x0,
203
- 0x200000: 0x4000100,
204
- 0x300000: 0x10104,
205
- 0x400000: 0x10004,
206
- 0x500000: 0x4000004,
207
- 0x600000: 0x4010104,
208
- 0x700000: 0x4010000,
209
- 0x800000: 0x4000000,
210
- 0x900000: 0x4010100,
211
- 0xa00000: 0x10100,
212
- 0xb00000: 0x4010004,
213
- 0xc00000: 0x4000104,
214
- 0xd00000: 0x10000,
215
- 0xe00000: 0x4,
216
- 0xf00000: 0x100,
217
- 0x80000: 0x4010100,
218
- 0x180000: 0x4010004,
219
- 0x280000: 0x0,
220
- 0x380000: 0x4000100,
221
- 0x480000: 0x4000004,
222
- 0x580000: 0x10000,
223
- 0x680000: 0x10004,
224
- 0x780000: 0x104,
225
- 0x880000: 0x4,
226
- 0x980000: 0x100,
227
- 0xa80000: 0x4010000,
228
- 0xb80000: 0x10104,
229
- 0xc80000: 0x10100,
230
- 0xd80000: 0x4000104,
231
- 0xe80000: 0x4010104,
232
- 0xf80000: 0x4000000,
233
- 0x1000000: 0x4010100,
234
- 0x1100000: 0x10004,
235
- 0x1200000: 0x10000,
236
- 0x1300000: 0x4000100,
237
- 0x1400000: 0x100,
238
- 0x1500000: 0x4010104,
239
- 0x1600000: 0x4000004,
240
- 0x1700000: 0x0,
241
- 0x1800000: 0x4000104,
242
- 0x1900000: 0x4000000,
243
- 0x1a00000: 0x4,
244
- 0x1b00000: 0x10100,
245
- 0x1c00000: 0x4010000,
246
- 0x1d00000: 0x104,
247
- 0x1e00000: 0x10104,
248
- 0x1f00000: 0x4010004,
249
- 0x1080000: 0x4000000,
250
- 0x1180000: 0x104,
251
- 0x1280000: 0x4010100,
252
- 0x1380000: 0x0,
253
- 0x1480000: 0x10004,
254
- 0x1580000: 0x4000100,
255
- 0x1680000: 0x100,
256
- 0x1780000: 0x4010004,
257
- 0x1880000: 0x10000,
258
- 0x1980000: 0x4010104,
259
- 0x1a80000: 0x10104,
260
- 0x1b80000: 0x4000004,
261
- 0x1c80000: 0x4000104,
262
- 0x1d80000: 0x4010000,
263
- 0x1e80000: 0x4,
264
- 0x1f80000: 0x10100
265
- },
266
- {
267
- 0x0: 0x80401000,
268
- 0x10000: 0x80001040,
269
- 0x20000: 0x401040,
270
- 0x30000: 0x80400000,
271
- 0x40000: 0x0,
272
- 0x50000: 0x401000,
273
- 0x60000: 0x80000040,
274
- 0x70000: 0x400040,
275
- 0x80000: 0x80000000,
276
- 0x90000: 0x400000,
277
- 0xa0000: 0x40,
278
- 0xb0000: 0x80001000,
279
- 0xc0000: 0x80400040,
280
- 0xd0000: 0x1040,
281
- 0xe0000: 0x1000,
282
- 0xf0000: 0x80401040,
283
- 0x8000: 0x80001040,
284
- 0x18000: 0x40,
285
- 0x28000: 0x80400040,
286
- 0x38000: 0x80001000,
287
- 0x48000: 0x401000,
288
- 0x58000: 0x80401040,
289
- 0x68000: 0x0,
290
- 0x78000: 0x80400000,
291
- 0x88000: 0x1000,
292
- 0x98000: 0x80401000,
293
- 0xa8000: 0x400000,
294
- 0xb8000: 0x1040,
295
- 0xc8000: 0x80000000,
296
- 0xd8000: 0x400040,
297
- 0xe8000: 0x401040,
298
- 0xf8000: 0x80000040,
299
- 0x100000: 0x400040,
300
- 0x110000: 0x401000,
301
- 0x120000: 0x80000040,
302
- 0x130000: 0x0,
303
- 0x140000: 0x1040,
304
- 0x150000: 0x80400040,
305
- 0x160000: 0x80401000,
306
- 0x170000: 0x80001040,
307
- 0x180000: 0x80401040,
308
- 0x190000: 0x80000000,
309
- 0x1a0000: 0x80400000,
310
- 0x1b0000: 0x401040,
311
- 0x1c0000: 0x80001000,
312
- 0x1d0000: 0x400000,
313
- 0x1e0000: 0x40,
314
- 0x1f0000: 0x1000,
315
- 0x108000: 0x80400000,
316
- 0x118000: 0x80401040,
317
- 0x128000: 0x0,
318
- 0x138000: 0x401000,
319
- 0x148000: 0x400040,
320
- 0x158000: 0x80000000,
321
- 0x168000: 0x80001040,
322
- 0x178000: 0x40,
323
- 0x188000: 0x80000040,
324
- 0x198000: 0x1000,
325
- 0x1a8000: 0x80001000,
326
- 0x1b8000: 0x80400040,
327
- 0x1c8000: 0x1040,
328
- 0x1d8000: 0x80401000,
329
- 0x1e8000: 0x400000,
330
- 0x1f8000: 0x401040
331
- },
332
- {
333
- 0x0: 0x80,
334
- 0x1000: 0x1040000,
335
- 0x2000: 0x40000,
336
- 0x3000: 0x20000000,
337
- 0x4000: 0x20040080,
338
- 0x5000: 0x1000080,
339
- 0x6000: 0x21000080,
340
- 0x7000: 0x40080,
341
- 0x8000: 0x1000000,
342
- 0x9000: 0x20040000,
343
- 0xa000: 0x20000080,
344
- 0xb000: 0x21040080,
345
- 0xc000: 0x21040000,
346
- 0xd000: 0x0,
347
- 0xe000: 0x1040080,
348
- 0xf000: 0x21000000,
349
- 0x800: 0x1040080,
350
- 0x1800: 0x21000080,
351
- 0x2800: 0x80,
352
- 0x3800: 0x1040000,
353
- 0x4800: 0x40000,
354
- 0x5800: 0x20040080,
355
- 0x6800: 0x21040000,
356
- 0x7800: 0x20000000,
357
- 0x8800: 0x20040000,
358
- 0x9800: 0x0,
359
- 0xa800: 0x21040080,
360
- 0xb800: 0x1000080,
361
- 0xc800: 0x20000080,
362
- 0xd800: 0x21000000,
363
- 0xe800: 0x1000000,
364
- 0xf800: 0x40080,
365
- 0x10000: 0x40000,
366
- 0x11000: 0x80,
367
- 0x12000: 0x20000000,
368
- 0x13000: 0x21000080,
369
- 0x14000: 0x1000080,
370
- 0x15000: 0x21040000,
371
- 0x16000: 0x20040080,
372
- 0x17000: 0x1000000,
373
- 0x18000: 0x21040080,
374
- 0x19000: 0x21000000,
375
- 0x1a000: 0x1040000,
376
- 0x1b000: 0x20040000,
377
- 0x1c000: 0x40080,
378
- 0x1d000: 0x20000080,
379
- 0x1e000: 0x0,
380
- 0x1f000: 0x1040080,
381
- 0x10800: 0x21000080,
382
- 0x11800: 0x1000000,
383
- 0x12800: 0x1040000,
384
- 0x13800: 0x20040080,
385
- 0x14800: 0x20000000,
386
- 0x15800: 0x1040080,
387
- 0x16800: 0x80,
388
- 0x17800: 0x21040000,
389
- 0x18800: 0x40080,
390
- 0x19800: 0x21040080,
391
- 0x1a800: 0x0,
392
- 0x1b800: 0x21000000,
393
- 0x1c800: 0x1000080,
394
- 0x1d800: 0x40000,
395
- 0x1e800: 0x20040000,
396
- 0x1f800: 0x20000080
397
- },
398
- {
399
- 0x0: 0x10000008,
400
- 0x100: 0x2000,
401
- 0x200: 0x10200000,
402
- 0x300: 0x10202008,
403
- 0x400: 0x10002000,
404
- 0x500: 0x200000,
405
- 0x600: 0x200008,
406
- 0x700: 0x10000000,
407
- 0x800: 0x0,
408
- 0x900: 0x10002008,
409
- 0xa00: 0x202000,
410
- 0xb00: 0x8,
411
- 0xc00: 0x10200008,
412
- 0xd00: 0x202008,
413
- 0xe00: 0x2008,
414
- 0xf00: 0x10202000,
415
- 0x80: 0x10200000,
416
- 0x180: 0x10202008,
417
- 0x280: 0x8,
418
- 0x380: 0x200000,
419
- 0x480: 0x202008,
420
- 0x580: 0x10000008,
421
- 0x680: 0x10002000,
422
- 0x780: 0x2008,
423
- 0x880: 0x200008,
424
- 0x980: 0x2000,
425
- 0xa80: 0x10002008,
426
- 0xb80: 0x10200008,
427
- 0xc80: 0x0,
428
- 0xd80: 0x10202000,
429
- 0xe80: 0x202000,
430
- 0xf80: 0x10000000,
431
- 0x1000: 0x10002000,
432
- 0x1100: 0x10200008,
433
- 0x1200: 0x10202008,
434
- 0x1300: 0x2008,
435
- 0x1400: 0x200000,
436
- 0x1500: 0x10000000,
437
- 0x1600: 0x10000008,
438
- 0x1700: 0x202000,
439
- 0x1800: 0x202008,
440
- 0x1900: 0x0,
441
- 0x1a00: 0x8,
442
- 0x1b00: 0x10200000,
443
- 0x1c00: 0x2000,
444
- 0x1d00: 0x10002008,
445
- 0x1e00: 0x10202000,
446
- 0x1f00: 0x200008,
447
- 0x1080: 0x8,
448
- 0x1180: 0x202000,
449
- 0x1280: 0x200000,
450
- 0x1380: 0x10000008,
451
- 0x1480: 0x10002000,
452
- 0x1580: 0x2008,
453
- 0x1680: 0x10202008,
454
- 0x1780: 0x10200000,
455
- 0x1880: 0x10202000,
456
- 0x1980: 0x10200008,
457
- 0x1a80: 0x2000,
458
- 0x1b80: 0x202008,
459
- 0x1c80: 0x200008,
460
- 0x1d80: 0x0,
461
- 0x1e80: 0x10000000,
462
- 0x1f80: 0x10002008
463
- },
464
- {
465
- 0x0: 0x100000,
466
- 0x10: 0x2000401,
467
- 0x20: 0x400,
468
- 0x30: 0x100401,
469
- 0x40: 0x2100401,
470
- 0x50: 0x0,
471
- 0x60: 0x1,
472
- 0x70: 0x2100001,
473
- 0x80: 0x2000400,
474
- 0x90: 0x100001,
475
- 0xa0: 0x2000001,
476
- 0xb0: 0x2100400,
477
- 0xc0: 0x2100000,
478
- 0xd0: 0x401,
479
- 0xe0: 0x100400,
480
- 0xf0: 0x2000000,
481
- 0x8: 0x2100001,
482
- 0x18: 0x0,
483
- 0x28: 0x2000401,
484
- 0x38: 0x2100400,
485
- 0x48: 0x100000,
486
- 0x58: 0x2000001,
487
- 0x68: 0x2000000,
488
- 0x78: 0x401,
489
- 0x88: 0x100401,
490
- 0x98: 0x2000400,
491
- 0xa8: 0x2100000,
492
- 0xb8: 0x100001,
493
- 0xc8: 0x400,
494
- 0xd8: 0x2100401,
495
- 0xe8: 0x1,
496
- 0xf8: 0x100400,
497
- 0x100: 0x2000000,
498
- 0x110: 0x100000,
499
- 0x120: 0x2000401,
500
- 0x130: 0x2100001,
501
- 0x140: 0x100001,
502
- 0x150: 0x2000400,
503
- 0x160: 0x2100400,
504
- 0x170: 0x100401,
505
- 0x180: 0x401,
506
- 0x190: 0x2100401,
507
- 0x1a0: 0x100400,
508
- 0x1b0: 0x1,
509
- 0x1c0: 0x0,
510
- 0x1d0: 0x2100000,
511
- 0x1e0: 0x2000001,
512
- 0x1f0: 0x400,
513
- 0x108: 0x100400,
514
- 0x118: 0x2000401,
515
- 0x128: 0x2100001,
516
- 0x138: 0x1,
517
- 0x148: 0x2000000,
518
- 0x158: 0x100000,
519
- 0x168: 0x401,
520
- 0x178: 0x2100400,
521
- 0x188: 0x2000001,
522
- 0x198: 0x2100000,
523
- 0x1a8: 0x0,
524
- 0x1b8: 0x2100401,
525
- 0x1c8: 0x100401,
526
- 0x1d8: 0x400,
527
- 0x1e8: 0x2000400,
528
- 0x1f8: 0x100001
529
- },
530
- {
531
- 0x0: 0x8000820,
532
- 0x1: 0x20000,
533
- 0x2: 0x8000000,
534
- 0x3: 0x20,
535
- 0x4: 0x20020,
536
- 0x5: 0x8020820,
537
- 0x6: 0x8020800,
538
- 0x7: 0x800,
539
- 0x8: 0x8020000,
540
- 0x9: 0x8000800,
541
- 0xa: 0x20800,
542
- 0xb: 0x8020020,
543
- 0xc: 0x820,
544
- 0xd: 0x0,
545
- 0xe: 0x8000020,
546
- 0xf: 0x20820,
547
- 0x80000000: 0x800,
548
- 0x80000001: 0x8020820,
549
- 0x80000002: 0x8000820,
550
- 0x80000003: 0x8000000,
551
- 0x80000004: 0x8020000,
552
- 0x80000005: 0x20800,
553
- 0x80000006: 0x20820,
554
- 0x80000007: 0x20,
555
- 0x80000008: 0x8000020,
556
- 0x80000009: 0x820,
557
- 0x8000000a: 0x20020,
558
- 0x8000000b: 0x8020800,
559
- 0x8000000c: 0x0,
560
- 0x8000000d: 0x8020020,
561
- 0x8000000e: 0x8000800,
562
- 0x8000000f: 0x20000,
563
- 0x10: 0x20820,
564
- 0x11: 0x8020800,
565
- 0x12: 0x20,
566
- 0x13: 0x800,
567
- 0x14: 0x8000800,
568
- 0x15: 0x8000020,
569
- 0x16: 0x8020020,
570
- 0x17: 0x20000,
571
- 0x18: 0x0,
572
- 0x19: 0x20020,
573
- 0x1a: 0x8020000,
574
- 0x1b: 0x8000820,
575
- 0x1c: 0x8020820,
576
- 0x1d: 0x20800,
577
- 0x1e: 0x820,
578
- 0x1f: 0x8000000,
579
- 0x80000010: 0x20000,
580
- 0x80000011: 0x800,
581
- 0x80000012: 0x8020020,
582
- 0x80000013: 0x20820,
583
- 0x80000014: 0x20,
584
- 0x80000015: 0x8020000,
585
- 0x80000016: 0x8000000,
586
- 0x80000017: 0x8000820,
587
- 0x80000018: 0x8020820,
588
- 0x80000019: 0x8000020,
589
- 0x8000001a: 0x8000800,
590
- 0x8000001b: 0x0,
591
- 0x8000001c: 0x20800,
592
- 0x8000001d: 0x820,
593
- 0x8000001e: 0x20020,
594
- 0x8000001f: 0x8020800
595
- }
596
- ];
597
-
598
- // Masks that select the SBOX input
599
- var SBOX_MASK = [
600
- 0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000,
601
- 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f
602
- ];
603
-
604
- /**
605
- * DES block cipher algorithm.
606
- */
607
- var DES = C_algo.DES = BlockCipher.extend({
608
- _doReset: function () {
609
- // Shortcuts
610
- var key = this._key;
611
- var keyWords = key.words;
612
-
613
- // Select 56 bits according to PC1
614
- var keyBits = [];
615
- for (var i = 0; i < 56; i++) {
616
- var keyBitPos = PC1[i] - 1;
617
- keyBits[i] = (keyWords[keyBitPos >>> 5] >>> (31 - keyBitPos % 32)) & 1;
618
- }
619
-
620
- // Assemble 16 subkeys
621
- var subKeys = this._subKeys = [];
622
- for (var nSubKey = 0; nSubKey < 16; nSubKey++) {
623
- // Create subkey
624
- var subKey = subKeys[nSubKey] = [];
625
-
626
- // Shortcut
627
- var bitShift = BIT_SHIFTS[nSubKey];
628
-
629
- // Select 48 bits according to PC2
630
- for (var i = 0; i < 24; i++) {
631
- // Select from the left 28 key bits
632
- subKey[(i / 6) | 0] |= keyBits[((PC2[i] - 1) + bitShift) % 28] << (31 - i % 6);
633
-
634
- // Select from the right 28 key bits
635
- subKey[4 + ((i / 6) | 0)] |= keyBits[28 + (((PC2[i + 24] - 1) + bitShift) % 28)] << (31 - i % 6);
636
- }
637
-
638
- // Since each subkey is applied to an expanded 32-bit input,
639
- // the subkey can be broken into 8 values scaled to 32-bits,
640
- // which allows the key to be used without expansion
641
- subKey[0] = (subKey[0] << 1) | (subKey[0] >>> 31);
642
- for (var i = 1; i < 7; i++) {
643
- subKey[i] = subKey[i] >>> ((i - 1) * 4 + 3);
644
- }
645
- subKey[7] = (subKey[7] << 5) | (subKey[7] >>> 27);
646
- }
647
-
648
- // Compute inverse subkeys
649
- var invSubKeys = this._invSubKeys = [];
650
- for (var i = 0; i < 16; i++) {
651
- invSubKeys[i] = subKeys[15 - i];
652
- }
653
- },
654
-
655
- encryptBlock: function (M, offset) {
656
- this._doCryptBlock(M, offset, this._subKeys);
657
- },
658
-
659
- decryptBlock: function (M, offset) {
660
- this._doCryptBlock(M, offset, this._invSubKeys);
661
- },
662
-
663
- _doCryptBlock: function (M, offset, subKeys) {
664
- // Get input
665
- this._lBlock = M[offset];
666
- this._rBlock = M[offset + 1];
667
-
668
- // Initial permutation
669
- exchangeLR.call(this, 4, 0x0f0f0f0f);
670
- exchangeLR.call(this, 16, 0x0000ffff);
671
- exchangeRL.call(this, 2, 0x33333333);
672
- exchangeRL.call(this, 8, 0x00ff00ff);
673
- exchangeLR.call(this, 1, 0x55555555);
674
-
675
- // Rounds
676
- for (var round = 0; round < 16; round++) {
677
- // Shortcuts
678
- var subKey = subKeys[round];
679
- var lBlock = this._lBlock;
680
- var rBlock = this._rBlock;
681
-
682
- // Feistel function
683
- var f = 0;
684
- for (var i = 0; i < 8; i++) {
685
- f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0];
686
- }
687
- this._lBlock = rBlock;
688
- this._rBlock = lBlock ^ f;
689
- }
690
-
691
- // Undo swap from last round
692
- var t = this._lBlock;
693
- this._lBlock = this._rBlock;
694
- this._rBlock = t;
695
-
696
- // Final permutation
697
- exchangeLR.call(this, 1, 0x55555555);
698
- exchangeRL.call(this, 8, 0x00ff00ff);
699
- exchangeRL.call(this, 2, 0x33333333);
700
- exchangeLR.call(this, 16, 0x0000ffff);
701
- exchangeLR.call(this, 4, 0x0f0f0f0f);
702
-
703
- // Set output
704
- M[offset] = this._lBlock;
705
- M[offset + 1] = this._rBlock;
706
- },
707
-
708
- keySize: 64/32,
709
-
710
- ivSize: 64/32,
711
-
712
- blockSize: 64/32
713
- });
714
-
715
- // Swap bits across the left and right words
716
- function exchangeLR(offset, mask) {
717
- var t = ((this._lBlock >>> offset) ^ this._rBlock) & mask;
718
- this._rBlock ^= t;
719
- this._lBlock ^= t << offset;
720
- }
721
-
722
- function exchangeRL(offset, mask) {
723
- var t = ((this._rBlock >>> offset) ^ this._lBlock) & mask;
724
- this._lBlock ^= t;
725
- this._rBlock ^= t << offset;
726
- }
727
-
728
- /**
729
- * Shortcut functions to the cipher's object interface.
730
- *
731
- * @example
732
- *
733
- * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);
734
- * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);
735
- */
736
- C.DES = BlockCipher._createHelper(DES);
737
-
738
- /**
739
- * Triple-DES block cipher algorithm.
740
- */
741
- var TripleDES = C_algo.TripleDES = BlockCipher.extend({
742
- _doReset: function () {
743
- // Shortcuts
744
- var key = this._key;
745
- var keyWords = key.words;
746
- // Make sure the key length is valid (64, 128 or >= 192 bit)
747
- if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) {
748
- throw new Error('Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.');
749
- }
750
-
751
- // Extend the key according to the keying options defined in 3DES standard
752
- var key1 = keyWords.slice(0, 2);
753
- var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4);
754
- var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6);
755
-
756
- // Create DES instances
757
- this._des1 = DES.createEncryptor(WordArray.create(key1));
758
- this._des2 = DES.createEncryptor(WordArray.create(key2));
759
- this._des3 = DES.createEncryptor(WordArray.create(key3));
760
- },
761
-
762
- encryptBlock: function (M, offset) {
763
- this._des1.encryptBlock(M, offset);
764
- this._des2.decryptBlock(M, offset);
765
- this._des3.encryptBlock(M, offset);
766
- },
767
-
768
- decryptBlock: function (M, offset) {
769
- this._des3.decryptBlock(M, offset);
770
- this._des2.encryptBlock(M, offset);
771
- this._des1.decryptBlock(M, offset);
772
- },
773
-
774
- keySize: 192/32,
775
-
776
- ivSize: 64/32,
777
-
778
- blockSize: 64/32
779
- });
780
-
781
- /**
782
- * Shortcut functions to the cipher's object interface.
783
- *
784
- * @example
785
- *
786
- * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);
787
- * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);
788
- */
789
- C.TripleDES = BlockCipher._createHelper(TripleDES);
790
- }());
791
-
792
-
793
- return CryptoJS.TripleDES;
794
-
795
- }));
796
- } (tripledes$1, tripledes$1.exports));
797
- return tripledes$1.exports;
798
- }
799
-
800
- export { requireTripledes as __require };