@solibo/solibo-sdk 1.0.35 → 1.0.36
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 +99 -99
- package/KotlinBigInteger-bignum.js +1114 -1114
- package/MultiplatformSettings-multiplatform-settings.js +16 -16
- package/Stately-stately-concurrency.js +4 -4
- package/cryptography-kotlin-cryptography-bigint.js +27 -27
- package/cryptography-kotlin-cryptography-core.js +47 -47
- package/cryptography-kotlin-cryptography-provider-base.js +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +135 -135
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.js +240 -240
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -15
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/kotlin-kotlin-stdlib.js +16 -16
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/ktor-ktor-client-auth.js +224 -224
- package/ktor-ktor-client-logging.js +516 -516
- package/ktor-ktor-websockets.js +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +24544 -22917
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +89 -3
- package/solibo-sdk-sdk.js +1365 -1365
|
@@ -47,38 +47,38 @@
|
|
|
47
47
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
48
48
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
49
49
|
if (!(array.length === 0)) {
|
|
50
|
-
this.
|
|
50
|
+
this.no2(array);
|
|
51
51
|
}
|
|
52
52
|
return array;
|
|
53
53
|
};
|
|
54
54
|
function Default() {
|
|
55
55
|
Default_instance = this;
|
|
56
56
|
CryptographyRandom.call(this);
|
|
57
|
-
this.
|
|
57
|
+
this.oo2_1 = defaultCryptographyRandom();
|
|
58
58
|
}
|
|
59
59
|
protoOf(Default).il = function (bitCount) {
|
|
60
|
-
return this.
|
|
60
|
+
return this.oo2_1.il(bitCount);
|
|
61
61
|
};
|
|
62
62
|
protoOf(Default).zg = function () {
|
|
63
|
-
return this.
|
|
63
|
+
return this.oo2_1.zg();
|
|
64
64
|
};
|
|
65
65
|
protoOf(Default).jl = function () {
|
|
66
|
-
return this.
|
|
66
|
+
return this.oo2_1.jl();
|
|
67
67
|
};
|
|
68
68
|
protoOf(Default).kl = function (until) {
|
|
69
|
-
return this.
|
|
69
|
+
return this.oo2_1.kl(until);
|
|
70
70
|
};
|
|
71
71
|
protoOf(Default).ll = function (from, until) {
|
|
72
|
-
return this.
|
|
72
|
+
return this.oo2_1.ll(from, until);
|
|
73
73
|
};
|
|
74
74
|
protoOf(Default).ml = function (array) {
|
|
75
|
-
return this.
|
|
75
|
+
return this.oo2_1.ml(array);
|
|
76
76
|
};
|
|
77
77
|
protoOf(Default).ol = function (size) {
|
|
78
|
-
return this.
|
|
78
|
+
return this.oo2_1.ol(size);
|
|
79
79
|
};
|
|
80
80
|
protoOf(Default).nl = function (array, fromIndex, toIndex) {
|
|
81
|
-
return this.
|
|
81
|
+
return this.oo2_1.nl(array, fromIndex, toIndex);
|
|
82
82
|
};
|
|
83
83
|
var Default_instance;
|
|
84
84
|
function Default_getInstance() {
|
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
function fillBytes($this, jsArray) {
|
|
97
97
|
var size = jsArray.length;
|
|
98
98
|
if (size <= 65536) {
|
|
99
|
-
$this.
|
|
99
|
+
$this.qo2_1.getRandomValues(jsArray);
|
|
100
100
|
} else {
|
|
101
101
|
var filled = 0;
|
|
102
102
|
do {
|
|
103
103
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
104
104
|
var b = size - filled | 0;
|
|
105
105
|
var chunkSize = Math.min(65536, b);
|
|
106
|
-
$this.
|
|
106
|
+
$this.qo2_1.getRandomValues(jsArray.subarray(filled, filled + chunkSize | 0));
|
|
107
107
|
filled = filled + chunkSize | 0;
|
|
108
108
|
}
|
|
109
109
|
while (filled < size);
|
|
@@ -112,10 +112,10 @@
|
|
|
112
112
|
function WebCryptoCryptographyRandom() {
|
|
113
113
|
WebCryptoCryptographyRandom_instance = this;
|
|
114
114
|
AbstractRandom.call(this);
|
|
115
|
-
this.
|
|
116
|
-
this.
|
|
115
|
+
this.po2_1 = 65536;
|
|
116
|
+
this.qo2_1 = getCrypto();
|
|
117
117
|
}
|
|
118
|
-
protoOf(WebCryptoCryptographyRandom).
|
|
118
|
+
protoOf(WebCryptoCryptographyRandom).no2 = function (array) {
|
|
119
119
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
120
120
|
// Inline function 'kotlin.js.asDynamic' call
|
|
121
121
|
fillBytes(this, array);
|
|
@@ -88,45 +88,45 @@
|
|
|
88
88
|
function AlgorithmIdentifierSerializer() {
|
|
89
89
|
var tmp = this;
|
|
90
90
|
var tmp_0 = OPEN_getInstance();
|
|
91
|
-
tmp.
|
|
91
|
+
tmp.eo6_1 = buildSerialDescriptor('AlgorithmIdentifier', tmp_0, [], AlgorithmIdentifierSerializer$descriptor$lambda);
|
|
92
92
|
}
|
|
93
|
-
protoOf(AlgorithmIdentifierSerializer).
|
|
94
|
-
_this__u8e3s4.wx(this.
|
|
93
|
+
protoOf(AlgorithmIdentifierSerializer).ho6 = function (_this__u8e3s4, serializer, value) {
|
|
94
|
+
_this__u8e3s4.wx(this.eo6_1, 1, serializer, value);
|
|
95
95
|
};
|
|
96
|
-
protoOf(AlgorithmIdentifierSerializer).
|
|
97
|
-
return _this__u8e3s4.tw(this.
|
|
96
|
+
protoOf(AlgorithmIdentifierSerializer).io6 = function (_this__u8e3s4, serializer) {
|
|
97
|
+
return _this__u8e3s4.tw(this.eo6_1, 1, serializer);
|
|
98
98
|
};
|
|
99
99
|
protoOf(AlgorithmIdentifierSerializer).ps = function () {
|
|
100
|
-
return this.
|
|
100
|
+
return this.eo6_1;
|
|
101
101
|
};
|
|
102
|
-
protoOf(AlgorithmIdentifierSerializer).
|
|
102
|
+
protoOf(AlgorithmIdentifierSerializer).jo6 = function (encoder, value) {
|
|
103
103
|
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
104
|
-
var descriptor = this.
|
|
104
|
+
var descriptor = this.eo6_1;
|
|
105
105
|
var composite = encoder.ew(descriptor);
|
|
106
|
-
composite.vx(this.
|
|
107
|
-
this.
|
|
106
|
+
composite.vx(this.eo6_1, 0, Companion_instance.g63(), new ObjectIdentifier(value.do6()));
|
|
107
|
+
this.fo6(composite, value);
|
|
108
108
|
composite.fw(descriptor);
|
|
109
109
|
return Unit_instance;
|
|
110
110
|
};
|
|
111
111
|
protoOf(AlgorithmIdentifierSerializer).ct = function (encoder, value) {
|
|
112
|
-
return this.
|
|
112
|
+
return this.jo6(encoder, (!(value == null) ? isInterface(value, AlgorithmIdentifier) : false) ? value : THROW_CCE());
|
|
113
113
|
};
|
|
114
114
|
protoOf(AlgorithmIdentifierSerializer).dt = function (decoder) {
|
|
115
115
|
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
116
|
-
var descriptor = this.
|
|
116
|
+
var descriptor = this.eo6_1;
|
|
117
117
|
var composite = decoder.ew(descriptor);
|
|
118
118
|
// Inline function 'kotlin.check' call
|
|
119
|
-
if (!(composite.vw(this.
|
|
119
|
+
if (!(composite.vw(this.eo6_1) === 0)) {
|
|
120
120
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
121
121
|
}
|
|
122
|
-
var algorithm = composite.rw(this.
|
|
122
|
+
var algorithm = composite.rw(this.eo6_1, 0, Companion_instance.g63()).zo4_1;
|
|
123
123
|
// Inline function 'kotlin.check' call
|
|
124
|
-
if (!(composite.vw(this.
|
|
124
|
+
if (!(composite.vw(this.eo6_1) === 1)) {
|
|
125
125
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
126
126
|
}
|
|
127
|
-
var parameters = this.
|
|
127
|
+
var parameters = this.go6(composite, algorithm);
|
|
128
128
|
// Inline function 'kotlin.check' call
|
|
129
|
-
if (!(composite.vw(this.
|
|
129
|
+
if (!(composite.vw(this.eo6_1) === -1)) {
|
|
130
130
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
131
131
|
}
|
|
132
132
|
var result = parameters;
|
|
@@ -143,9 +143,9 @@
|
|
|
143
143
|
return _ObjectIdentifier___init__impl__7hutfr('1.3.132.0.35');
|
|
144
144
|
}
|
|
145
145
|
function EcKeyAlgorithmIdentifier(parameters) {
|
|
146
|
-
this.
|
|
146
|
+
this.ko6_1 = parameters;
|
|
147
147
|
}
|
|
148
|
-
protoOf(EcKeyAlgorithmIdentifier).
|
|
148
|
+
protoOf(EcKeyAlgorithmIdentifier).do6 = function () {
|
|
149
149
|
return get_EC(Companion_instance);
|
|
150
150
|
};
|
|
151
151
|
function _EcParameters___init__impl__i4ww9z(namedCurve) {
|
|
@@ -167,10 +167,10 @@
|
|
|
167
167
|
$serializer_instance = this;
|
|
168
168
|
var tmp0_serialDesc = new InlineClassDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.EcParameters', this);
|
|
169
169
|
tmp0_serialDesc.r13('namedCurve', false);
|
|
170
|
-
this.
|
|
170
|
+
this.lo6_1 = tmp0_serialDesc;
|
|
171
171
|
}
|
|
172
|
-
protoOf($serializer).
|
|
173
|
-
var tmp0_inlineEncoder = encoder.kx(this.
|
|
172
|
+
protoOf($serializer).mo6 = function (encoder, value) {
|
|
173
|
+
var tmp0_inlineEncoder = encoder.kx(this.lo6_1);
|
|
174
174
|
if (tmp0_inlineEncoder == null)
|
|
175
175
|
null;
|
|
176
176
|
else {
|
|
@@ -178,16 +178,16 @@
|
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
protoOf($serializer).ct = function (encoder, value) {
|
|
181
|
-
return this.
|
|
181
|
+
return this.mo6(encoder, value instanceof EcParameters ? value.no6_1 : THROW_CCE());
|
|
182
182
|
};
|
|
183
|
-
protoOf($serializer).
|
|
184
|
-
return _EcParameters___init__impl__i4ww9z(decoder.cw(this.
|
|
183
|
+
protoOf($serializer).oo6 = function (decoder) {
|
|
184
|
+
return _EcParameters___init__impl__i4ww9z(decoder.cw(this.lo6_1).et($serializer_getInstance()).zo4_1);
|
|
185
185
|
};
|
|
186
186
|
protoOf($serializer).dt = function (decoder) {
|
|
187
|
-
return new EcParameters(this.
|
|
187
|
+
return new EcParameters(this.oo6(decoder));
|
|
188
188
|
};
|
|
189
189
|
protoOf($serializer).ps = function () {
|
|
190
|
-
return this.
|
|
190
|
+
return this.lo6_1;
|
|
191
191
|
};
|
|
192
192
|
protoOf($serializer).k14 = function () {
|
|
193
193
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -210,21 +210,21 @@
|
|
|
210
210
|
function EcParameters__equals_impl_5tm4e2($this, other) {
|
|
211
211
|
if (!(other instanceof EcParameters))
|
|
212
212
|
return false;
|
|
213
|
-
if (!($this === (other instanceof EcParameters ? other.
|
|
213
|
+
if (!($this === (other instanceof EcParameters ? other.no6_1 : THROW_CCE())))
|
|
214
214
|
return false;
|
|
215
215
|
return true;
|
|
216
216
|
}
|
|
217
217
|
function EcParameters(namedCurve) {
|
|
218
|
-
this.
|
|
218
|
+
this.no6_1 = namedCurve;
|
|
219
219
|
}
|
|
220
220
|
protoOf(EcParameters).toString = function () {
|
|
221
|
-
return EcParameters__toString_impl_mgxjuh(this.
|
|
221
|
+
return EcParameters__toString_impl_mgxjuh(this.no6_1);
|
|
222
222
|
};
|
|
223
223
|
protoOf(EcParameters).hashCode = function () {
|
|
224
|
-
return EcParameters__hashCode_impl_prn1m(this.
|
|
224
|
+
return EcParameters__hashCode_impl_prn1m(this.no6_1);
|
|
225
225
|
};
|
|
226
226
|
protoOf(EcParameters).equals = function (other) {
|
|
227
|
-
return EcParameters__equals_impl_5tm4e2(this.
|
|
227
|
+
return EcParameters__equals_impl_5tm4e2(this.no6_1, other);
|
|
228
228
|
};
|
|
229
229
|
function Companion_0() {
|
|
230
230
|
}
|
|
@@ -244,35 +244,35 @@
|
|
|
244
244
|
tmp0_serialDesc.b13(new ContextSpecificTag(0, TagType_EXPLICIT_getInstance()));
|
|
245
245
|
tmp0_serialDesc.r13('publicKey', true);
|
|
246
246
|
tmp0_serialDesc.b13(new ContextSpecificTag(1, TagType_EXPLICIT_getInstance()));
|
|
247
|
-
this.
|
|
247
|
+
this.po6_1 = tmp0_serialDesc;
|
|
248
248
|
}
|
|
249
|
-
protoOf($serializer_0).
|
|
250
|
-
var tmp0_desc = this.
|
|
249
|
+
protoOf($serializer_0).qo6 = function (encoder, value) {
|
|
250
|
+
var tmp0_desc = this.po6_1;
|
|
251
251
|
var tmp1_output = encoder.ew(tmp0_desc);
|
|
252
|
-
tmp1_output.ox(tmp0_desc, 0, value.
|
|
253
|
-
tmp1_output.vx(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.
|
|
252
|
+
tmp1_output.ox(tmp0_desc, 0, value.ro6_1);
|
|
253
|
+
tmp1_output.vx(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.so6_1);
|
|
254
254
|
var tmp;
|
|
255
255
|
if (tmp1_output.ay(tmp0_desc, 2)) {
|
|
256
256
|
tmp = true;
|
|
257
257
|
} else {
|
|
258
|
-
var tmp_0 = value.
|
|
258
|
+
var tmp_0 = value.to6_1;
|
|
259
259
|
tmp = !((tmp_0 == null ? null : new EcParameters(tmp_0)) == null);
|
|
260
260
|
}
|
|
261
261
|
if (tmp) {
|
|
262
262
|
var tmp_1 = $serializer_getInstance_1();
|
|
263
|
-
var tmp_2 = value.
|
|
263
|
+
var tmp_2 = value.to6_1;
|
|
264
264
|
tmp1_output.wx(tmp0_desc, 2, tmp_1, tmp_2 == null ? null : new EcParameters(tmp_2));
|
|
265
265
|
}
|
|
266
|
-
if (tmp1_output.ay(tmp0_desc, 3) ? true : !(value.
|
|
267
|
-
tmp1_output.wx(tmp0_desc, 3, $serializer_getInstance_0(), value.
|
|
266
|
+
if (tmp1_output.ay(tmp0_desc, 3) ? true : !(value.uo6_1 == null)) {
|
|
267
|
+
tmp1_output.wx(tmp0_desc, 3, $serializer_getInstance_0(), value.uo6_1);
|
|
268
268
|
}
|
|
269
269
|
tmp1_output.fw(tmp0_desc);
|
|
270
270
|
};
|
|
271
271
|
protoOf($serializer_0).ct = function (encoder, value) {
|
|
272
|
-
return this.
|
|
272
|
+
return this.qo6(encoder, value instanceof EcPrivateKey ? value : THROW_CCE());
|
|
273
273
|
};
|
|
274
274
|
protoOf($serializer_0).dt = function (decoder) {
|
|
275
|
-
var tmp0_desc = this.
|
|
275
|
+
var tmp0_desc = this.po6_1;
|
|
276
276
|
var tmp1_flag = true;
|
|
277
277
|
var tmp2_index = 0;
|
|
278
278
|
var tmp3_bitMask0 = 0;
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
var tmp = $serializer_getInstance_1();
|
|
290
290
|
var tmp_0 = tmp6_local2;
|
|
291
291
|
var tmp_1 = tmp8_input.sw(tmp0_desc, 2, tmp, tmp_0 == null ? null : new EcParameters(tmp_0));
|
|
292
|
-
tmp6_local2 = tmp_1 == null ? null : tmp_1.
|
|
292
|
+
tmp6_local2 = tmp_1 == null ? null : tmp_1.no6_1;
|
|
293
293
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
294
294
|
tmp7_local3 = tmp8_input.sw(tmp0_desc, 3, $serializer_getInstance_0(), tmp7_local3);
|
|
295
295
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
var tmp_2 = $serializer_getInstance_1();
|
|
313
313
|
var tmp_3 = tmp6_local2;
|
|
314
314
|
var tmp_4 = tmp8_input.sw(tmp0_desc, 2, tmp_2, tmp_3 == null ? null : new EcParameters(tmp_3));
|
|
315
|
-
tmp6_local2 = tmp_4 == null ? null : tmp_4.
|
|
315
|
+
tmp6_local2 = tmp_4 == null ? null : tmp_4.no6_1;
|
|
316
316
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
317
317
|
break;
|
|
318
318
|
case 3:
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
return EcPrivateKey_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
328
328
|
};
|
|
329
329
|
protoOf($serializer_0).ps = function () {
|
|
330
|
-
return this.
|
|
330
|
+
return this.po6_1;
|
|
331
331
|
};
|
|
332
332
|
protoOf($serializer_0).k14 = function () {
|
|
333
333
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -343,18 +343,18 @@
|
|
|
343
343
|
}
|
|
344
344
|
function EcPrivateKey_init_$Init$(seen0, version, privateKey, parameters, publicKey, serializationConstructorMarker, $this) {
|
|
345
345
|
if (!(3 === (3 & seen0))) {
|
|
346
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
346
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().po6_1);
|
|
347
347
|
}
|
|
348
|
-
$this.
|
|
349
|
-
$this.
|
|
348
|
+
$this.ro6_1 = version;
|
|
349
|
+
$this.so6_1 = privateKey;
|
|
350
350
|
if (0 === (seen0 & 4))
|
|
351
|
-
$this.
|
|
351
|
+
$this.to6_1 = null;
|
|
352
352
|
else
|
|
353
|
-
$this.
|
|
353
|
+
$this.to6_1 = parameters;
|
|
354
354
|
if (0 === (seen0 & 8))
|
|
355
|
-
$this.
|
|
355
|
+
$this.uo6_1 = null;
|
|
356
356
|
else
|
|
357
|
-
$this.
|
|
357
|
+
$this.uo6_1 = publicKey;
|
|
358
358
|
return $this;
|
|
359
359
|
}
|
|
360
360
|
function EcPrivateKey_init_$Create$(seen0, version, privateKey, parameters, publicKey, serializationConstructorMarker) {
|
|
@@ -363,10 +363,10 @@
|
|
|
363
363
|
function EcPrivateKey(version, privateKey, parameters, publicKey) {
|
|
364
364
|
parameters = parameters === VOID ? null : parameters;
|
|
365
365
|
publicKey = publicKey === VOID ? null : publicKey;
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
369
|
-
this.
|
|
366
|
+
this.ro6_1 = version;
|
|
367
|
+
this.so6_1 = privateKey;
|
|
368
|
+
this.to6_1 = parameters;
|
|
369
|
+
this.uo6_1 = publicKey;
|
|
370
370
|
}
|
|
371
371
|
function get_EC(_this__u8e3s4) {
|
|
372
372
|
return _ObjectIdentifier___init__impl__7hutfr('1.2.840.10045.2.1');
|
|
@@ -374,52 +374,52 @@
|
|
|
374
374
|
function KeyAlgorithmIdentifier() {
|
|
375
375
|
}
|
|
376
376
|
function UnknownKeyAlgorithmIdentifier(algorithm) {
|
|
377
|
-
this.
|
|
377
|
+
this.vo6_1 = algorithm;
|
|
378
378
|
}
|
|
379
|
-
protoOf(UnknownKeyAlgorithmIdentifier).
|
|
380
|
-
return this.
|
|
379
|
+
protoOf(UnknownKeyAlgorithmIdentifier).do6 = function () {
|
|
380
|
+
return this.vo6_1;
|
|
381
381
|
};
|
|
382
|
-
protoOf(UnknownKeyAlgorithmIdentifier).
|
|
382
|
+
protoOf(UnknownKeyAlgorithmIdentifier).wo6 = function () {
|
|
383
383
|
return null;
|
|
384
384
|
};
|
|
385
385
|
function KeyAlgorithmIdentifierSerializer() {
|
|
386
386
|
KeyAlgorithmIdentifierSerializer_instance = this;
|
|
387
387
|
AlgorithmIdentifierSerializer.call(this);
|
|
388
388
|
}
|
|
389
|
-
protoOf(KeyAlgorithmIdentifierSerializer).
|
|
389
|
+
protoOf(KeyAlgorithmIdentifierSerializer).yo6 = function (_this__u8e3s4, value) {
|
|
390
390
|
var tmp;
|
|
391
391
|
if (value instanceof RsaKeyAlgorithmIdentifier) {
|
|
392
|
-
this.
|
|
392
|
+
this.ho6(_this__u8e3s4, NothingSerializer(), RsaKeyAlgorithmIdentifier_instance.wo6());
|
|
393
393
|
tmp = Unit_instance;
|
|
394
394
|
} else {
|
|
395
395
|
if (value instanceof EcKeyAlgorithmIdentifier) {
|
|
396
396
|
var tmp_0 = Companion_instance_0.g63();
|
|
397
|
-
var tmp_1 = value.
|
|
398
|
-
this.
|
|
397
|
+
var tmp_1 = value.ko6_1;
|
|
398
|
+
this.ho6(_this__u8e3s4, tmp_0, tmp_1 == null ? null : new EcParameters(tmp_1));
|
|
399
399
|
tmp = Unit_instance;
|
|
400
400
|
} else {
|
|
401
401
|
if (value instanceof UnknownKeyAlgorithmIdentifier) {
|
|
402
|
-
this.
|
|
402
|
+
this.ho6(_this__u8e3s4, NothingSerializer(), value.wo6());
|
|
403
403
|
tmp = Unit_instance;
|
|
404
404
|
} else {
|
|
405
|
-
this.
|
|
405
|
+
this.ho6(_this__u8e3s4, NothingSerializer(), null);
|
|
406
406
|
tmp = Unit_instance;
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
return tmp;
|
|
411
411
|
};
|
|
412
|
-
protoOf(KeyAlgorithmIdentifierSerializer).
|
|
413
|
-
return this.
|
|
412
|
+
protoOf(KeyAlgorithmIdentifierSerializer).fo6 = function (_this__u8e3s4, value) {
|
|
413
|
+
return this.yo6(_this__u8e3s4, isInterface(value, KeyAlgorithmIdentifier) ? value : THROW_CCE());
|
|
414
414
|
};
|
|
415
|
-
protoOf(KeyAlgorithmIdentifierSerializer).
|
|
415
|
+
protoOf(KeyAlgorithmIdentifierSerializer).go6 = function (_this__u8e3s4, algorithm) {
|
|
416
416
|
var tmp;
|
|
417
417
|
if (algorithm === get_RSA(Companion_instance)) {
|
|
418
|
-
this.
|
|
418
|
+
this.io6(_this__u8e3s4, NothingSerializer());
|
|
419
419
|
tmp = RsaKeyAlgorithmIdentifier_instance;
|
|
420
420
|
} else if (algorithm === get_EC(Companion_instance)) {
|
|
421
|
-
var tmp_0 = this.
|
|
422
|
-
tmp = new EcKeyAlgorithmIdentifier(tmp_0 == null ? null : tmp_0.
|
|
421
|
+
var tmp_0 = this.io6(_this__u8e3s4, Companion_instance_0.g63());
|
|
422
|
+
tmp = new EcKeyAlgorithmIdentifier(tmp_0 == null ? null : tmp_0.no6_1);
|
|
423
423
|
} else {
|
|
424
424
|
tmp = new UnknownKeyAlgorithmIdentifier(algorithm);
|
|
425
425
|
}
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
// Inline function 'kotlin.arrayOf' call
|
|
448
448
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
449
449
|
// Inline function 'kotlin.js.asDynamic' call
|
|
450
|
-
tmp.
|
|
450
|
+
tmp.zo6_1 = [null, lazy(tmp_0, PrivateKeyInfo$Companion$$childSerializers$_anonymous__z2jngg), null];
|
|
451
451
|
}
|
|
452
452
|
protoOf(Companion_1).g63 = function () {
|
|
453
453
|
return $serializer_getInstance_3();
|
|
@@ -464,22 +464,22 @@
|
|
|
464
464
|
tmp0_serialDesc.r13('version', false);
|
|
465
465
|
tmp0_serialDesc.r13('privateKeyAlgorithm', false);
|
|
466
466
|
tmp0_serialDesc.r13('privateKey', false);
|
|
467
|
-
this.
|
|
467
|
+
this.ao7_1 = tmp0_serialDesc;
|
|
468
468
|
}
|
|
469
|
-
protoOf($serializer_1).
|
|
470
|
-
var tmp0_desc = this.
|
|
469
|
+
protoOf($serializer_1).bo7 = function (encoder, value) {
|
|
470
|
+
var tmp0_desc = this.ao7_1;
|
|
471
471
|
var tmp1_output = encoder.ew(tmp0_desc);
|
|
472
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
473
|
-
tmp1_output.ox(tmp0_desc, 0, value.
|
|
474
|
-
tmp1_output.vx(tmp0_desc, 1, tmp2_cached[1].n1(), value.
|
|
475
|
-
tmp1_output.vx(tmp0_desc, 2, ByteArraySerializer_getInstance(), value.
|
|
472
|
+
var tmp2_cached = Companion_getInstance_1().zo6_1;
|
|
473
|
+
tmp1_output.ox(tmp0_desc, 0, value.co7_1);
|
|
474
|
+
tmp1_output.vx(tmp0_desc, 1, tmp2_cached[1].n1(), value.do7_1);
|
|
475
|
+
tmp1_output.vx(tmp0_desc, 2, ByteArraySerializer_getInstance(), value.eo7_1);
|
|
476
476
|
tmp1_output.fw(tmp0_desc);
|
|
477
477
|
};
|
|
478
478
|
protoOf($serializer_1).ct = function (encoder, value) {
|
|
479
|
-
return this.
|
|
479
|
+
return this.bo7(encoder, value instanceof PrivateKeyInfo ? value : THROW_CCE());
|
|
480
480
|
};
|
|
481
481
|
protoOf($serializer_1).dt = function (decoder) {
|
|
482
|
-
var tmp0_desc = this.
|
|
482
|
+
var tmp0_desc = this.ao7_1;
|
|
483
483
|
var tmp1_flag = true;
|
|
484
484
|
var tmp2_index = 0;
|
|
485
485
|
var tmp3_bitMask0 = 0;
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
var tmp5_local1 = null;
|
|
488
488
|
var tmp6_local2 = null;
|
|
489
489
|
var tmp7_input = decoder.ew(tmp0_desc);
|
|
490
|
-
var tmp8_cached = Companion_getInstance_1().
|
|
490
|
+
var tmp8_cached = Companion_getInstance_1().zo6_1;
|
|
491
491
|
if (tmp7_input.uw()) {
|
|
492
492
|
tmp4_local0 = tmp7_input.jw(tmp0_desc, 0);
|
|
493
493
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -522,10 +522,10 @@
|
|
|
522
522
|
return PrivateKeyInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
523
523
|
};
|
|
524
524
|
protoOf($serializer_1).ps = function () {
|
|
525
|
-
return this.
|
|
525
|
+
return this.ao7_1;
|
|
526
526
|
};
|
|
527
527
|
protoOf($serializer_1).k14 = function () {
|
|
528
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
528
|
+
var tmp0_cached = Companion_getInstance_1().zo6_1;
|
|
529
529
|
// Inline function 'kotlin.arrayOf' call
|
|
530
530
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
531
531
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -539,11 +539,11 @@
|
|
|
539
539
|
}
|
|
540
540
|
function PrivateKeyInfo_init_$Init$(seen0, version, privateKeyAlgorithm, privateKey, serializationConstructorMarker, $this) {
|
|
541
541
|
if (!(7 === (7 & seen0))) {
|
|
542
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().
|
|
542
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().ao7_1);
|
|
543
543
|
}
|
|
544
|
-
$this.
|
|
545
|
-
$this.
|
|
546
|
-
$this.
|
|
544
|
+
$this.co7_1 = version;
|
|
545
|
+
$this.do7_1 = privateKeyAlgorithm;
|
|
546
|
+
$this.eo7_1 = privateKey;
|
|
547
547
|
return $this;
|
|
548
548
|
}
|
|
549
549
|
function PrivateKeyInfo_init_$Create$(seen0, version, privateKeyAlgorithm, privateKey, serializationConstructorMarker) {
|
|
@@ -551,9 +551,9 @@
|
|
|
551
551
|
}
|
|
552
552
|
function PrivateKeyInfo(version, privateKeyAlgorithm, privateKey) {
|
|
553
553
|
Companion_getInstance_1();
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
554
|
+
this.co7_1 = version;
|
|
555
|
+
this.do7_1 = privateKeyAlgorithm;
|
|
556
|
+
this.eo7_1 = privateKey;
|
|
557
557
|
}
|
|
558
558
|
function SubjectPublicKeyInfo$Companion$$childSerializers$_anonymous__ezpjw2() {
|
|
559
559
|
var tmp = getKClass(KeyAlgorithmIdentifier);
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
// Inline function 'kotlin.arrayOf' call
|
|
572
572
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
573
573
|
// Inline function 'kotlin.js.asDynamic' call
|
|
574
|
-
tmp.
|
|
574
|
+
tmp.fo7_1 = [lazy(tmp_0, SubjectPublicKeyInfo$Companion$$childSerializers$_anonymous__ezpjw2), null];
|
|
575
575
|
}
|
|
576
576
|
protoOf(Companion_2).g63 = function () {
|
|
577
577
|
return $serializer_getInstance_4();
|
|
@@ -587,28 +587,28 @@
|
|
|
587
587
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.SubjectPublicKeyInfo', this, 2);
|
|
588
588
|
tmp0_serialDesc.r13('algorithm', false);
|
|
589
589
|
tmp0_serialDesc.r13('subjectPublicKey', false);
|
|
590
|
-
this.
|
|
590
|
+
this.go7_1 = tmp0_serialDesc;
|
|
591
591
|
}
|
|
592
|
-
protoOf($serializer_2).
|
|
593
|
-
var tmp0_desc = this.
|
|
592
|
+
protoOf($serializer_2).ho7 = function (encoder, value) {
|
|
593
|
+
var tmp0_desc = this.go7_1;
|
|
594
594
|
var tmp1_output = encoder.ew(tmp0_desc);
|
|
595
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
596
|
-
tmp1_output.vx(tmp0_desc, 0, tmp2_cached[0].n1(), value.
|
|
597
|
-
tmp1_output.vx(tmp0_desc, 1, $serializer_getInstance_0(), value.
|
|
595
|
+
var tmp2_cached = Companion_getInstance_2().fo7_1;
|
|
596
|
+
tmp1_output.vx(tmp0_desc, 0, tmp2_cached[0].n1(), value.io7_1);
|
|
597
|
+
tmp1_output.vx(tmp0_desc, 1, $serializer_getInstance_0(), value.jo7_1);
|
|
598
598
|
tmp1_output.fw(tmp0_desc);
|
|
599
599
|
};
|
|
600
600
|
protoOf($serializer_2).ct = function (encoder, value) {
|
|
601
|
-
return this.
|
|
601
|
+
return this.ho7(encoder, value instanceof SubjectPublicKeyInfo ? value : THROW_CCE());
|
|
602
602
|
};
|
|
603
603
|
protoOf($serializer_2).dt = function (decoder) {
|
|
604
|
-
var tmp0_desc = this.
|
|
604
|
+
var tmp0_desc = this.go7_1;
|
|
605
605
|
var tmp1_flag = true;
|
|
606
606
|
var tmp2_index = 0;
|
|
607
607
|
var tmp3_bitMask0 = 0;
|
|
608
608
|
var tmp4_local0 = null;
|
|
609
609
|
var tmp5_local1 = null;
|
|
610
610
|
var tmp6_input = decoder.ew(tmp0_desc);
|
|
611
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
611
|
+
var tmp7_cached = Companion_getInstance_2().fo7_1;
|
|
612
612
|
if (tmp6_input.uw()) {
|
|
613
613
|
tmp4_local0 = tmp6_input.qw(tmp0_desc, 0, tmp7_cached[0].n1(), tmp4_local0);
|
|
614
614
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -637,13 +637,13 @@
|
|
|
637
637
|
return SubjectPublicKeyInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
638
638
|
};
|
|
639
639
|
protoOf($serializer_2).ps = function () {
|
|
640
|
-
return this.
|
|
640
|
+
return this.go7_1;
|
|
641
641
|
};
|
|
642
642
|
protoOf($serializer_2).k14 = function () {
|
|
643
643
|
// Inline function 'kotlin.arrayOf' call
|
|
644
644
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
645
645
|
// Inline function 'kotlin.js.asDynamic' call
|
|
646
|
-
return [Companion_getInstance_2().
|
|
646
|
+
return [Companion_getInstance_2().fo7_1[0].n1(), $serializer_getInstance_0()];
|
|
647
647
|
};
|
|
648
648
|
var $serializer_instance_2;
|
|
649
649
|
function $serializer_getInstance_4() {
|
|
@@ -653,10 +653,10 @@
|
|
|
653
653
|
}
|
|
654
654
|
function SubjectPublicKeyInfo_init_$Init$(seen0, algorithm, subjectPublicKey, serializationConstructorMarker, $this) {
|
|
655
655
|
if (!(3 === (3 & seen0))) {
|
|
656
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().
|
|
656
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().go7_1);
|
|
657
657
|
}
|
|
658
|
-
$this.
|
|
659
|
-
$this.
|
|
658
|
+
$this.io7_1 = algorithm;
|
|
659
|
+
$this.jo7_1 = subjectPublicKey;
|
|
660
660
|
return $this;
|
|
661
661
|
}
|
|
662
662
|
function SubjectPublicKeyInfo_init_$Create$(seen0, algorithm, subjectPublicKey, serializationConstructorMarker) {
|
|
@@ -664,15 +664,15 @@
|
|
|
664
664
|
}
|
|
665
665
|
function SubjectPublicKeyInfo(algorithm, subjectPublicKey) {
|
|
666
666
|
Companion_getInstance_2();
|
|
667
|
-
this.
|
|
668
|
-
this.
|
|
667
|
+
this.io7_1 = algorithm;
|
|
668
|
+
this.jo7_1 = subjectPublicKey;
|
|
669
669
|
}
|
|
670
670
|
function RsaKeyAlgorithmIdentifier() {
|
|
671
671
|
}
|
|
672
|
-
protoOf(RsaKeyAlgorithmIdentifier).
|
|
672
|
+
protoOf(RsaKeyAlgorithmIdentifier).do6 = function () {
|
|
673
673
|
return get_RSA(Companion_instance);
|
|
674
674
|
};
|
|
675
|
-
protoOf(RsaKeyAlgorithmIdentifier).
|
|
675
|
+
protoOf(RsaKeyAlgorithmIdentifier).wo6 = function () {
|
|
676
676
|
return null;
|
|
677
677
|
};
|
|
678
678
|
var RsaKeyAlgorithmIdentifier_instance;
|