@gct-paas/core 0.1.4-dev.3 → 0.1.4-dev.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.
Files changed (124) hide show
  1. package/dist/index.min.cjs +2 -2
  2. package/dist/index.system.min.js +4 -4
  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/interface/i-pinia-action/i-global-actions.d.ts +4 -7
  10. package/es/interface/i-pinia-getter/i-global-getters.d.ts +1 -5
  11. package/es/modules/api-service/api-manage.mjs +1 -1
  12. package/es/modules/api-service/api-service.interface.d.ts +2 -2
  13. package/es/modules/api-service/api-service.interface.mjs +2 -2
  14. package/es/modules/api-service/api-service.mjs +1 -1
  15. package/es/modules/api-service/index.mjs +2 -4
  16. package/es/modules/env-manager/env-manager.d.ts +1 -1
  17. package/es/modules/env-manager/env-manager.interface.d.ts +1 -1
  18. package/es/modules/platform-config/useBasicSetting.d.ts +2 -2
  19. package/es/modules/platform-config/useDeploySetting.d.ts +1 -1
  20. package/es/modules/platform-config/useLoginSetting.d.ts +1 -1
  21. package/es/modules/platform-config/useOrgSetting.d.ts +1 -1
  22. package/es/modules/platform-config/useSecuritySetting.d.ts +1 -1
  23. package/es/modules/platform-config/useThemeSetting.d.ts +1 -1
  24. package/es/modules/platform-config/useWatermarkSetting.d.ts +1 -1
  25. package/es/register/designer-register/designer-register.mjs +1 -2
  26. package/es/register/render-register/render-register.mjs +1 -2
  27. package/es/store/global-store.mjs +6 -11
  28. package/es/types/index.d.ts +2 -2
  29. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -1
  30. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +1 -1
  31. package/es/utils/tools/tools.mjs +1 -2
  32. package/package.json +6 -8
  33. package/es/_virtual/_commonjs-dynamic-modules.mjs +0 -5
  34. package/es/_virtual/_commonjsHelpers.mjs +0 -44
  35. package/es/_virtual/aes.mjs +0 -3
  36. package/es/_virtual/blowfish.mjs +0 -3
  37. package/es/_virtual/cipher-core.mjs +0 -3
  38. package/es/_virtual/core.mjs +0 -3
  39. package/es/_virtual/enc-base64.mjs +0 -3
  40. package/es/_virtual/enc-base64url.mjs +0 -3
  41. package/es/_virtual/enc-utf16.mjs +0 -3
  42. package/es/_virtual/evpkdf.mjs +0 -3
  43. package/es/_virtual/format-hex.mjs +0 -3
  44. package/es/_virtual/hmac.mjs +0 -3
  45. package/es/_virtual/index.mjs +0 -7
  46. package/es/_virtual/index2.mjs +0 -7
  47. package/es/_virtual/index3.mjs +0 -3
  48. package/es/_virtual/lib-typedarrays.mjs +0 -3
  49. package/es/_virtual/md5.mjs +0 -3
  50. package/es/_virtual/mode-cfb.mjs +0 -3
  51. package/es/_virtual/mode-ctr-gladman.mjs +0 -3
  52. package/es/_virtual/mode-ctr.mjs +0 -3
  53. package/es/_virtual/mode-ecb.mjs +0 -3
  54. package/es/_virtual/mode-ofb.mjs +0 -3
  55. package/es/_virtual/pad-ansix923.mjs +0 -3
  56. package/es/_virtual/pad-iso10126.mjs +0 -3
  57. package/es/_virtual/pad-iso97971.mjs +0 -3
  58. package/es/_virtual/pad-nopadding.mjs +0 -3
  59. package/es/_virtual/pad-zeropadding.mjs +0 -3
  60. package/es/_virtual/pbkdf2.mjs +0 -3
  61. package/es/_virtual/rabbit-legacy.mjs +0 -3
  62. package/es/_virtual/rabbit.mjs +0 -3
  63. package/es/_virtual/rc4.mjs +0 -3
  64. package/es/_virtual/ripemd160.mjs +0 -3
  65. package/es/_virtual/sha1.mjs +0 -3
  66. package/es/_virtual/sha224.mjs +0 -3
  67. package/es/_virtual/sha256.mjs +0 -3
  68. package/es/_virtual/sha3.mjs +0 -3
  69. package/es/_virtual/sha384.mjs +0 -3
  70. package/es/_virtual/sha512.mjs +0 -3
  71. package/es/_virtual/tripledes.mjs +0 -3
  72. package/es/_virtual/x64-core.mjs +0 -3
  73. 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
  74. 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
  75. 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
  76. 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
  77. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.mjs +0 -255
  78. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.mjs +0 -492
  79. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.mjs +0 -913
  80. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.mjs +0 -824
  81. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.mjs +0 -153
  82. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.mjs +0 -165
  83. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.mjs +0 -166
  84. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.mjs +0 -153
  85. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.mjs +0 -84
  86. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.mjs +0 -160
  87. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs +0 -69
  88. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.mjs +0 -93
  89. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.mjs +0 -285
  90. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.mjs +0 -98
  91. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.mjs +0 -134
  92. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.mjs +0 -76
  93. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.mjs +0 -58
  94. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.mjs +0 -72
  95. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.mjs +0 -67
  96. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.mjs +0 -62
  97. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.mjs +0 -58
  98. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.mjs +0 -48
  99. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.mjs +0 -65
  100. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.mjs +0 -164
  101. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.mjs +0 -211
  102. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.mjs +0 -213
  103. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.mjs +0 -160
  104. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.mjs +0 -284
  105. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.mjs +0 -167
  106. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.mjs +0 -98
  107. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.mjs +0 -216
  108. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.mjs +0 -344
  109. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.mjs +0 -102
  110. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.mjs +0 -344
  111. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.mjs +0 -800
  112. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.mjs +0 -321
  113. package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +0 -541
  114. 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
  115. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +0 -2
  116. 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
  117. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +0 -2
  118. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +0 -47
  119. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +0 -5
  120. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +0 -24
  121. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +0 -94
  122. 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
  123. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +0 -149
  124. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +0 -227
