@solibo/solibo-sdk 1.0.23 → 1.0.25-SNAPSHOT
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/KmLogging-logging.js +291 -5
- package/KmLogging-logging.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +7250 -5
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/KotlinBigInteger-bignum.js +5989 -5
- package/KotlinBigInteger-bignum.js.map +1 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.js +19 -5
- package/MultiplatformSettings-multiplatform-settings-no-arg.js.map +1 -1
- package/MultiplatformSettings-multiplatform-settings.js +72 -5
- package/MultiplatformSettings-multiplatform-settings.js.map +1 -1
- package/Stately-stately-concurrency.js +27 -5
- package/Stately-stately-concurrency.js.map +1 -1
- package/cryptography-kotlin-cryptography-bigint.js +244 -5
- package/cryptography-kotlin-cryptography-bigint.js.map +1 -1
- package/cryptography-kotlin-cryptography-core.js +957 -60
- package/cryptography-kotlin-cryptography-core.js.map +1 -1
- package/cryptography-kotlin-cryptography-provider-base.js +67 -5
- package/cryptography-kotlin-cryptography-provider-base.js.map +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +1151 -13
- package/cryptography-kotlin-cryptography-provider-webcrypto.js.map +1 -1
- package/cryptography-kotlin-cryptography-random.js +77 -8
- package/cryptography-kotlin-cryptography-random.js.map +1 -1
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +705 -5
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js.map +1 -1
- package/cryptography-kotlin-cryptography-serialization-asn1.js +1417 -5
- package/cryptography-kotlin-cryptography-serialization-asn1.js.map +1 -1
- package/cryptography-kotlin-cryptography-serialization-pem.js +155 -5
- package/cryptography-kotlin-cryptography-serialization-pem.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +16616 -1222
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +187 -8
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-browser.js +19 -0
- package/kotlinx-browser.js.map +1 -0
- package/kotlinx-coroutines-core.js +9817 -5
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +2025 -5
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +6048 -5
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +5073 -5
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +1500 -5
- package/ktor-ktor-client-auth.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +757 -5
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +13613 -36
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +3276 -5
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +84 -5
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http-cio.js +2261 -5
- package/ktor-ktor-http-cio.js.map +1 -1
- package/ktor-ktor-http.js +5127 -5
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +3510 -5
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +57 -5
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +855 -5
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +369 -5
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +3610 -5
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +2542 -5
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +5027 -5
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +118 -0
- package/solibo-sdk-sdk.js +6900 -4
- package/solibo-sdk-sdk.js.map +1 -1
|
@@ -15,54 +15,206 @@
|
|
|
15
15
|
}(function (_, kotlin_kotlin, kotlin_dev_whyoleg_cryptography_cryptography_random) {
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
19
|
-
var
|
|
20
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
18
|
+
var protoOf = kotlin_kotlin.$_$.fd;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.jc;
|
|
20
|
+
var initMetadataForClass = kotlin_kotlin.$_$.fc;
|
|
21
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.gc;
|
|
22
|
+
var toString = kotlin_kotlin.$_$.id;
|
|
23
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
24
|
+
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
25
|
+
var initMetadataForObject = kotlin_kotlin.$_$.lc;
|
|
26
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
27
|
+
var equals = kotlin_kotlin.$_$.yb;
|
|
28
|
+
var FunctionAdapter = kotlin_kotlin.$_$.lb;
|
|
29
|
+
var isInterface = kotlin_kotlin.$_$.uc;
|
|
30
|
+
var Comparator = kotlin_kotlin.$_$.qh;
|
|
31
|
+
var hashCode = kotlin_kotlin.$_$.ec;
|
|
32
|
+
var compareValues = kotlin_kotlin.$_$.v9;
|
|
33
|
+
var sortedWith = kotlin_kotlin.$_$.a9;
|
|
34
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.l6;
|
|
35
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
36
|
+
var first = kotlin_kotlin.$_$.p7;
|
|
36
37
|
var Default_getInstance = kotlin_dev_whyoleg_cryptography_cryptography_random.$_$.a;
|
|
37
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
38
|
-
var lazy = kotlin_kotlin.$_$.
|
|
39
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
40
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
41
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
38
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
39
|
+
var lazy = kotlin_kotlin.$_$.cj;
|
|
40
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
41
|
+
var THROW_CCE = kotlin_kotlin.$_$.di;
|
|
42
|
+
var KtMap = kotlin_kotlin.$_$.y5;
|
|
43
|
+
var Enum = kotlin_kotlin.$_$.th;
|
|
44
|
+
var closeFinally = kotlin_kotlin.$_$.si;
|
|
45
|
+
var AutoCloseable = kotlin_kotlin.$_$.mh;
|
|
42
46
|
//endregion
|
|
43
47
|
//region block: pre-declaration
|
|
48
|
+
initMetadataForInterface(CryptographyAlgorithm, 'CryptographyAlgorithm');
|
|
49
|
+
initMetadataForClass(CryptographyAlgorithmId, 'CryptographyAlgorithmId');
|
|
44
50
|
initMetadataForCompanion(Companion);
|
|
45
51
|
initMetadataForClass(CryptographyProvider, 'CryptographyProvider');
|
|
46
52
|
initMetadataForObject(CryptographySystem, 'CryptographySystem');
|
|
47
53
|
initMetadataForClass(CompositeProvider, 'CompositeProvider', VOID, CryptographyProvider);
|
|
48
54
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
49
55
|
initMetadataForClass(CryptographySystemImpl, 'CryptographySystemImpl', CryptographySystemImpl);
|
|
56
|
+
initMetadataForClass(Format, 'Format', VOID, Enum);
|
|
57
|
+
initMetadataForCompanion(Companion_0, CryptographyAlgorithmId);
|
|
58
|
+
initMetadataForCompanion(Companion_1, CryptographyAlgorithmId);
|
|
59
|
+
initMetadataForCompanion(Companion_2, CryptographyAlgorithmId);
|
|
60
|
+
initMetadataForObject(SHA1, 'SHA1', VOID, CryptographyAlgorithmId);
|
|
61
|
+
initMetadataForObject(SHA256, 'SHA256', VOID, CryptographyAlgorithmId);
|
|
62
|
+
initMetadataForObject(SHA384, 'SHA384', VOID, CryptographyAlgorithmId);
|
|
63
|
+
initMetadataForObject(SHA512, 'SHA512', VOID, CryptographyAlgorithmId);
|
|
64
|
+
initMetadataForCompanion(Companion_3);
|
|
65
|
+
initMetadataForClass(Format_0, 'Format');
|
|
66
|
+
initMetadataForClass(RAW, 'RAW', VOID, Format_0);
|
|
67
|
+
initMetadataForObject(Uncompressed, 'Uncompressed', VOID, RAW);
|
|
68
|
+
initMetadataForObject(Compressed, 'Compressed', VOID, RAW);
|
|
69
|
+
initMetadataForObject(JWK, 'JWK', VOID, Format_0);
|
|
70
|
+
initMetadataForObject(DER, 'DER', VOID, Format_0);
|
|
71
|
+
initMetadataForObject(PEM, 'PEM', VOID, Format_0);
|
|
72
|
+
initMetadataForClass(Format_1, 'Format');
|
|
73
|
+
initMetadataForClass(DER_0, 'DER', VOID, Format_1);
|
|
74
|
+
initMetadataForObject(Generic, 'Generic', VOID, DER_0);
|
|
75
|
+
initMetadataForObject(SEC1, 'SEC1', VOID, DER_0);
|
|
76
|
+
initMetadataForClass(PEM_0, 'PEM', VOID, Format_1);
|
|
77
|
+
initMetadataForObject(Generic_0, 'Generic', VOID, PEM_0);
|
|
78
|
+
initMetadataForObject(SEC1_0, 'SEC1', VOID, PEM_0);
|
|
79
|
+
initMetadataForObject(JWK_0, 'JWK', VOID, Format_1);
|
|
80
|
+
initMetadataForObject(RAW_0, 'RAW', VOID, Format_1);
|
|
81
|
+
initMetadataForCompanion(Companion_4, CryptographyAlgorithmId);
|
|
82
|
+
initMetadataForCompanion(Companion_5, CryptographyAlgorithmId);
|
|
83
|
+
initMetadataForCompanion(Companion_6, CryptographyAlgorithmId);
|
|
84
|
+
initMetadataForClass(Format_2, 'Format', VOID, Enum);
|
|
85
|
+
initMetadataForCompanion(Companion_7, CryptographyAlgorithmId);
|
|
86
|
+
initMetadataForCompanion(Companion_8, CryptographyAlgorithmId);
|
|
87
|
+
initMetadataForClass(Format_3, 'Format');
|
|
88
|
+
initMetadataForClass(DER_1, 'DER', VOID, Format_3);
|
|
89
|
+
initMetadataForObject(Generic_1, 'Generic', VOID, DER_1);
|
|
90
|
+
initMetadataForObject(PKCS1, 'PKCS1', VOID, DER_1);
|
|
91
|
+
initMetadataForClass(PEM_1, 'PEM', VOID, Format_3);
|
|
92
|
+
initMetadataForObject(Generic_2, 'Generic', VOID, PEM_1);
|
|
93
|
+
initMetadataForObject(PKCS1_0, 'PKCS1', VOID, PEM_1);
|
|
94
|
+
initMetadataForObject(JWK_1, 'JWK', VOID, Format_3);
|
|
95
|
+
initMetadataForClass(Format_4, 'Format');
|
|
96
|
+
initMetadataForClass(DER_2, 'DER', VOID, Format_4);
|
|
97
|
+
initMetadataForObject(Generic_3, 'Generic', VOID, DER_2);
|
|
98
|
+
initMetadataForObject(PKCS1_1, 'PKCS1', VOID, DER_2);
|
|
99
|
+
initMetadataForClass(PEM_2, 'PEM', VOID, Format_4);
|
|
100
|
+
initMetadataForObject(Generic_4, 'Generic', VOID, PEM_2);
|
|
101
|
+
initMetadataForObject(PKCS1_2, 'PKCS1', VOID, PEM_2);
|
|
102
|
+
initMetadataForObject(JWK_2, 'JWK', VOID, Format_4);
|
|
103
|
+
initMetadataForCompanion(Companion_9, CryptographyAlgorithmId);
|
|
104
|
+
initMetadataForCompanion(Companion_10, CryptographyAlgorithmId);
|
|
105
|
+
initMetadataForCompanion(Companion_11, CryptographyAlgorithmId);
|
|
106
|
+
function decodeFromByteArray(format, bytes, $completion) {
|
|
107
|
+
return this.a7t(format, bytes);
|
|
108
|
+
}
|
|
109
|
+
initMetadataForInterface(KeyDecoder, 'KeyDecoder', VOID, VOID, VOID, [2]);
|
|
110
|
+
function hash(data, $completion) {
|
|
111
|
+
return this.d7t(data);
|
|
112
|
+
}
|
|
113
|
+
function hashBlocking(data) {
|
|
114
|
+
var tmp0 = this.b7t();
|
|
115
|
+
var tmp$ret$1;
|
|
116
|
+
$l$block: {
|
|
117
|
+
// Inline function 'kotlin.use' call
|
|
118
|
+
var exception = null;
|
|
119
|
+
try {
|
|
120
|
+
tmp0.e7t(data);
|
|
121
|
+
tmp$ret$1 = tmp0.f7t();
|
|
122
|
+
break $l$block;
|
|
123
|
+
} catch ($p) {
|
|
124
|
+
if ($p instanceof Error) {
|
|
125
|
+
var e = $p;
|
|
126
|
+
exception = e;
|
|
127
|
+
throw e;
|
|
128
|
+
} else {
|
|
129
|
+
throw $p;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
finally {
|
|
133
|
+
closeFinally(tmp0, exception);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return tmp$ret$1;
|
|
137
|
+
}
|
|
138
|
+
initMetadataForInterface(Hasher, 'Hasher', VOID, VOID, VOID, [1]);
|
|
139
|
+
function generateSignature(data, $completion) {
|
|
140
|
+
return this.i7t(data);
|
|
141
|
+
}
|
|
142
|
+
function generateSignatureBlocking(data) {
|
|
143
|
+
var tmp0 = this.g7t();
|
|
144
|
+
var tmp$ret$1;
|
|
145
|
+
$l$block: {
|
|
146
|
+
// Inline function 'kotlin.use' call
|
|
147
|
+
var exception = null;
|
|
148
|
+
try {
|
|
149
|
+
tmp0.e7t(data);
|
|
150
|
+
tmp$ret$1 = tmp0.j7t();
|
|
151
|
+
break $l$block;
|
|
152
|
+
} catch ($p) {
|
|
153
|
+
if ($p instanceof Error) {
|
|
154
|
+
var e = $p;
|
|
155
|
+
exception = e;
|
|
156
|
+
throw e;
|
|
157
|
+
} else {
|
|
158
|
+
throw $p;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
finally {
|
|
162
|
+
closeFinally(tmp0, exception);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return tmp$ret$1;
|
|
166
|
+
}
|
|
167
|
+
initMetadataForInterface(SignatureGenerator, 'SignatureGenerator', VOID, VOID, VOID, [1]);
|
|
168
|
+
function update$default(source, startIndex, endIndex, $super) {
|
|
169
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
170
|
+
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
171
|
+
var tmp;
|
|
172
|
+
if ($super === VOID) {
|
|
173
|
+
this.k7t(source, startIndex, endIndex);
|
|
174
|
+
tmp = Unit_instance;
|
|
175
|
+
} else {
|
|
176
|
+
tmp = $super.k7t.call(this, source, startIndex, endIndex);
|
|
177
|
+
}
|
|
178
|
+
return tmp;
|
|
179
|
+
}
|
|
180
|
+
initMetadataForInterface(UpdateFunction, 'UpdateFunction', VOID, VOID, [AutoCloseable]);
|
|
50
181
|
//endregion
|
|
182
|
+
function CryptographyAlgorithm() {
|
|
183
|
+
}
|
|
184
|
+
function CryptographyAlgorithmId(name) {
|
|
185
|
+
this.h7s_1 = name;
|
|
186
|
+
}
|
|
51
187
|
function Companion() {
|
|
52
188
|
}
|
|
189
|
+
protoOf(Companion).i7s = function () {
|
|
190
|
+
return CryptographySystem_getInstance().k7s();
|
|
191
|
+
};
|
|
53
192
|
var Companion_instance;
|
|
54
193
|
function Companion_getInstance() {
|
|
55
194
|
return Companion_instance;
|
|
56
195
|
}
|
|
57
196
|
function CryptographyProvider() {
|
|
58
197
|
}
|
|
198
|
+
protoOf(CryptographyProvider).m7s = function (identifier) {
|
|
199
|
+
var tmp0_elvis_lhs = this.l7s(identifier);
|
|
200
|
+
var tmp;
|
|
201
|
+
if (tmp0_elvis_lhs == null) {
|
|
202
|
+
throw IllegalStateException_init_$Create$('Algorithm not found: ' + toString(identifier));
|
|
203
|
+
} else {
|
|
204
|
+
tmp = tmp0_elvis_lhs;
|
|
205
|
+
}
|
|
206
|
+
return tmp;
|
|
207
|
+
};
|
|
59
208
|
function CryptographySystem() {
|
|
60
209
|
CryptographySystem_instance = this;
|
|
61
|
-
this.
|
|
210
|
+
this.j7s_1 = new CryptographySystemImpl();
|
|
62
211
|
loadProviders(this);
|
|
63
212
|
}
|
|
64
|
-
protoOf(CryptographySystem).
|
|
65
|
-
return this.
|
|
213
|
+
protoOf(CryptographySystem).k7s = function () {
|
|
214
|
+
return this.j7s_1.k7s();
|
|
215
|
+
};
|
|
216
|
+
protoOf(CryptographySystem).t7s = function (provider, priority) {
|
|
217
|
+
return this.j7s_1.t7s(provider, priority);
|
|
66
218
|
};
|
|
67
219
|
var CryptographySystem_instance;
|
|
68
220
|
function CryptographySystem_getInstance() {
|
|
@@ -72,26 +224,44 @@
|
|
|
72
224
|
}
|
|
73
225
|
function CompositeProvider(providers) {
|
|
74
226
|
CryptographyProvider.call(this);
|
|
75
|
-
this.
|
|
227
|
+
this.u7s_1 = providers;
|
|
76
228
|
}
|
|
229
|
+
protoOf(CompositeProvider).l7s = function (identifier) {
|
|
230
|
+
var tmp0 = this.u7s_1;
|
|
231
|
+
var tmp$ret$1;
|
|
232
|
+
$l$block: {
|
|
233
|
+
// Inline function 'kotlin.collections.firstNotNullOfOrNull' call
|
|
234
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
235
|
+
while (_iterator__ex2g4s.u()) {
|
|
236
|
+
var element = _iterator__ex2g4s.v();
|
|
237
|
+
var result = element.l7s(identifier);
|
|
238
|
+
if (!(result == null)) {
|
|
239
|
+
tmp$ret$1 = result;
|
|
240
|
+
break $l$block;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
tmp$ret$1 = null;
|
|
244
|
+
}
|
|
245
|
+
return tmp$ret$1;
|
|
246
|
+
};
|
|
77
247
|
function sam$kotlin_Comparator$0(function_0) {
|
|
78
|
-
this.
|
|
248
|
+
this.v7s_1 = function_0;
|
|
79
249
|
}
|
|
80
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
81
|
-
return this.
|
|
250
|
+
protoOf(sam$kotlin_Comparator$0).be = function (a, b) {
|
|
251
|
+
return this.v7s_1(a, b);
|
|
82
252
|
};
|
|
83
253
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
84
|
-
return this.
|
|
254
|
+
return this.be(a, b);
|
|
85
255
|
};
|
|
86
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
87
|
-
return this.
|
|
256
|
+
protoOf(sam$kotlin_Comparator$0).k3 = function () {
|
|
257
|
+
return this.v7s_1;
|
|
88
258
|
};
|
|
89
259
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
90
260
|
var tmp;
|
|
91
261
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
92
262
|
var tmp_0;
|
|
93
263
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
94
|
-
tmp_0 = equals(this.
|
|
264
|
+
tmp_0 = equals(this.k3(), other.k3());
|
|
95
265
|
} else {
|
|
96
266
|
tmp_0 = false;
|
|
97
267
|
}
|
|
@@ -102,18 +272,18 @@
|
|
|
102
272
|
return tmp;
|
|
103
273
|
};
|
|
104
274
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
105
|
-
return hashCode(this.
|
|
275
|
+
return hashCode(this.k3());
|
|
106
276
|
};
|
|
107
277
|
function CryptographySystemImpl$lazyRegisteredProviders$lambda$lambda(a, b) {
|
|
108
278
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
109
|
-
var tmp = a.
|
|
110
|
-
var tmp$ret$1 = b.
|
|
279
|
+
var tmp = a.m1();
|
|
280
|
+
var tmp$ret$1 = b.m1();
|
|
111
281
|
return compareValues(tmp, tmp$ret$1);
|
|
112
282
|
}
|
|
113
283
|
function CryptographySystemImpl$lazyRegisteredProviders$lambda(this$0) {
|
|
114
284
|
return function () {
|
|
115
285
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
116
|
-
var this_0 = this$0.
|
|
286
|
+
var this_0 = this$0.n7s_1.l1();
|
|
117
287
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
118
288
|
var tmp = CryptographySystemImpl$lazyRegisteredProviders$lambda$lambda;
|
|
119
289
|
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
@@ -121,24 +291,24 @@
|
|
|
121
291
|
var this_1 = sortedWith(this_0, tmp$ret$0);
|
|
122
292
|
// Inline function 'kotlin.collections.mapTo' call
|
|
123
293
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
124
|
-
var _iterator__ex2g4s = this_1.
|
|
125
|
-
while (_iterator__ex2g4s.
|
|
126
|
-
var item = _iterator__ex2g4s.
|
|
127
|
-
var tmp$ret$2 = item.
|
|
128
|
-
destination.
|
|
294
|
+
var _iterator__ex2g4s = this_1.t();
|
|
295
|
+
while (_iterator__ex2g4s.u()) {
|
|
296
|
+
var item = _iterator__ex2g4s.v();
|
|
297
|
+
var tmp$ret$2 = item.n1().n1();
|
|
298
|
+
destination.e1(tmp$ret$2);
|
|
129
299
|
}
|
|
130
300
|
return destination;
|
|
131
301
|
};
|
|
132
302
|
}
|
|
133
303
|
function CryptographySystemImpl$lazyDefaultProvider$lambda(this$0) {
|
|
134
304
|
return function () {
|
|
135
|
-
var tmp0_elvis_lhs = this$0.
|
|
305
|
+
var tmp0_elvis_lhs = this$0.p7s_1;
|
|
136
306
|
var tmp;
|
|
137
307
|
if (tmp0_elvis_lhs == null) {
|
|
138
308
|
// Inline function 'kotlin.let' call
|
|
139
|
-
var it = this$0.
|
|
309
|
+
var it = this$0.o7s_1.n1();
|
|
140
310
|
var tmp_0;
|
|
141
|
-
switch (it.
|
|
311
|
+
switch (it.g1()) {
|
|
142
312
|
case 0:
|
|
143
313
|
var message = 'No providers registered. Please provide a dependency or register provider explicitly';
|
|
144
314
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -158,24 +328,27 @@
|
|
|
158
328
|
}
|
|
159
329
|
function CryptographySystemImpl$lazyDefaultRandom$lambda(this$0) {
|
|
160
330
|
return function () {
|
|
161
|
-
var tmp0_elvis_lhs = this$0.
|
|
331
|
+
var tmp0_elvis_lhs = this$0.r7s_1;
|
|
162
332
|
return tmp0_elvis_lhs == null ? Default_getInstance() : tmp0_elvis_lhs;
|
|
163
333
|
};
|
|
164
334
|
}
|
|
165
335
|
function CryptographySystemImpl() {
|
|
166
336
|
var tmp = this;
|
|
167
337
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
168
|
-
tmp.
|
|
338
|
+
tmp.n7s_1 = LinkedHashMap_init_$Create$();
|
|
169
339
|
var tmp_0 = this;
|
|
170
|
-
tmp_0.
|
|
171
|
-
this.
|
|
340
|
+
tmp_0.o7s_1 = lazy(CryptographySystemImpl$lazyRegisteredProviders$lambda(this));
|
|
341
|
+
this.p7s_1 = null;
|
|
172
342
|
var tmp_1 = this;
|
|
173
|
-
tmp_1.
|
|
174
|
-
this.
|
|
343
|
+
tmp_1.q7s_1 = lazy(CryptographySystemImpl$lazyDefaultProvider$lambda(this));
|
|
344
|
+
this.r7s_1 = null;
|
|
175
345
|
var tmp_2 = this;
|
|
176
|
-
tmp_2.
|
|
346
|
+
tmp_2.s7s_1 = lazy(CryptographySystemImpl$lazyDefaultRandom$lambda(this));
|
|
177
347
|
}
|
|
178
|
-
protoOf(CryptographySystemImpl).
|
|
348
|
+
protoOf(CryptographySystemImpl).k7s = function () {
|
|
349
|
+
return this.q7s_1.n1();
|
|
350
|
+
};
|
|
351
|
+
protoOf(CryptographySystemImpl).t7s = function (provider, priority) {
|
|
179
352
|
// Inline function 'kotlin.require' call
|
|
180
353
|
if (!(priority >= 0)) {
|
|
181
354
|
var message = 'Priority must be greater or equal to 0';
|
|
@@ -183,29 +356,753 @@
|
|
|
183
356
|
}
|
|
184
357
|
// Inline function 'kotlin.collections.contains' call
|
|
185
358
|
// Inline function 'kotlin.collections.containsKey' call
|
|
186
|
-
var this_0 = this.
|
|
359
|
+
var this_0 = this.n7s_1;
|
|
187
360
|
// Inline function 'kotlin.require' call
|
|
188
|
-
if (!!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
361
|
+
if (!!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).b3(priority)) {
|
|
189
362
|
var message_0 = 'Provider with priority ' + priority + ' already registered. Every registered provider should have unique priority.';
|
|
190
363
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
191
364
|
}
|
|
192
365
|
// Inline function 'kotlin.check' call
|
|
193
|
-
if (!!this.
|
|
366
|
+
if (!!this.o7s_1.op()) {
|
|
194
367
|
var message_1 = 'Cannot register provider after `getRegisteredProviders` was called';
|
|
195
368
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
196
369
|
}
|
|
197
370
|
// Inline function 'kotlin.collections.set' call
|
|
198
|
-
this.
|
|
371
|
+
this.n7s_1.w2(priority, provider);
|
|
372
|
+
};
|
|
373
|
+
function Format() {
|
|
374
|
+
}
|
|
375
|
+
function Companion_0() {
|
|
376
|
+
Companion_instance_0 = this;
|
|
377
|
+
CryptographyAlgorithmId.call(this, 'AES-CBC');
|
|
378
|
+
}
|
|
379
|
+
var Companion_instance_0;
|
|
380
|
+
function Companion_getInstance_0() {
|
|
381
|
+
if (Companion_instance_0 == null)
|
|
382
|
+
new Companion_0();
|
|
383
|
+
return Companion_instance_0;
|
|
384
|
+
}
|
|
385
|
+
function Companion_1() {
|
|
386
|
+
Companion_instance_1 = this;
|
|
387
|
+
CryptographyAlgorithmId.call(this, 'AES-CTR');
|
|
388
|
+
}
|
|
389
|
+
var Companion_instance_1;
|
|
390
|
+
function Companion_getInstance_1() {
|
|
391
|
+
if (Companion_instance_1 == null)
|
|
392
|
+
new Companion_1();
|
|
393
|
+
return Companion_instance_1;
|
|
394
|
+
}
|
|
395
|
+
function Companion_2() {
|
|
396
|
+
Companion_instance_2 = this;
|
|
397
|
+
CryptographyAlgorithmId.call(this, 'AES-GCM');
|
|
398
|
+
}
|
|
399
|
+
var Companion_instance_2;
|
|
400
|
+
function Companion_getInstance_2() {
|
|
401
|
+
if (Companion_instance_2 == null)
|
|
402
|
+
new Companion_2();
|
|
403
|
+
return Companion_instance_2;
|
|
404
|
+
}
|
|
405
|
+
function SHA1() {
|
|
406
|
+
SHA1_instance = this;
|
|
407
|
+
CryptographyAlgorithmId.call(this, 'SHA-1');
|
|
408
|
+
}
|
|
409
|
+
var SHA1_instance;
|
|
410
|
+
function SHA1_getInstance() {
|
|
411
|
+
if (SHA1_instance == null)
|
|
412
|
+
new SHA1();
|
|
413
|
+
return SHA1_instance;
|
|
414
|
+
}
|
|
415
|
+
function SHA256() {
|
|
416
|
+
SHA256_instance = this;
|
|
417
|
+
CryptographyAlgorithmId.call(this, 'SHA-256');
|
|
418
|
+
}
|
|
419
|
+
var SHA256_instance;
|
|
420
|
+
function SHA256_getInstance() {
|
|
421
|
+
if (SHA256_instance == null)
|
|
422
|
+
new SHA256();
|
|
423
|
+
return SHA256_instance;
|
|
424
|
+
}
|
|
425
|
+
function SHA384() {
|
|
426
|
+
SHA384_instance = this;
|
|
427
|
+
CryptographyAlgorithmId.call(this, 'SHA-384');
|
|
428
|
+
}
|
|
429
|
+
var SHA384_instance;
|
|
430
|
+
function SHA384_getInstance() {
|
|
431
|
+
if (SHA384_instance == null)
|
|
432
|
+
new SHA384();
|
|
433
|
+
return SHA384_instance;
|
|
434
|
+
}
|
|
435
|
+
function SHA512() {
|
|
436
|
+
SHA512_instance = this;
|
|
437
|
+
CryptographyAlgorithmId.call(this, 'SHA-512');
|
|
438
|
+
}
|
|
439
|
+
var SHA512_instance;
|
|
440
|
+
function SHA512_getInstance() {
|
|
441
|
+
if (SHA512_instance == null)
|
|
442
|
+
new SHA512();
|
|
443
|
+
return SHA512_instance;
|
|
444
|
+
}
|
|
445
|
+
function _Curve___init__impl__ygix12(name) {
|
|
446
|
+
return name;
|
|
447
|
+
}
|
|
448
|
+
function _Curve___get_name__impl__klrusc($this) {
|
|
449
|
+
return $this;
|
|
450
|
+
}
|
|
451
|
+
function Companion_3() {
|
|
452
|
+
}
|
|
453
|
+
protoOf(Companion_3).w7s = function () {
|
|
454
|
+
return _Curve___init__impl__ygix12('P-256');
|
|
455
|
+
};
|
|
456
|
+
protoOf(Companion_3).x7s = function () {
|
|
457
|
+
return _Curve___init__impl__ygix12('P-384');
|
|
458
|
+
};
|
|
459
|
+
protoOf(Companion_3).y7s = function () {
|
|
460
|
+
return _Curve___init__impl__ygix12('P-521');
|
|
461
|
+
};
|
|
462
|
+
var Companion_instance_3;
|
|
463
|
+
function Companion_getInstance_3() {
|
|
464
|
+
return Companion_instance_3;
|
|
465
|
+
}
|
|
466
|
+
function Uncompressed() {
|
|
467
|
+
Uncompressed_instance = this;
|
|
468
|
+
RAW.call(this);
|
|
469
|
+
}
|
|
470
|
+
protoOf(Uncompressed).m = function () {
|
|
471
|
+
return 'RAW';
|
|
472
|
+
};
|
|
473
|
+
var Uncompressed_instance;
|
|
474
|
+
function Uncompressed_getInstance() {
|
|
475
|
+
if (Uncompressed_instance == null)
|
|
476
|
+
new Uncompressed();
|
|
477
|
+
return Uncompressed_instance;
|
|
478
|
+
}
|
|
479
|
+
function Compressed() {
|
|
480
|
+
Compressed_instance = this;
|
|
481
|
+
RAW.call(this);
|
|
482
|
+
}
|
|
483
|
+
protoOf(Compressed).m = function () {
|
|
484
|
+
return 'RAW/COMPRESSED';
|
|
485
|
+
};
|
|
486
|
+
protoOf(Compressed).hashCode = function () {
|
|
487
|
+
return -876424098;
|
|
488
|
+
};
|
|
489
|
+
protoOf(Compressed).equals = function (other) {
|
|
490
|
+
if (this === other)
|
|
491
|
+
return true;
|
|
492
|
+
if (!(other instanceof Compressed))
|
|
493
|
+
return false;
|
|
494
|
+
other instanceof Compressed || THROW_CCE();
|
|
495
|
+
return true;
|
|
496
|
+
};
|
|
497
|
+
var Compressed_instance;
|
|
498
|
+
function Compressed_getInstance() {
|
|
499
|
+
if (Compressed_instance == null)
|
|
500
|
+
new Compressed();
|
|
501
|
+
return Compressed_instance;
|
|
502
|
+
}
|
|
503
|
+
function JWK() {
|
|
504
|
+
JWK_instance = this;
|
|
505
|
+
Format_0.call(this);
|
|
506
|
+
}
|
|
507
|
+
protoOf(JWK).m = function () {
|
|
508
|
+
return 'JWK';
|
|
509
|
+
};
|
|
510
|
+
protoOf(JWK).hashCode = function () {
|
|
511
|
+
return -164862489;
|
|
512
|
+
};
|
|
513
|
+
protoOf(JWK).equals = function (other) {
|
|
514
|
+
if (this === other)
|
|
515
|
+
return true;
|
|
516
|
+
if (!(other instanceof JWK))
|
|
517
|
+
return false;
|
|
518
|
+
other instanceof JWK || THROW_CCE();
|
|
519
|
+
return true;
|
|
520
|
+
};
|
|
521
|
+
var JWK_instance;
|
|
522
|
+
function JWK_getInstance() {
|
|
523
|
+
if (JWK_instance == null)
|
|
524
|
+
new JWK();
|
|
525
|
+
return JWK_instance;
|
|
526
|
+
}
|
|
527
|
+
function RAW() {
|
|
528
|
+
Uncompressed_getInstance();
|
|
529
|
+
Format_0.call(this);
|
|
530
|
+
}
|
|
531
|
+
function DER() {
|
|
532
|
+
DER_instance = this;
|
|
533
|
+
Format_0.call(this);
|
|
534
|
+
}
|
|
535
|
+
protoOf(DER).m = function () {
|
|
536
|
+
return 'DER';
|
|
537
|
+
};
|
|
538
|
+
protoOf(DER).hashCode = function () {
|
|
539
|
+
return -164868806;
|
|
540
|
+
};
|
|
541
|
+
protoOf(DER).equals = function (other) {
|
|
542
|
+
if (this === other)
|
|
543
|
+
return true;
|
|
544
|
+
if (!(other instanceof DER))
|
|
545
|
+
return false;
|
|
546
|
+
other instanceof DER || THROW_CCE();
|
|
547
|
+
return true;
|
|
548
|
+
};
|
|
549
|
+
var DER_instance;
|
|
550
|
+
function DER_getInstance() {
|
|
551
|
+
if (DER_instance == null)
|
|
552
|
+
new DER();
|
|
553
|
+
return DER_instance;
|
|
554
|
+
}
|
|
555
|
+
function PEM() {
|
|
556
|
+
PEM_instance = this;
|
|
557
|
+
Format_0.call(this);
|
|
558
|
+
}
|
|
559
|
+
protoOf(PEM).m = function () {
|
|
560
|
+
return 'PEM';
|
|
199
561
|
};
|
|
562
|
+
protoOf(PEM).hashCode = function () {
|
|
563
|
+
return -164857279;
|
|
564
|
+
};
|
|
565
|
+
protoOf(PEM).equals = function (other) {
|
|
566
|
+
if (this === other)
|
|
567
|
+
return true;
|
|
568
|
+
if (!(other instanceof PEM))
|
|
569
|
+
return false;
|
|
570
|
+
other instanceof PEM || THROW_CCE();
|
|
571
|
+
return true;
|
|
572
|
+
};
|
|
573
|
+
var PEM_instance;
|
|
574
|
+
function PEM_getInstance() {
|
|
575
|
+
if (PEM_instance == null)
|
|
576
|
+
new PEM();
|
|
577
|
+
return PEM_instance;
|
|
578
|
+
}
|
|
579
|
+
function Format_0() {
|
|
580
|
+
}
|
|
581
|
+
protoOf(Format_0).toString = function () {
|
|
582
|
+
return this.m();
|
|
583
|
+
};
|
|
584
|
+
function Generic() {
|
|
585
|
+
Generic_instance = this;
|
|
586
|
+
DER_0.call(this);
|
|
587
|
+
}
|
|
588
|
+
protoOf(Generic).m = function () {
|
|
589
|
+
return 'DER';
|
|
590
|
+
};
|
|
591
|
+
var Generic_instance;
|
|
592
|
+
function Generic_getInstance() {
|
|
593
|
+
if (Generic_instance == null)
|
|
594
|
+
new Generic();
|
|
595
|
+
return Generic_instance;
|
|
596
|
+
}
|
|
597
|
+
function SEC1() {
|
|
598
|
+
SEC1_instance = this;
|
|
599
|
+
DER_0.call(this);
|
|
600
|
+
}
|
|
601
|
+
protoOf(SEC1).m = function () {
|
|
602
|
+
return 'DER/SEC1';
|
|
603
|
+
};
|
|
604
|
+
protoOf(SEC1).hashCode = function () {
|
|
605
|
+
return -137777718;
|
|
606
|
+
};
|
|
607
|
+
protoOf(SEC1).equals = function (other) {
|
|
608
|
+
if (this === other)
|
|
609
|
+
return true;
|
|
610
|
+
if (!(other instanceof SEC1))
|
|
611
|
+
return false;
|
|
612
|
+
other instanceof SEC1 || THROW_CCE();
|
|
613
|
+
return true;
|
|
614
|
+
};
|
|
615
|
+
var SEC1_instance;
|
|
616
|
+
function SEC1_getInstance() {
|
|
617
|
+
if (SEC1_instance == null)
|
|
618
|
+
new SEC1();
|
|
619
|
+
return SEC1_instance;
|
|
620
|
+
}
|
|
621
|
+
function Generic_0() {
|
|
622
|
+
Generic_instance_0 = this;
|
|
623
|
+
PEM_0.call(this);
|
|
624
|
+
}
|
|
625
|
+
protoOf(Generic_0).m = function () {
|
|
626
|
+
return 'PEM';
|
|
627
|
+
};
|
|
628
|
+
var Generic_instance_0;
|
|
629
|
+
function Generic_getInstance_0() {
|
|
630
|
+
if (Generic_instance_0 == null)
|
|
631
|
+
new Generic_0();
|
|
632
|
+
return Generic_instance_0;
|
|
633
|
+
}
|
|
634
|
+
function SEC1_0() {
|
|
635
|
+
SEC1_instance_0 = this;
|
|
636
|
+
PEM_0.call(this);
|
|
637
|
+
}
|
|
638
|
+
protoOf(SEC1_0).m = function () {
|
|
639
|
+
return 'PEM/SEC1';
|
|
640
|
+
};
|
|
641
|
+
protoOf(SEC1_0).hashCode = function () {
|
|
642
|
+
return -842035933;
|
|
643
|
+
};
|
|
644
|
+
protoOf(SEC1_0).equals = function (other) {
|
|
645
|
+
if (this === other)
|
|
646
|
+
return true;
|
|
647
|
+
if (!(other instanceof SEC1_0))
|
|
648
|
+
return false;
|
|
649
|
+
other instanceof SEC1_0 || THROW_CCE();
|
|
650
|
+
return true;
|
|
651
|
+
};
|
|
652
|
+
var SEC1_instance_0;
|
|
653
|
+
function SEC1_getInstance_0() {
|
|
654
|
+
if (SEC1_instance_0 == null)
|
|
655
|
+
new SEC1_0();
|
|
656
|
+
return SEC1_instance_0;
|
|
657
|
+
}
|
|
658
|
+
function JWK_0() {
|
|
659
|
+
JWK_instance_0 = this;
|
|
660
|
+
Format_1.call(this);
|
|
661
|
+
}
|
|
662
|
+
protoOf(JWK_0).m = function () {
|
|
663
|
+
return 'JWK';
|
|
664
|
+
};
|
|
665
|
+
protoOf(JWK_0).hashCode = function () {
|
|
666
|
+
return 1029262513;
|
|
667
|
+
};
|
|
668
|
+
protoOf(JWK_0).equals = function (other) {
|
|
669
|
+
if (this === other)
|
|
670
|
+
return true;
|
|
671
|
+
if (!(other instanceof JWK_0))
|
|
672
|
+
return false;
|
|
673
|
+
other instanceof JWK_0 || THROW_CCE();
|
|
674
|
+
return true;
|
|
675
|
+
};
|
|
676
|
+
var JWK_instance_0;
|
|
677
|
+
function JWK_getInstance_0() {
|
|
678
|
+
if (JWK_instance_0 == null)
|
|
679
|
+
new JWK_0();
|
|
680
|
+
return JWK_instance_0;
|
|
681
|
+
}
|
|
682
|
+
function RAW_0() {
|
|
683
|
+
RAW_instance = this;
|
|
684
|
+
Format_1.call(this);
|
|
685
|
+
}
|
|
686
|
+
protoOf(RAW_0).m = function () {
|
|
687
|
+
return 'RAW';
|
|
688
|
+
};
|
|
689
|
+
protoOf(RAW_0).hashCode = function () {
|
|
690
|
+
return 1029269531;
|
|
691
|
+
};
|
|
692
|
+
protoOf(RAW_0).equals = function (other) {
|
|
693
|
+
if (this === other)
|
|
694
|
+
return true;
|
|
695
|
+
if (!(other instanceof RAW_0))
|
|
696
|
+
return false;
|
|
697
|
+
other instanceof RAW_0 || THROW_CCE();
|
|
698
|
+
return true;
|
|
699
|
+
};
|
|
700
|
+
var RAW_instance;
|
|
701
|
+
function RAW_getInstance() {
|
|
702
|
+
if (RAW_instance == null)
|
|
703
|
+
new RAW_0();
|
|
704
|
+
return RAW_instance;
|
|
705
|
+
}
|
|
706
|
+
function DER_0() {
|
|
707
|
+
Generic_getInstance();
|
|
708
|
+
Format_1.call(this);
|
|
709
|
+
}
|
|
710
|
+
function PEM_0() {
|
|
711
|
+
Generic_getInstance_0();
|
|
712
|
+
Format_1.call(this);
|
|
713
|
+
}
|
|
714
|
+
function Format_1() {
|
|
715
|
+
}
|
|
716
|
+
protoOf(Format_1).toString = function () {
|
|
717
|
+
return this.m();
|
|
718
|
+
};
|
|
719
|
+
function Companion_4() {
|
|
720
|
+
Companion_instance_4 = this;
|
|
721
|
+
CryptographyAlgorithmId.call(this, 'ECDH');
|
|
722
|
+
}
|
|
723
|
+
var Companion_instance_4;
|
|
724
|
+
function Companion_getInstance_4() {
|
|
725
|
+
if (Companion_instance_4 == null)
|
|
726
|
+
new Companion_4();
|
|
727
|
+
return Companion_instance_4;
|
|
728
|
+
}
|
|
729
|
+
function Companion_5() {
|
|
730
|
+
Companion_instance_5 = this;
|
|
731
|
+
CryptographyAlgorithmId.call(this, 'ECDSA');
|
|
732
|
+
}
|
|
733
|
+
var Companion_instance_5;
|
|
734
|
+
function Companion_getInstance_5() {
|
|
735
|
+
if (Companion_instance_5 == null)
|
|
736
|
+
new Companion_5();
|
|
737
|
+
return Companion_instance_5;
|
|
738
|
+
}
|
|
739
|
+
function Companion_6() {
|
|
740
|
+
Companion_instance_6 = this;
|
|
741
|
+
CryptographyAlgorithmId.call(this, 'HKDF');
|
|
742
|
+
}
|
|
743
|
+
var Companion_instance_6;
|
|
744
|
+
function Companion_getInstance_6() {
|
|
745
|
+
if (Companion_instance_6 == null)
|
|
746
|
+
new Companion_6();
|
|
747
|
+
return Companion_instance_6;
|
|
748
|
+
}
|
|
749
|
+
var Format_RAW_instance;
|
|
750
|
+
var Format_JWK_instance;
|
|
751
|
+
var Format_entriesInitialized;
|
|
752
|
+
function Format_initEntries() {
|
|
753
|
+
if (Format_entriesInitialized)
|
|
754
|
+
return Unit_instance;
|
|
755
|
+
Format_entriesInitialized = true;
|
|
756
|
+
Format_RAW_instance = new Format_2('RAW', 0);
|
|
757
|
+
Format_JWK_instance = new Format_2('JWK', 1);
|
|
758
|
+
}
|
|
759
|
+
function Format_2(name, ordinal) {
|
|
760
|
+
Enum.call(this, name, ordinal);
|
|
761
|
+
}
|
|
762
|
+
function Format_RAW_getInstance() {
|
|
763
|
+
Format_initEntries();
|
|
764
|
+
return Format_RAW_instance;
|
|
765
|
+
}
|
|
766
|
+
function Companion_7() {
|
|
767
|
+
Companion_instance_7 = this;
|
|
768
|
+
CryptographyAlgorithmId.call(this, 'HMAC');
|
|
769
|
+
}
|
|
770
|
+
var Companion_instance_7;
|
|
771
|
+
function Companion_getInstance_7() {
|
|
772
|
+
if (Companion_instance_7 == null)
|
|
773
|
+
new Companion_7();
|
|
774
|
+
return Companion_instance_7;
|
|
775
|
+
}
|
|
776
|
+
function Companion_8() {
|
|
777
|
+
Companion_instance_8 = this;
|
|
778
|
+
CryptographyAlgorithmId.call(this, 'PBKDF2');
|
|
779
|
+
}
|
|
780
|
+
var Companion_instance_8;
|
|
781
|
+
function Companion_getInstance_8() {
|
|
782
|
+
if (Companion_instance_8 == null)
|
|
783
|
+
new Companion_8();
|
|
784
|
+
return Companion_instance_8;
|
|
785
|
+
}
|
|
786
|
+
function Generic_1() {
|
|
787
|
+
Generic_instance_1 = this;
|
|
788
|
+
DER_1.call(this);
|
|
789
|
+
}
|
|
790
|
+
protoOf(Generic_1).m = function () {
|
|
791
|
+
return 'DER';
|
|
792
|
+
};
|
|
793
|
+
var Generic_instance_1;
|
|
794
|
+
function Generic_getInstance_1() {
|
|
795
|
+
if (Generic_instance_1 == null)
|
|
796
|
+
new Generic_1();
|
|
797
|
+
return Generic_instance_1;
|
|
798
|
+
}
|
|
799
|
+
function PKCS1() {
|
|
800
|
+
PKCS1_instance = this;
|
|
801
|
+
DER_1.call(this);
|
|
802
|
+
}
|
|
803
|
+
protoOf(PKCS1).m = function () {
|
|
804
|
+
return 'DER/PKCS#1';
|
|
805
|
+
};
|
|
806
|
+
protoOf(PKCS1).hashCode = function () {
|
|
807
|
+
return 1950278528;
|
|
808
|
+
};
|
|
809
|
+
protoOf(PKCS1).equals = function (other) {
|
|
810
|
+
if (this === other)
|
|
811
|
+
return true;
|
|
812
|
+
if (!(other instanceof PKCS1))
|
|
813
|
+
return false;
|
|
814
|
+
other instanceof PKCS1 || THROW_CCE();
|
|
815
|
+
return true;
|
|
816
|
+
};
|
|
817
|
+
var PKCS1_instance;
|
|
818
|
+
function PKCS1_getInstance() {
|
|
819
|
+
if (PKCS1_instance == null)
|
|
820
|
+
new PKCS1();
|
|
821
|
+
return PKCS1_instance;
|
|
822
|
+
}
|
|
823
|
+
function Generic_2() {
|
|
824
|
+
Generic_instance_2 = this;
|
|
825
|
+
PEM_1.call(this);
|
|
826
|
+
}
|
|
827
|
+
protoOf(Generic_2).m = function () {
|
|
828
|
+
return 'PEM';
|
|
829
|
+
};
|
|
830
|
+
var Generic_instance_2;
|
|
831
|
+
function Generic_getInstance_2() {
|
|
832
|
+
if (Generic_instance_2 == null)
|
|
833
|
+
new Generic_2();
|
|
834
|
+
return Generic_instance_2;
|
|
835
|
+
}
|
|
836
|
+
function PKCS1_0() {
|
|
837
|
+
PKCS1_instance_0 = this;
|
|
838
|
+
PEM_1.call(this);
|
|
839
|
+
}
|
|
840
|
+
protoOf(PKCS1_0).m = function () {
|
|
841
|
+
return 'PEM/PKCS#1';
|
|
842
|
+
};
|
|
843
|
+
protoOf(PKCS1_0).hashCode = function () {
|
|
844
|
+
return 1593110343;
|
|
845
|
+
};
|
|
846
|
+
protoOf(PKCS1_0).equals = function (other) {
|
|
847
|
+
if (this === other)
|
|
848
|
+
return true;
|
|
849
|
+
if (!(other instanceof PKCS1_0))
|
|
850
|
+
return false;
|
|
851
|
+
other instanceof PKCS1_0 || THROW_CCE();
|
|
852
|
+
return true;
|
|
853
|
+
};
|
|
854
|
+
var PKCS1_instance_0;
|
|
855
|
+
function PKCS1_getInstance_0() {
|
|
856
|
+
if (PKCS1_instance_0 == null)
|
|
857
|
+
new PKCS1_0();
|
|
858
|
+
return PKCS1_instance_0;
|
|
859
|
+
}
|
|
860
|
+
function JWK_1() {
|
|
861
|
+
JWK_instance_1 = this;
|
|
862
|
+
Format_3.call(this);
|
|
863
|
+
}
|
|
864
|
+
protoOf(JWK_1).m = function () {
|
|
865
|
+
return 'JWK';
|
|
866
|
+
};
|
|
867
|
+
protoOf(JWK_1).hashCode = function () {
|
|
868
|
+
return -1819476043;
|
|
869
|
+
};
|
|
870
|
+
protoOf(JWK_1).equals = function (other) {
|
|
871
|
+
if (this === other)
|
|
872
|
+
return true;
|
|
873
|
+
if (!(other instanceof JWK_1))
|
|
874
|
+
return false;
|
|
875
|
+
other instanceof JWK_1 || THROW_CCE();
|
|
876
|
+
return true;
|
|
877
|
+
};
|
|
878
|
+
var JWK_instance_1;
|
|
879
|
+
function JWK_getInstance_1() {
|
|
880
|
+
if (JWK_instance_1 == null)
|
|
881
|
+
new JWK_1();
|
|
882
|
+
return JWK_instance_1;
|
|
883
|
+
}
|
|
884
|
+
function DER_1() {
|
|
885
|
+
Generic_getInstance_1();
|
|
886
|
+
Format_3.call(this);
|
|
887
|
+
}
|
|
888
|
+
function PEM_1() {
|
|
889
|
+
Generic_getInstance_2();
|
|
890
|
+
Format_3.call(this);
|
|
891
|
+
}
|
|
892
|
+
function Format_3() {
|
|
893
|
+
}
|
|
894
|
+
protoOf(Format_3).toString = function () {
|
|
895
|
+
return this.m();
|
|
896
|
+
};
|
|
897
|
+
function Generic_3() {
|
|
898
|
+
Generic_instance_3 = this;
|
|
899
|
+
DER_2.call(this);
|
|
900
|
+
}
|
|
901
|
+
protoOf(Generic_3).m = function () {
|
|
902
|
+
return 'DER';
|
|
903
|
+
};
|
|
904
|
+
var Generic_instance_3;
|
|
905
|
+
function Generic_getInstance_3() {
|
|
906
|
+
if (Generic_instance_3 == null)
|
|
907
|
+
new Generic_3();
|
|
908
|
+
return Generic_instance_3;
|
|
909
|
+
}
|
|
910
|
+
function PKCS1_1() {
|
|
911
|
+
PKCS1_instance_1 = this;
|
|
912
|
+
DER_2.call(this);
|
|
913
|
+
}
|
|
914
|
+
protoOf(PKCS1_1).m = function () {
|
|
915
|
+
return 'DER/PKCS#1';
|
|
916
|
+
};
|
|
917
|
+
protoOf(PKCS1_1).hashCode = function () {
|
|
918
|
+
return -1024989714;
|
|
919
|
+
};
|
|
920
|
+
protoOf(PKCS1_1).equals = function (other) {
|
|
921
|
+
if (this === other)
|
|
922
|
+
return true;
|
|
923
|
+
if (!(other instanceof PKCS1_1))
|
|
924
|
+
return false;
|
|
925
|
+
other instanceof PKCS1_1 || THROW_CCE();
|
|
926
|
+
return true;
|
|
927
|
+
};
|
|
928
|
+
var PKCS1_instance_1;
|
|
929
|
+
function PKCS1_getInstance_1() {
|
|
930
|
+
if (PKCS1_instance_1 == null)
|
|
931
|
+
new PKCS1_1();
|
|
932
|
+
return PKCS1_instance_1;
|
|
933
|
+
}
|
|
934
|
+
function Generic_4() {
|
|
935
|
+
Generic_instance_4 = this;
|
|
936
|
+
PEM_2.call(this);
|
|
937
|
+
}
|
|
938
|
+
protoOf(Generic_4).m = function () {
|
|
939
|
+
return 'PEM';
|
|
940
|
+
};
|
|
941
|
+
var Generic_instance_4;
|
|
942
|
+
function Generic_getInstance_4() {
|
|
943
|
+
if (Generic_instance_4 == null)
|
|
944
|
+
new Generic_4();
|
|
945
|
+
return Generic_instance_4;
|
|
946
|
+
}
|
|
947
|
+
function PKCS1_2() {
|
|
948
|
+
PKCS1_instance_2 = this;
|
|
949
|
+
PEM_2.call(this);
|
|
950
|
+
}
|
|
951
|
+
protoOf(PKCS1_2).m = function () {
|
|
952
|
+
return 'PEM/PKCS#1';
|
|
953
|
+
};
|
|
954
|
+
protoOf(PKCS1_2).hashCode = function () {
|
|
955
|
+
return -1382157899;
|
|
956
|
+
};
|
|
957
|
+
protoOf(PKCS1_2).equals = function (other) {
|
|
958
|
+
if (this === other)
|
|
959
|
+
return true;
|
|
960
|
+
if (!(other instanceof PKCS1_2))
|
|
961
|
+
return false;
|
|
962
|
+
other instanceof PKCS1_2 || THROW_CCE();
|
|
963
|
+
return true;
|
|
964
|
+
};
|
|
965
|
+
var PKCS1_instance_2;
|
|
966
|
+
function PKCS1_getInstance_2() {
|
|
967
|
+
if (PKCS1_instance_2 == null)
|
|
968
|
+
new PKCS1_2();
|
|
969
|
+
return PKCS1_instance_2;
|
|
970
|
+
}
|
|
971
|
+
function JWK_2() {
|
|
972
|
+
JWK_instance_2 = this;
|
|
973
|
+
Format_4.call(this);
|
|
974
|
+
}
|
|
975
|
+
protoOf(JWK_2).m = function () {
|
|
976
|
+
return 'JWK';
|
|
977
|
+
};
|
|
978
|
+
protoOf(JWK_2).hashCode = function () {
|
|
979
|
+
return 1275849891;
|
|
980
|
+
};
|
|
981
|
+
protoOf(JWK_2).equals = function (other) {
|
|
982
|
+
if (this === other)
|
|
983
|
+
return true;
|
|
984
|
+
if (!(other instanceof JWK_2))
|
|
985
|
+
return false;
|
|
986
|
+
other instanceof JWK_2 || THROW_CCE();
|
|
987
|
+
return true;
|
|
988
|
+
};
|
|
989
|
+
var JWK_instance_2;
|
|
990
|
+
function JWK_getInstance_2() {
|
|
991
|
+
if (JWK_instance_2 == null)
|
|
992
|
+
new JWK_2();
|
|
993
|
+
return JWK_instance_2;
|
|
994
|
+
}
|
|
995
|
+
function DER_2() {
|
|
996
|
+
Generic_getInstance_3();
|
|
997
|
+
Format_4.call(this);
|
|
998
|
+
}
|
|
999
|
+
function PEM_2() {
|
|
1000
|
+
Generic_getInstance_4();
|
|
1001
|
+
Format_4.call(this);
|
|
1002
|
+
}
|
|
1003
|
+
function Format_4() {
|
|
1004
|
+
}
|
|
1005
|
+
protoOf(Format_4).toString = function () {
|
|
1006
|
+
return this.m();
|
|
1007
|
+
};
|
|
1008
|
+
function Companion_9() {
|
|
1009
|
+
Companion_instance_9 = this;
|
|
1010
|
+
CryptographyAlgorithmId.call(this, 'RSA-OAEP');
|
|
1011
|
+
}
|
|
1012
|
+
var Companion_instance_9;
|
|
1013
|
+
function Companion_getInstance_9() {
|
|
1014
|
+
if (Companion_instance_9 == null)
|
|
1015
|
+
new Companion_9();
|
|
1016
|
+
return Companion_instance_9;
|
|
1017
|
+
}
|
|
1018
|
+
function Companion_10() {
|
|
1019
|
+
Companion_instance_10 = this;
|
|
1020
|
+
CryptographyAlgorithmId.call(this, 'RSA-PSS');
|
|
1021
|
+
}
|
|
1022
|
+
var Companion_instance_10;
|
|
1023
|
+
function Companion_getInstance_10() {
|
|
1024
|
+
if (Companion_instance_10 == null)
|
|
1025
|
+
new Companion_10();
|
|
1026
|
+
return Companion_instance_10;
|
|
1027
|
+
}
|
|
1028
|
+
function Companion_11() {
|
|
1029
|
+
Companion_instance_11 = this;
|
|
1030
|
+
CryptographyAlgorithmId.call(this, 'RSA-PKCS1-V1.5');
|
|
1031
|
+
}
|
|
1032
|
+
var Companion_instance_11;
|
|
1033
|
+
function Companion_getInstance_11() {
|
|
1034
|
+
if (Companion_instance_11 == null)
|
|
1035
|
+
new Companion_11();
|
|
1036
|
+
return Companion_instance_11;
|
|
1037
|
+
}
|
|
1038
|
+
function KeyDecoder() {
|
|
1039
|
+
}
|
|
1040
|
+
function Hasher() {
|
|
1041
|
+
}
|
|
1042
|
+
function SignatureGenerator() {
|
|
1043
|
+
}
|
|
1044
|
+
function UpdateFunction() {
|
|
1045
|
+
}
|
|
200
1046
|
function loadProviders(_this__u8e3s4) {
|
|
201
1047
|
}
|
|
202
1048
|
//region block: init
|
|
203
1049
|
Companion_instance = new Companion();
|
|
1050
|
+
Companion_instance_3 = new Companion_3();
|
|
204
1051
|
//endregion
|
|
205
1052
|
//region block: exports
|
|
206
1053
|
_.$_$ = _.$_$ || {};
|
|
207
|
-
_.$_$.a =
|
|
208
|
-
_.$_$.b =
|
|
1054
|
+
_.$_$.a = Format;
|
|
1055
|
+
_.$_$.b = Format_1;
|
|
1056
|
+
_.$_$.c = Format_0;
|
|
1057
|
+
_.$_$.d = Format_2;
|
|
1058
|
+
_.$_$.e = Format_4;
|
|
1059
|
+
_.$_$.f = Format_3;
|
|
1060
|
+
_.$_$.g = KeyDecoder;
|
|
1061
|
+
_.$_$.h = Hasher;
|
|
1062
|
+
_.$_$.i = SignatureGenerator;
|
|
1063
|
+
_.$_$.j = CryptographyAlgorithm;
|
|
1064
|
+
_.$_$.k = CryptographyProvider;
|
|
1065
|
+
_.$_$.l = Format_RAW_getInstance;
|
|
1066
|
+
_.$_$.m = _Curve___get_name__impl__klrusc;
|
|
1067
|
+
_.$_$.n = Companion_getInstance_0;
|
|
1068
|
+
_.$_$.o = Companion_getInstance_1;
|
|
1069
|
+
_.$_$.p = Companion_getInstance_2;
|
|
1070
|
+
_.$_$.q = Companion_instance_3;
|
|
1071
|
+
_.$_$.r = Generic_getInstance;
|
|
1072
|
+
_.$_$.s = SEC1_getInstance;
|
|
1073
|
+
_.$_$.t = JWK_getInstance_0;
|
|
1074
|
+
_.$_$.u = Generic_getInstance_0;
|
|
1075
|
+
_.$_$.v = SEC1_getInstance_0;
|
|
1076
|
+
_.$_$.w = RAW_getInstance;
|
|
1077
|
+
_.$_$.x = DER_getInstance;
|
|
1078
|
+
_.$_$.y = JWK_getInstance;
|
|
1079
|
+
_.$_$.z = PEM_getInstance;
|
|
1080
|
+
_.$_$.a1 = Compressed_getInstance;
|
|
1081
|
+
_.$_$.b1 = Uncompressed_getInstance;
|
|
1082
|
+
_.$_$.c1 = Companion_getInstance_4;
|
|
1083
|
+
_.$_$.d1 = Companion_getInstance_5;
|
|
1084
|
+
_.$_$.e1 = Companion_getInstance_6;
|
|
1085
|
+
_.$_$.f1 = Companion_getInstance_7;
|
|
1086
|
+
_.$_$.g1 = Companion_getInstance_8;
|
|
1087
|
+
_.$_$.h1 = Companion_getInstance_9;
|
|
1088
|
+
_.$_$.i1 = Companion_getInstance_11;
|
|
1089
|
+
_.$_$.j1 = Companion_getInstance_10;
|
|
1090
|
+
_.$_$.k1 = Generic_getInstance_3;
|
|
1091
|
+
_.$_$.l1 = PKCS1_getInstance_1;
|
|
1092
|
+
_.$_$.m1 = JWK_getInstance_2;
|
|
1093
|
+
_.$_$.n1 = Generic_getInstance_4;
|
|
1094
|
+
_.$_$.o1 = PKCS1_getInstance_2;
|
|
1095
|
+
_.$_$.p1 = Generic_getInstance_1;
|
|
1096
|
+
_.$_$.q1 = PKCS1_getInstance;
|
|
1097
|
+
_.$_$.r1 = JWK_getInstance_1;
|
|
1098
|
+
_.$_$.s1 = Generic_getInstance_2;
|
|
1099
|
+
_.$_$.t1 = PKCS1_getInstance_0;
|
|
1100
|
+
_.$_$.u1 = SHA1_getInstance;
|
|
1101
|
+
_.$_$.v1 = SHA256_getInstance;
|
|
1102
|
+
_.$_$.w1 = SHA384_getInstance;
|
|
1103
|
+
_.$_$.x1 = SHA512_getInstance;
|
|
1104
|
+
_.$_$.y1 = Companion_instance;
|
|
1105
|
+
_.$_$.z1 = CryptographySystem_getInstance;
|
|
209
1106
|
//endregion
|
|
210
1107
|
return _;
|
|
211
1108
|
}));
|