@@ -1,216 +0,0 @@
1
- import '../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __module as sha256$1 } from '../../../../../_virtual/sha256.mjs';
3
- import { __require as requireCore } from './core.mjs';
4
-
5
- var sha256 = sha256$1.exports;
6
-
7
- var hasRequiredSha256;
8
-
9
- function requireSha256 () {
10
- if (hasRequiredSha256) return sha256$1.exports;
11
- hasRequiredSha256 = 1;
12
- (function (module, exports) {
13
- ;(function (root, factory) {
14
- if ('object' === "object") {
15
- // CommonJS
16
- module.exports = exports = factory(requireCore());
17
- }
18
- else if (typeof undefined === "function" && undefined.amd) {
19
- // AMD
20
- undefined(["./core"], factory);
21
- }
22
- else {
23
- // Global (browser)
24
- factory(root.CryptoJS);
25
- }
26
- }(sha256, function (CryptoJS) {
27
-
28
- (function (Math) {
29
- // Shortcuts
30
- var C = CryptoJS;
31
- var C_lib = C.lib;
32
- var WordArray = C_lib.WordArray;
33
- var Hasher = C_lib.Hasher;
34
- var C_algo = C.algo;
35
-
36
- // Initialization and round constants tables
37
- var H = [];
38
- var K = [];
39
-
40
- // Compute constants
41
- (function () {
42
- function isPrime(n) {
43
- var sqrtN = Math.sqrt(n);
44
- for (var factor = 2; factor <= sqrtN; factor++) {
45
- if (!(n % factor)) {
46
- return false;
47
- }
48
- }
49
-
50
- return true;
51
- }
52
-
53
- function getFractionalBits(n) {
54
- return ((n - (n | 0)) * 0x100000000) | 0;
55
- }
56
-
57
- var n = 2;
58
- var nPrime = 0;
59
- while (nPrime < 64) {
60
- if (isPrime(n)) {
61
- if (nPrime < 8) {
62
- H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));
63
- }
64
- K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));
65
-
66
- nPrime++;
67
- }
68
-
69
- n++;
70
- }
71
- }());
72
-
73
- // Reusable object
74
- var W = [];
75
-
76
- /**
77
- * SHA-256 hash algorithm.
78
- */
79
- var SHA256 = C_algo.SHA256 = Hasher.extend({
80
- _doReset: function () {
81
- this._hash = new WordArray.init(H.slice(0));
82
- },
83
-
84
- _doProcessBlock: function (M, offset) {
85
- // Shortcut
86
- var H = this._hash.words;
87
-
88
- // Working variables
89
- var a = H[0];
90
- var b = H[1];
91
- var c = H[2];
92
- var d = H[3];
93
- var e = H[4];
94
- var f = H[5];
95
- var g = H[6];
96
- var h = H[7];
97
-
98
- // Computation
99
- for (var i = 0; i < 64; i++) {
100
- if (i < 16) {
101
- W[i] = M[offset + i] | 0;
102
- } else {
103
- var gamma0x = W[i - 15];
104
- var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^
105
- ((gamma0x << 14) | (gamma0x >>> 18)) ^
106
- (gamma0x >>> 3);
107
-
108
- var gamma1x = W[i - 2];
109
- var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^
110
- ((gamma1x << 13) | (gamma1x >>> 19)) ^
111
- (gamma1x >>> 10);
112
-
113
- W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];
114
- }
115
-
116
- var ch = (e & f) ^ (~e & g);
117
- var maj = (a & b) ^ (a & c) ^ (b & c);
118
-
119
- var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));
120
- var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));
121
-
122
- var t1 = h + sigma1 + ch + K[i] + W[i];
123
- var t2 = sigma0 + maj;
124
-
125
- h = g;
126
- g = f;
127
- f = e;
128
- e = (d + t1) | 0;
129
- d = c;
130
- c = b;
131
- b = a;
132
- a = (t1 + t2) | 0;
133
- }
134
-
135
- // Intermediate hash value
136
- H[0] = (H[0] + a) | 0;
137
- H[1] = (H[1] + b) | 0;
138
- H[2] = (H[2] + c) | 0;
139
- H[3] = (H[3] + d) | 0;
140
- H[4] = (H[4] + e) | 0;
141
- H[5] = (H[5] + f) | 0;
142
- H[6] = (H[6] + g) | 0;
143
- H[7] = (H[7] + h) | 0;
144
- },
145
-
146
- _doFinalize: function () {
147
- // Shortcuts
148
- var data = this._data;
149
- var dataWords = data.words;
150
-
151
- var nBitsTotal = this._nDataBytes * 8;
152
- var nBitsLeft = data.sigBytes * 8;
153
-
154
- // Add padding
155
- dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
156
- dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
157
- dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;
158
- data.sigBytes = dataWords.length * 4;
159
-
160
- // Hash final blocks
161
- this._process();
162
-
163
- // Return final computed hash
164
- return this._hash;
165
- },
166
-
167
- clone: function () {
168
- var clone = Hasher.clone.call(this);
169
- clone._hash = this._hash.clone();
170
-
171
- return clone;
172
- }
173
- });
174
-
175
- /**
176
- * Shortcut function to the hasher's object interface.
177
- *
178
- * @param {WordArray|string} message The message to hash.
179
- *
180
- * @return {WordArray} The hash.
181
- *
182
- * @static
183
- *
184
- * @example
185
- *
186
- * var hash = CryptoJS.SHA256('message');
187
- * var hash = CryptoJS.SHA256(wordArray);
188
- */
189
- C.SHA256 = Hasher._createHelper(SHA256);
190
-
191
- /**
192
- * Shortcut function to the HMAC's object interface.
193
- *
194
- * @param {WordArray|string} message The message to hash.
195
- * @param {WordArray|string} key The secret key.
196
- *
197
- * @return {WordArray} The HMAC.
198
- *
199
- * @static
200
- *
201
- * @example
202
- *
203
- * var hmac = CryptoJS.HmacSHA256(message, key);
204
- */
205
- C.HmacSHA256 = Hasher._createHmacHelper(SHA256);
206
- }(Math));
207
-
208
-
209
- return CryptoJS.SHA256;
210
-
211
- }));
212
- } (sha256$1, sha256$1.exports));
213
- return sha256$1.exports;
214
- }
215
-
216
- export { requireSha256 as __require };
@@ -1,344 +0,0 @@
1
- import '../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __module as sha3$1 } from '../../../../../_virtual/sha3.mjs';
3
- import { __require as requireCore } from './core.mjs';
4
- import { __require as requireX64Core } from './x64-core.mjs';
5
-
6
- var sha3 = sha3$1.exports;
7
-
8
- var hasRequiredSha3;
9
-
10
- function requireSha3 () {
11
- if (hasRequiredSha3) return sha3$1.exports;
12
- hasRequiredSha3 = 1;
13
- (function (module, exports) {
14
- ;(function (root, factory, undef) {
15
- if ('object' === "object") {
16
- // CommonJS
17
- module.exports = exports = factory(requireCore(), requireX64Core());
18
- }
19
- else if (typeof undefined === "function" && undefined.amd) {
20
- // AMD
21
- undefined(["./core", "./x64-core"], factory);
22
- }
23
- else {
24
- // Global (browser)
25
- factory(root.CryptoJS);
26
- }
27
- }(sha3, function (CryptoJS) {
28
-
29
- (function (Math) {
30
- // Shortcuts
31
- var C = CryptoJS;
32
- var C_lib = C.lib;
33
- var WordArray = C_lib.WordArray;
34
- var Hasher = C_lib.Hasher;
35
- var C_x64 = C.x64;
36
- var X64Word = C_x64.Word;
37
- var C_algo = C.algo;
38
-
39
- // Constants tables
40
- var RHO_OFFSETS = [];
41
- var PI_INDEXES = [];
42
- var ROUND_CONSTANTS = [];
43
-
44
- // Compute Constants
45
- (function () {
46
- // Compute rho offset constants
47
- var x = 1, y = 0;
48
- for (var t = 0; t < 24; t++) {
49
- RHO_OFFSETS[x + 5 * y] = ((t + 1) * (t + 2) / 2) % 64;
50
-
51
- var newX = y % 5;
52
- var newY = (2 * x + 3 * y) % 5;
53
- x = newX;
54
- y = newY;
55
- }
56
-
57
- // Compute pi index constants
58
- for (var x = 0; x < 5; x++) {
59
- for (var y = 0; y < 5; y++) {
60
- PI_INDEXES[x + 5 * y] = y + ((2 * x + 3 * y) % 5) * 5;
61
- }
62
- }
63
-
64
- // Compute round constants
65
- var LFSR = 0x01;
66
- for (var i = 0; i < 24; i++) {
67
- var roundConstantMsw = 0;
68
- var roundConstantLsw = 0;
69
-
70
- for (var j = 0; j < 7; j++) {
71
- if (LFSR & 0x01) {
72
- var bitPosition = (1 << j) - 1;
73
- if (bitPosition < 32) {
74
- roundConstantLsw ^= 1 << bitPosition;
75
- } else /* if (bitPosition >= 32) */ {
76
- roundConstantMsw ^= 1 << (bitPosition - 32);
77
- }
78
- }
79
-
80
- // Compute next LFSR
81
- if (LFSR & 0x80) {
82
- // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1
83
- LFSR = (LFSR << 1) ^ 0x71;
84
- } else {
85
- LFSR <<= 1;
86
- }
87
- }
88
-
89
- ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw);
90
- }
91
- }());
92
-
93
- // Reusable objects for temporary values
94
- var T = [];
95
- (function () {
96
- for (var i = 0; i < 25; i++) {
97
- T[i] = X64Word.create();
98
- }
99
- }());
100
-
101
- /**
102
- * SHA-3 hash algorithm.
103
- */
104
- var SHA3 = C_algo.SHA3 = Hasher.extend({
105
- /**
106
- * Configuration options.
107
- *
108
- * @property {number} outputLength
109
- * The desired number of bits in the output hash.
110
- * Only values permitted are: 224, 256, 384, 512.
111
- * Default: 512
112
- */
113
- cfg: Hasher.cfg.extend({
114
- outputLength: 512
115
- }),
116
-
117
- _doReset: function () {
118
- var state = this._state = [];
119
- for (var i = 0; i < 25; i++) {
120
- state[i] = new X64Word.init();
121
- }
122
-
123
- this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
124
- },
125
-
126
- _doProcessBlock: function (M, offset) {
127
- // Shortcuts
128
- var state = this._state;
129
- var nBlockSizeLanes = this.blockSize / 2;
130
-
131
- // Absorb
132
- for (var i = 0; i < nBlockSizeLanes; i++) {
133
- // Shortcuts
134
- var M2i = M[offset + 2 * i];
135
- var M2i1 = M[offset + 2 * i + 1];
136
-
137
- // Swap endian
138
- M2i = (
139
- (((M2i << 8) | (M2i >>> 24)) & 0x00ff00ff) |
140
- (((M2i << 24) | (M2i >>> 8)) & 0xff00ff00)
141
- );
142
- M2i1 = (
143
- (((M2i1 << 8) | (M2i1 >>> 24)) & 0x00ff00ff) |
144
- (((M2i1 << 24) | (M2i1 >>> 8)) & 0xff00ff00)
145
- );
146
-
147
- // Absorb message into state
148
- var lane = state[i];
149
- lane.high ^= M2i1;
150
- lane.low ^= M2i;
151
- }
152
-
153
- // Rounds
154
- for (var round = 0; round < 24; round++) {
155
- // Theta
156
- for (var x = 0; x < 5; x++) {
157
- // Mix column lanes
158
- var tMsw = 0, tLsw = 0;
159
- for (var y = 0; y < 5; y++) {
160
- var lane = state[x + 5 * y];
161
- tMsw ^= lane.high;
162
- tLsw ^= lane.low;
163
- }
164
-
165
- // Temporary values
166
- var Tx = T[x];
167
- Tx.high = tMsw;
168
- Tx.low = tLsw;
169
- }
170
- for (var x = 0; x < 5; x++) {
171
- // Shortcuts
172
- var Tx4 = T[(x + 4) % 5];
173
- var Tx1 = T[(x + 1) % 5];
174
- var Tx1Msw = Tx1.high;
175
- var Tx1Lsw = Tx1.low;
176
-
177
- // Mix surrounding columns
178
- var tMsw = Tx4.high ^ ((Tx1Msw << 1) | (Tx1Lsw >>> 31));
179
- var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw >>> 31));
180
- for (var y = 0; y < 5; y++) {
181
- var lane = state[x + 5 * y];
182
- lane.high ^= tMsw;
183
- lane.low ^= tLsw;
184
- }
185
- }
186
-
187
- // Rho Pi
188
- for (var laneIndex = 1; laneIndex < 25; laneIndex++) {
189
- var tMsw;
190
- var tLsw;
191
-
192
- // Shortcuts
193
- var lane = state[laneIndex];
194
- var laneMsw = lane.high;
195
- var laneLsw = lane.low;
196
- var rhoOffset = RHO_OFFSETS[laneIndex];
197
-
198
- // Rotate lanes
199
- if (rhoOffset < 32) {
200
- tMsw = (laneMsw << rhoOffset) | (laneLsw >>> (32 - rhoOffset));
201
- tLsw = (laneLsw << rhoOffset) | (laneMsw >>> (32 - rhoOffset));
202
- } else /* if (rhoOffset >= 32) */ {
203
- tMsw = (laneLsw << (rhoOffset - 32)) | (laneMsw >>> (64 - rhoOffset));
204
- tLsw = (laneMsw << (rhoOffset - 32)) | (laneLsw >>> (64 - rhoOffset));
205
- }
206
-
207
- // Transpose lanes
208
- var TPiLane = T[PI_INDEXES[laneIndex]];
209
- TPiLane.high = tMsw;
210
- TPiLane.low = tLsw;
211
- }
212
-
213
- // Rho pi at x = y = 0
214
- var T0 = T[0];
215
- var state0 = state[0];
216
- T0.high = state0.high;
217
- T0.low = state0.low;
218
-
219
- // Chi
220
- for (var x = 0; x < 5; x++) {
221
- for (var y = 0; y < 5; y++) {
222
- // Shortcuts
223
- var laneIndex = x + 5 * y;
224
- var lane = state[laneIndex];
225
- var TLane = T[laneIndex];
226
- var Tx1Lane = T[((x + 1) % 5) + 5 * y];
227
- var Tx2Lane = T[((x + 2) % 5) + 5 * y];
228
-
229
- // Mix rows
230
- lane.high = TLane.high ^ (~Tx1Lane.high & Tx2Lane.high);
231
- lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low);
232
- }
233
- }
234
-
235
- // Iota
236
- var lane = state[0];
237
- var roundConstant = ROUND_CONSTANTS[round];
238
- lane.high ^= roundConstant.high;
239
- lane.low ^= roundConstant.low;
240
- }
241
- },
242
-
243
- _doFinalize: function () {
244
- // Shortcuts
245
- var data = this._data;
246
- var dataWords = data.words;
247
- var nBitsTotal = this._nDataBytes * 8;
248
- var nBitsLeft = data.sigBytes * 8;
249
- var blockSizeBits = this.blockSize * 32;
250
-
251
- // Add padding
252
- dataWords[nBitsLeft >>> 5] |= 0x1 << (24 - nBitsLeft % 32);
253
- dataWords[((Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits) >>> 5) - 1] |= 0x80;
254
- data.sigBytes = dataWords.length * 4;
255
-
256
- // Hash final blocks
257
- this._process();
258
-
259
- // Shortcuts
260
- var state = this._state;
261
- var outputLengthBytes = this.cfg.outputLength / 8;
262
- var outputLengthLanes = outputLengthBytes / 8;
263
-
264
- // Squeeze
265
- var hashWords = [];
266
- for (var i = 0; i < outputLengthLanes; i++) {
267
- // Shortcuts
268
- var lane = state[i];
269
- var laneMsw = lane.high;
270
- var laneLsw = lane.low;
271
-
272
- // Swap endian
273
- laneMsw = (
274
- (((laneMsw << 8) | (laneMsw >>> 24)) & 0x00ff00ff) |
275
- (((laneMsw << 24) | (laneMsw >>> 8)) & 0xff00ff00)
276
- );
277
- laneLsw = (
278
- (((laneLsw << 8) | (laneLsw >>> 24)) & 0x00ff00ff) |
279
- (((laneLsw << 24) | (laneLsw >>> 8)) & 0xff00ff00)
280
- );
281
-
282
- // Squeeze state to retrieve hash
283
- hashWords.push(laneLsw);
284
- hashWords.push(laneMsw);
285
- }
286
-
287
- // Return final computed hash
288
- return new WordArray.init(hashWords, outputLengthBytes);
289
- },
290
-
291
- clone: function () {
292
- var clone = Hasher.clone.call(this);
293
-
294
- var state = clone._state = this._state.slice(0);
295
- for (var i = 0; i < 25; i++) {
296
- state[i] = state[i].clone();
297
- }
298
-
299
- return clone;
300
- }
301
- });
302
-
303
- /**
304
- * Shortcut function to the hasher's object interface.
305
- *
306
- * @param {WordArray|string} message The message to hash.
307
- *
308
- * @return {WordArray} The hash.
309
- *
310
- * @static
311
- *
312
- * @example
313
- *
314
- * var hash = CryptoJS.SHA3('message');
315
- * var hash = CryptoJS.SHA3(wordArray);
316
- */
317
- C.SHA3 = Hasher._createHelper(SHA3);
318
-
319
- /**
320
- * Shortcut function to the HMAC's object interface.
321
- *
322
- * @param {WordArray|string} message The message to hash.
323
- * @param {WordArray|string} key The secret key.
324
- *
325
- * @return {WordArray} The HMAC.
326
- *
327
- * @static
328
- *
329
- * @example
330
- *
331
- * var hmac = CryptoJS.HmacSHA3(message, key);
332
- */
333
- C.HmacSHA3 = Hasher._createHmacHelper(SHA3);
334
- }(Math));
335
-
336
-
337
- return CryptoJS.SHA3;
338
-
339
- }));
340
- } (sha3$1, sha3$1.exports));
341
- return sha3$1.exports;
342
- }
343
-
344
- export { requireSha3 as __require };
@@ -1,102 +0,0 @@
1
- import '../../../../../_virtual/_commonjsHelpers.mjs';
2
- import { __module as sha384$1 } from '../../../../../_virtual/sha384.mjs';
3
- import { __require as requireCore } from './core.mjs';
4
- import { __require as requireX64Core } from './x64-core.mjs';
5
- import { __require as requireSha512 } from './sha512.mjs';
6
-
7
- var sha384 = sha384$1.exports;
8
-
9
- var hasRequiredSha384;
10
-
11
- function requireSha384 () {
12
- if (hasRequiredSha384) return sha384$1.exports;
13
- hasRequiredSha384 = 1;
14
- (function (module, exports) {
15
- ;(function (root, factory, undef) {
16
- if ('object' === "object") {
17
- // CommonJS
18
- module.exports = exports = factory(requireCore(), requireX64Core(), requireSha512());
19
- }
20
- else if (typeof undefined === "function" && undefined.amd) {
21
- // AMD
22
- undefined(["./core", "./x64-core", "./sha512"], factory);
23
- }
24
- else {
25
- // Global (browser)
26
- factory(root.CryptoJS);
27
- }
28
- }(sha384, function (CryptoJS) {
29
-
30
- (function () {
31
- // Shortcuts
32
- var C = CryptoJS;
33
- var C_x64 = C.x64;
34
- var X64Word = C_x64.Word;
35
- var X64WordArray = C_x64.WordArray;
36
- var C_algo = C.algo;
37
- var SHA512 = C_algo.SHA512;
38
-
39
- /**
40
- * SHA-384 hash algorithm.
41
- */
42
- var SHA384 = C_algo.SHA384 = SHA512.extend({
43
- _doReset: function () {
44
- this._hash = new X64WordArray.init([
45
- new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),
46
- new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),
47
- new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511),
48
- new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)
49
- ]);
50
- },
51
-
52
- _doFinalize: function () {
53
- var hash = SHA512._doFinalize.call(this);
54
-
55
- hash.sigBytes -= 16;
56
-
57
- return hash;
58
- }
59
- });
60
-
61
- /**
62
- * Shortcut function to the hasher's object interface.
63
- *
64
- * @param {WordArray|string} message The message to hash.
65
- *
66
- * @return {WordArray} The hash.
67
- *
68
- * @static
69
- *
70
- * @example
71
- *
72
- * var hash = CryptoJS.SHA384('message');
73
- * var hash = CryptoJS.SHA384(wordArray);
74
- */
75
- C.SHA384 = SHA512._createHelper(SHA384);
76
-
77
- /**
78
- * Shortcut function to the HMAC's object interface.
79
- *
80
- * @param {WordArray|string} message The message to hash.
81
- * @param {WordArray|string} key The secret key.
82
- *
83
- * @return {WordArray} The HMAC.
84
- *
85
- * @static
86
- *
87
- * @example
88
- *
89
- * var hmac = CryptoJS.HmacSHA384(message, key);
90
- */
91
- C.HmacSHA384 = SHA512._createHmacHelper(SHA384);
92
- }());
93
-
94
-
95
- return CryptoJS.SHA384;
96
-
97
- }));
98
- } (sha384$1, sha384$1.exports));
99
- return sha384$1.exports;
100
- }
101
-
102
- export { requireSha384 as __require };