@solibo/solibo-sdk 1.16.16 → 1.16.17
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.mjs +98 -98
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/KotlinBigInteger-bignum.mjs +1114 -1114
- package/MultiplatformSettings-multiplatform-settings-test.mjs +18 -18
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +3 -3
- package/bitops-library-bits.mjs +33 -33
- package/bitops-library-endian.mjs +3 -3
- package/client.d.mts +4 -0
- package/core-library-digest.mjs +29 -29
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +7 -7
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +190 -190
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +177 -177
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +238 -238
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +20 -20
- package/hash-library-md.mjs +30 -30
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/ktor-ktor-client-auth.mjs +220 -220
- package/ktor-ktor-client-encoding.mjs +75 -75
- package/ktor-ktor-client-logging.mjs +520 -520
- package/ktor-ktor-client-mock.mjs +39 -39
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +30205 -29926
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +116 -0
- package/solibo-sdk-sdk.mjs +4608 -4586
|
@@ -93,7 +93,7 @@ function AlgorithmIdentifier() {
|
|
|
93
93
|
function EcAlgorithmIdentifier$_init_$ref_qcyxlh() {
|
|
94
94
|
return constructCallableReference(function (p0) {
|
|
95
95
|
var tmp = p0;
|
|
96
|
-
return new EcAlgorithmIdentifier(tmp == null ? null : tmp.
|
|
96
|
+
return new EcAlgorithmIdentifier(tmp == null ? null : tmp.syn_1);
|
|
97
97
|
}, 1, 0, 104, '<init>');
|
|
98
98
|
}
|
|
99
99
|
function DhAlgorithmIdentifier$_init_$ref_z516pb() {
|
|
@@ -111,7 +111,7 @@ function DefaultAlgorithmIdentifierSerializer() {
|
|
|
111
111
|
AlgorithmIdentifierSerializer.call(this);
|
|
112
112
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.modules.AlgorithmIdentifierSerializer.algorithm' call
|
|
113
113
|
var oid = get_RSA(Companion_instance);
|
|
114
|
-
this.
|
|
114
|
+
this.wyn(oid, getKClass(RsaAlgorithmIdentifier), RsaAlgorithmIdentifier_instance, true);
|
|
115
115
|
var tmp2 = get_EC(Companion_instance);
|
|
116
116
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.modules.AlgorithmIdentifierSerializer.algorithm' call
|
|
117
117
|
var factory = EcAlgorithmIdentifier$_init_$ref_qcyxlh();
|
|
@@ -120,7 +120,7 @@ function DefaultAlgorithmIdentifierSerializer() {
|
|
|
120
120
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
121
121
|
var this_0 = serializer(createKType(getKClass(EcParameters), arrayOf([]), true));
|
|
122
122
|
var tmp$ret$2 = isInterface(this_0, KSerializer) ? this_0 : THROW_CCE();
|
|
123
|
-
this.
|
|
123
|
+
this.xyn(tmp2, tmp, tmp$ret$2, factory);
|
|
124
124
|
var tmp2_0 = get_DH(Companion_instance);
|
|
125
125
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.modules.AlgorithmIdentifierSerializer.algorithm' call
|
|
126
126
|
var factory_0 = DhAlgorithmIdentifier$_init_$ref_z516pb();
|
|
@@ -129,7 +129,7 @@ function DefaultAlgorithmIdentifierSerializer() {
|
|
|
129
129
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
130
130
|
var this_1 = serializer(createKType(getKClass(DhParameters), arrayOf([]), true));
|
|
131
131
|
var tmp$ret$5 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
132
|
-
this.
|
|
132
|
+
this.xyn(tmp2_0, tmp_0, tmp$ret$5, factory_0);
|
|
133
133
|
var tmp2_1 = get_DSA(Companion_instance);
|
|
134
134
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.modules.AlgorithmIdentifierSerializer.algorithm' call
|
|
135
135
|
var factory_1 = DsaAlgorithmIdentifier$_init_$ref_pugpj3();
|
|
@@ -138,19 +138,19 @@ function DefaultAlgorithmIdentifierSerializer() {
|
|
|
138
138
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
139
139
|
var this_2 = serializer(createKType(getKClass(DsaParameters), arrayOf([]), true));
|
|
140
140
|
var tmp$ret$8 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
141
|
-
this.
|
|
141
|
+
this.xyn(tmp2_1, tmp_1, tmp$ret$8, factory_1);
|
|
142
142
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.modules.AlgorithmIdentifierSerializer.algorithm' call
|
|
143
143
|
var oid_0 = get_X25519(Companion_instance);
|
|
144
|
-
this.
|
|
144
|
+
this.wyn(oid_0, getKClass(X25519AlgorithmIdentifier), X25519AlgorithmIdentifier_instance, false);
|
|
145
145
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.modules.AlgorithmIdentifierSerializer.algorithm' call
|
|
146
146
|
var oid_1 = get_X448(Companion_instance);
|
|
147
|
-
this.
|
|
147
|
+
this.wyn(oid_1, getKClass(X448AlgorithmIdentifier), X448AlgorithmIdentifier_instance, false);
|
|
148
148
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.modules.AlgorithmIdentifierSerializer.algorithm' call
|
|
149
149
|
var oid_2 = get_Ed25519(Companion_instance);
|
|
150
|
-
this.
|
|
150
|
+
this.wyn(oid_2, getKClass(Ed25519AlgorithmIdentifier), Ed25519AlgorithmIdentifier_instance, false);
|
|
151
151
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.modules.AlgorithmIdentifierSerializer.algorithm' call
|
|
152
152
|
var oid_3 = get_Ed448(Companion_instance);
|
|
153
|
-
this.
|
|
153
|
+
this.wyn(oid_3, getKClass(Ed448AlgorithmIdentifier), Ed448AlgorithmIdentifier_instance, false);
|
|
154
154
|
}
|
|
155
155
|
var DefaultAlgorithmIdentifierSerializer_instance;
|
|
156
156
|
function DefaultAlgorithmIdentifierSerializer_getInstance() {
|
|
@@ -160,15 +160,15 @@ function DefaultAlgorithmIdentifierSerializer_getInstance() {
|
|
|
160
160
|
}
|
|
161
161
|
function algorithm($this, oid, cls, entry) {
|
|
162
162
|
// Inline function 'kotlin.collections.set' call
|
|
163
|
-
$this.
|
|
164
|
-
var tmp0 = $this.
|
|
163
|
+
$this.tyn_1.d3(cls, entry);
|
|
164
|
+
var tmp0 = $this.uyn_1;
|
|
165
165
|
// Inline function 'kotlin.collections.set' call
|
|
166
166
|
var key = new ObjectIdentifier(oid);
|
|
167
167
|
tmp0.d3(key, entry);
|
|
168
168
|
}
|
|
169
169
|
function AlgorithmEntry(serializer, factory) {
|
|
170
|
-
this.
|
|
171
|
-
this.
|
|
170
|
+
this.zyn_1 = serializer;
|
|
171
|
+
this.ayo_1 = factory;
|
|
172
172
|
}
|
|
173
173
|
function AlgorithmIdentifierSerializer$algorithm$lambda($instance) {
|
|
174
174
|
return function (it) {
|
|
@@ -183,31 +183,31 @@ function AlgorithmIdentifierSerializer$descriptor$lambda($this$buildSerialDescri
|
|
|
183
183
|
function AlgorithmIdentifierSerializer() {
|
|
184
184
|
var tmp = this;
|
|
185
185
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
186
|
-
tmp.
|
|
186
|
+
tmp.tyn_1 = LinkedHashMap_init_$Create$();
|
|
187
187
|
var tmp_0 = this;
|
|
188
188
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
189
|
-
tmp_0.
|
|
189
|
+
tmp_0.uyn_1 = LinkedHashMap_init_$Create$();
|
|
190
190
|
var tmp_1 = this;
|
|
191
191
|
var tmp_2 = OPEN_getInstance();
|
|
192
|
-
tmp_1.
|
|
192
|
+
tmp_1.vyn_1 = buildSerialDescriptor('AlgorithmIdentifier', tmp_2, [], AlgorithmIdentifierSerializer$descriptor$lambda);
|
|
193
193
|
}
|
|
194
|
-
protoOf(AlgorithmIdentifierSerializer).
|
|
194
|
+
protoOf(AlgorithmIdentifierSerializer).xyn = function (oid, cls, parametersSerializer, factory) {
|
|
195
195
|
return algorithm(this, oid, cls, new AlgorithmEntry(parametersSerializer, typeof factory === 'function' ? factory : THROW_CCE()));
|
|
196
196
|
};
|
|
197
|
-
protoOf(AlgorithmIdentifierSerializer).
|
|
197
|
+
protoOf(AlgorithmIdentifierSerializer).wyn = function (oid, cls, instance, encodeNull) {
|
|
198
198
|
var tmp = encodeNull ? NothingSerializer() : AbsentNothingSerializer_getInstance();
|
|
199
|
-
return this.
|
|
199
|
+
return this.xyn(oid, cls, tmp, AlgorithmIdentifierSerializer$algorithm$lambda(instance));
|
|
200
200
|
};
|
|
201
201
|
protoOf(AlgorithmIdentifierSerializer).ht = function () {
|
|
202
|
-
return this.
|
|
202
|
+
return this.vyn_1;
|
|
203
203
|
};
|
|
204
|
-
protoOf(AlgorithmIdentifierSerializer).
|
|
204
|
+
protoOf(AlgorithmIdentifierSerializer).yyn = function (encoder, value) {
|
|
205
205
|
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
206
|
-
var descriptor = this.
|
|
206
|
+
var descriptor = this.vyn_1;
|
|
207
207
|
var composite = encoder.xw(descriptor);
|
|
208
|
-
composite.oy(this.
|
|
209
|
-
var tmp0_safe_receiver = this.
|
|
210
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
208
|
+
composite.oy(this.vyn_1, 0, Companion_instance.o6k(), new ObjectIdentifier(value.qyn()));
|
|
209
|
+
var tmp0_safe_receiver = this.tyn_1.a3(getKClassFromExpression(value));
|
|
210
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zyn_1;
|
|
211
211
|
var tmp1_elvis_lhs = (!(tmp == null) ? isInterface(tmp, KSerializer) : false) ? tmp : null;
|
|
212
212
|
var tmp_0;
|
|
213
213
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -217,23 +217,23 @@ protoOf(AlgorithmIdentifierSerializer).qyn = function (encoder, value) {
|
|
|
217
217
|
} else {
|
|
218
218
|
tmp_0 = tmp1_elvis_lhs;
|
|
219
219
|
}
|
|
220
|
-
composite.py(this.
|
|
220
|
+
composite.py(this.vyn_1, 1, tmp_0, value.ryn());
|
|
221
221
|
composite.yw(descriptor);
|
|
222
222
|
return Unit_instance;
|
|
223
223
|
};
|
|
224
224
|
protoOf(AlgorithmIdentifierSerializer).ut = function (encoder, value) {
|
|
225
|
-
return this.
|
|
225
|
+
return this.yyn(encoder, (!(value == null) ? isInterface(value, AlgorithmIdentifier) : false) ? value : THROW_CCE());
|
|
226
226
|
};
|
|
227
227
|
protoOf(AlgorithmIdentifierSerializer).vt = function (decoder) {
|
|
228
228
|
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
229
|
-
var descriptor = this.
|
|
229
|
+
var descriptor = this.vyn_1;
|
|
230
230
|
var composite = decoder.xw(descriptor);
|
|
231
231
|
// Inline function 'kotlin.check' call
|
|
232
|
-
if (!(composite.ox(this.
|
|
232
|
+
if (!(composite.ox(this.vyn_1) === 0)) {
|
|
233
233
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
234
234
|
}
|
|
235
|
-
var algorithm = composite.kx(this.
|
|
236
|
-
var tmp0_elvis_lhs = this.
|
|
235
|
+
var algorithm = composite.kx(this.vyn_1, 0, Companion_instance.o6k()).mym_1;
|
|
236
|
+
var tmp0_elvis_lhs = this.uyn_1.a3(new ObjectIdentifier(algorithm));
|
|
237
237
|
var tmp;
|
|
238
238
|
if (tmp0_elvis_lhs == null) {
|
|
239
239
|
// Inline function 'kotlin.error' call
|
|
@@ -243,14 +243,14 @@ protoOf(AlgorithmIdentifierSerializer).vt = function (decoder) {
|
|
|
243
243
|
tmp = tmp0_elvis_lhs;
|
|
244
244
|
}
|
|
245
245
|
var entry = tmp;
|
|
246
|
-
var index = composite.ox(this.
|
|
246
|
+
var index = composite.ox(this.vyn_1);
|
|
247
247
|
var tmp_0;
|
|
248
248
|
switch (index) {
|
|
249
249
|
case 1:
|
|
250
|
-
var parameters = composite.mx(this.
|
|
250
|
+
var parameters = composite.mx(this.vyn_1, 1, entry.zyn_1);
|
|
251
251
|
// Inline function 'kotlin.check' call
|
|
252
252
|
|
|
253
|
-
if (!(composite.ox(this.
|
|
253
|
+
if (!(composite.ox(this.vyn_1) === -1)) {
|
|
254
254
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
255
255
|
}
|
|
256
256
|
|
|
@@ -266,18 +266,18 @@ protoOf(AlgorithmIdentifierSerializer).vt = function (decoder) {
|
|
|
266
266
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
267
267
|
}
|
|
268
268
|
var parameters_0 = tmp_0;
|
|
269
|
-
var result = entry.
|
|
269
|
+
var result = entry.ayo_1(parameters_0);
|
|
270
270
|
composite.yw(descriptor);
|
|
271
271
|
return result;
|
|
272
272
|
};
|
|
273
273
|
function AbsentNothingSerializer() {
|
|
274
274
|
AbsentNothingSerializer_instance = this;
|
|
275
|
-
this.
|
|
275
|
+
this.byo_1 = get_nullable(NothingSerializer().ht());
|
|
276
276
|
}
|
|
277
277
|
protoOf(AbsentNothingSerializer).ht = function () {
|
|
278
|
-
return this.
|
|
278
|
+
return this.byo_1;
|
|
279
279
|
};
|
|
280
|
-
protoOf(AbsentNothingSerializer).
|
|
280
|
+
protoOf(AbsentNothingSerializer).cyo = function (encoder, value) {
|
|
281
281
|
};
|
|
282
282
|
protoOf(AbsentNothingSerializer).ut = function (encoder, value) {
|
|
283
283
|
var tmp;
|
|
@@ -292,7 +292,7 @@ protoOf(AbsentNothingSerializer).ut = function (encoder, value) {
|
|
|
292
292
|
} else {
|
|
293
293
|
tmp = THROW_CCE();
|
|
294
294
|
}
|
|
295
|
-
return this.
|
|
295
|
+
return this.cyo(encoder, tmp);
|
|
296
296
|
};
|
|
297
297
|
protoOf(AbsentNothingSerializer).vt = function (decoder) {
|
|
298
298
|
return null;
|
|
@@ -318,23 +318,23 @@ function $serializer() {
|
|
|
318
318
|
tmp0_serialDesc.k14('prime', false);
|
|
319
319
|
tmp0_serialDesc.k14('base', false);
|
|
320
320
|
tmp0_serialDesc.k14('privateValueLength', true);
|
|
321
|
-
this.
|
|
321
|
+
this.dyo_1 = tmp0_serialDesc;
|
|
322
322
|
}
|
|
323
|
-
protoOf($serializer).
|
|
324
|
-
var tmp0_desc = this.
|
|
323
|
+
protoOf($serializer).eyo = function (encoder, value) {
|
|
324
|
+
var tmp0_desc = this.dyo_1;
|
|
325
325
|
var tmp1_output = encoder.xw(tmp0_desc);
|
|
326
|
-
tmp1_output.oy(tmp0_desc, 0, BigIntAsStringSerializer_getInstance(), value.
|
|
327
|
-
tmp1_output.oy(tmp0_desc, 1, BigIntAsStringSerializer_getInstance(), value.
|
|
328
|
-
if (tmp1_output.ty(tmp0_desc, 2) ? true : !(value.
|
|
329
|
-
tmp1_output.py(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
326
|
+
tmp1_output.oy(tmp0_desc, 0, BigIntAsStringSerializer_getInstance(), value.fyo_1);
|
|
327
|
+
tmp1_output.oy(tmp0_desc, 1, BigIntAsStringSerializer_getInstance(), value.gyo_1);
|
|
328
|
+
if (tmp1_output.ty(tmp0_desc, 2) ? true : !(value.hyo_1 == null)) {
|
|
329
|
+
tmp1_output.py(tmp0_desc, 2, IntSerializer_getInstance(), value.hyo_1);
|
|
330
330
|
}
|
|
331
331
|
tmp1_output.yw(tmp0_desc);
|
|
332
332
|
};
|
|
333
333
|
protoOf($serializer).ut = function (encoder, value) {
|
|
334
|
-
return this.
|
|
334
|
+
return this.eyo(encoder, value instanceof DhParameters ? value : THROW_CCE());
|
|
335
335
|
};
|
|
336
336
|
protoOf($serializer).vt = function (decoder) {
|
|
337
|
-
var tmp0_desc = this.
|
|
337
|
+
var tmp0_desc = this.dyo_1;
|
|
338
338
|
var tmp1_flag = true;
|
|
339
339
|
var tmp2_index = 0;
|
|
340
340
|
var tmp3_bitMask0 = 0;
|
|
@@ -376,7 +376,7 @@ protoOf($serializer).vt = function (decoder) {
|
|
|
376
376
|
return DhParameters_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
377
377
|
};
|
|
378
378
|
protoOf($serializer).ht = function () {
|
|
379
|
-
return this.
|
|
379
|
+
return this.dyo_1;
|
|
380
380
|
};
|
|
381
381
|
protoOf($serializer).d15 = function () {
|
|
382
382
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -392,14 +392,14 @@ function $serializer_getInstance_1() {
|
|
|
392
392
|
}
|
|
393
393
|
function DhParameters_init_$Init$(seen0, prime, base, privateValueLength, serializationConstructorMarker, $this) {
|
|
394
394
|
if (!(3 === (3 & seen0))) {
|
|
395
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().
|
|
395
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().dyo_1);
|
|
396
396
|
}
|
|
397
|
-
$this.
|
|
398
|
-
$this.
|
|
397
|
+
$this.fyo_1 = prime;
|
|
398
|
+
$this.gyo_1 = base;
|
|
399
399
|
if (0 === (seen0 & 4))
|
|
400
|
-
$this.
|
|
400
|
+
$this.hyo_1 = null;
|
|
401
401
|
else
|
|
402
|
-
$this.
|
|
402
|
+
$this.hyo_1 = privateValueLength;
|
|
403
403
|
return $this;
|
|
404
404
|
}
|
|
405
405
|
function DhParameters_init_$Create$(seen0, prime, base, privateValueLength, serializationConstructorMarker) {
|
|
@@ -407,17 +407,17 @@ function DhParameters_init_$Create$(seen0, prime, base, privateValueLength, seri
|
|
|
407
407
|
}
|
|
408
408
|
function DhParameters(prime, base, privateValueLength) {
|
|
409
409
|
privateValueLength = privateValueLength === VOID ? null : privateValueLength;
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
410
|
+
this.fyo_1 = prime;
|
|
411
|
+
this.gyo_1 = base;
|
|
412
|
+
this.hyo_1 = privateValueLength;
|
|
413
413
|
}
|
|
414
414
|
function DhAlgorithmIdentifier(parameters) {
|
|
415
|
-
this.
|
|
415
|
+
this.iyo_1 = parameters;
|
|
416
416
|
}
|
|
417
|
-
protoOf(DhAlgorithmIdentifier).
|
|
418
|
-
return this.
|
|
417
|
+
protoOf(DhAlgorithmIdentifier).ryn = function () {
|
|
418
|
+
return this.iyo_1;
|
|
419
419
|
};
|
|
420
|
-
protoOf(DhAlgorithmIdentifier).
|
|
420
|
+
protoOf(DhAlgorithmIdentifier).qyn = function () {
|
|
421
421
|
return get_DH(Companion_instance);
|
|
422
422
|
};
|
|
423
423
|
function get_DSA(_this__u8e3s4) {
|
|
@@ -435,21 +435,21 @@ function $serializer_0() {
|
|
|
435
435
|
tmp0_serialDesc.k14('prime', false);
|
|
436
436
|
tmp0_serialDesc.k14('subprime', false);
|
|
437
437
|
tmp0_serialDesc.k14('generator', false);
|
|
438
|
-
this.
|
|
438
|
+
this.jyo_1 = tmp0_serialDesc;
|
|
439
439
|
}
|
|
440
|
-
protoOf($serializer_0).
|
|
441
|
-
var tmp0_desc = this.
|
|
440
|
+
protoOf($serializer_0).kyo = function (encoder, value) {
|
|
441
|
+
var tmp0_desc = this.jyo_1;
|
|
442
442
|
var tmp1_output = encoder.xw(tmp0_desc);
|
|
443
|
-
tmp1_output.oy(tmp0_desc, 0, BigIntAsStringSerializer_getInstance(), value.
|
|
444
|
-
tmp1_output.oy(tmp0_desc, 1, BigIntAsStringSerializer_getInstance(), value.
|
|
445
|
-
tmp1_output.oy(tmp0_desc, 2, BigIntAsStringSerializer_getInstance(), value.
|
|
443
|
+
tmp1_output.oy(tmp0_desc, 0, BigIntAsStringSerializer_getInstance(), value.lyo_1);
|
|
444
|
+
tmp1_output.oy(tmp0_desc, 1, BigIntAsStringSerializer_getInstance(), value.myo_1);
|
|
445
|
+
tmp1_output.oy(tmp0_desc, 2, BigIntAsStringSerializer_getInstance(), value.nyo_1);
|
|
446
446
|
tmp1_output.yw(tmp0_desc);
|
|
447
447
|
};
|
|
448
448
|
protoOf($serializer_0).ut = function (encoder, value) {
|
|
449
|
-
return this.
|
|
449
|
+
return this.kyo(encoder, value instanceof DsaParameters ? value : THROW_CCE());
|
|
450
450
|
};
|
|
451
451
|
protoOf($serializer_0).vt = function (decoder) {
|
|
452
|
-
var tmp0_desc = this.
|
|
452
|
+
var tmp0_desc = this.jyo_1;
|
|
453
453
|
var tmp1_flag = true;
|
|
454
454
|
var tmp2_index = 0;
|
|
455
455
|
var tmp3_bitMask0 = 0;
|
|
@@ -491,7 +491,7 @@ protoOf($serializer_0).vt = function (decoder) {
|
|
|
491
491
|
return DsaParameters_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
492
492
|
};
|
|
493
493
|
protoOf($serializer_0).ht = function () {
|
|
494
|
-
return this.
|
|
494
|
+
return this.jyo_1;
|
|
495
495
|
};
|
|
496
496
|
protoOf($serializer_0).d15 = function () {
|
|
497
497
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -507,28 +507,28 @@ function $serializer_getInstance_2() {
|
|
|
507
507
|
}
|
|
508
508
|
function DsaParameters_init_$Init$(seen0, prime, subprime, generator, serializationConstructorMarker, $this) {
|
|
509
509
|
if (!(7 === (7 & seen0))) {
|
|
510
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().
|
|
510
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_2().jyo_1);
|
|
511
511
|
}
|
|
512
|
-
$this.
|
|
513
|
-
$this.
|
|
514
|
-
$this.
|
|
512
|
+
$this.lyo_1 = prime;
|
|
513
|
+
$this.myo_1 = subprime;
|
|
514
|
+
$this.nyo_1 = generator;
|
|
515
515
|
return $this;
|
|
516
516
|
}
|
|
517
517
|
function DsaParameters_init_$Create$(seen0, prime, subprime, generator, serializationConstructorMarker) {
|
|
518
518
|
return DsaParameters_init_$Init$(seen0, prime, subprime, generator, serializationConstructorMarker, objectCreate(protoOf(DsaParameters)));
|
|
519
519
|
}
|
|
520
520
|
function DsaParameters(prime, subprime, generator) {
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
521
|
+
this.lyo_1 = prime;
|
|
522
|
+
this.myo_1 = subprime;
|
|
523
|
+
this.nyo_1 = generator;
|
|
524
524
|
}
|
|
525
525
|
function DsaAlgorithmIdentifier(parameters) {
|
|
526
|
-
this.
|
|
526
|
+
this.oyo_1 = parameters;
|
|
527
527
|
}
|
|
528
|
-
protoOf(DsaAlgorithmIdentifier).
|
|
529
|
-
return this.
|
|
528
|
+
protoOf(DsaAlgorithmIdentifier).ryn = function () {
|
|
529
|
+
return this.oyo_1;
|
|
530
530
|
};
|
|
531
|
-
protoOf(DsaAlgorithmIdentifier).
|
|
531
|
+
protoOf(DsaAlgorithmIdentifier).qyn = function () {
|
|
532
532
|
return get_DSA(Companion_instance);
|
|
533
533
|
};
|
|
534
534
|
function get_secp256r1(_this__u8e3s4) {
|
|
@@ -541,16 +541,16 @@ function get_secp521r1(_this__u8e3s4) {
|
|
|
541
541
|
return _ObjectIdentifier___init__impl__7hutfr('1.3.132.0.35');
|
|
542
542
|
}
|
|
543
543
|
function EcAlgorithmIdentifier(parameters) {
|
|
544
|
-
this.
|
|
544
|
+
this.pyo_1 = parameters;
|
|
545
545
|
}
|
|
546
|
-
protoOf(EcAlgorithmIdentifier).
|
|
547
|
-
return this.
|
|
546
|
+
protoOf(EcAlgorithmIdentifier).qyo = function () {
|
|
547
|
+
return this.pyo_1;
|
|
548
548
|
};
|
|
549
|
-
protoOf(EcAlgorithmIdentifier).
|
|
550
|
-
var tmp = this.
|
|
549
|
+
protoOf(EcAlgorithmIdentifier).ryn = function () {
|
|
550
|
+
var tmp = this.qyo();
|
|
551
551
|
return tmp == null ? null : new EcParameters(tmp);
|
|
552
552
|
};
|
|
553
|
-
protoOf(EcAlgorithmIdentifier).
|
|
553
|
+
protoOf(EcAlgorithmIdentifier).qyn = function () {
|
|
554
554
|
return get_EC(Companion_instance);
|
|
555
555
|
};
|
|
556
556
|
function _EcParameters___init__impl__i4ww9z(namedCurve) {
|
|
@@ -569,10 +569,10 @@ function $serializer_1() {
|
|
|
569
569
|
$serializer_instance_1 = this;
|
|
570
570
|
var tmp0_serialDesc = new InlineClassDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.EcParameters', this);
|
|
571
571
|
tmp0_serialDesc.k14('namedCurve', false);
|
|
572
|
-
this.
|
|
572
|
+
this.ryo_1 = tmp0_serialDesc;
|
|
573
573
|
}
|
|
574
|
-
protoOf($serializer_1).
|
|
575
|
-
var tmp0_inlineEncoder = encoder.dy(this.
|
|
574
|
+
protoOf($serializer_1).syo = function (encoder, value) {
|
|
575
|
+
var tmp0_inlineEncoder = encoder.dy(this.ryo_1);
|
|
576
576
|
if (tmp0_inlineEncoder == null)
|
|
577
577
|
null;
|
|
578
578
|
else {
|
|
@@ -580,16 +580,16 @@ protoOf($serializer_1).kyo = function (encoder, value) {
|
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
582
|
protoOf($serializer_1).ut = function (encoder, value) {
|
|
583
|
-
return this.
|
|
583
|
+
return this.syo(encoder, value instanceof EcParameters ? value.syn_1 : THROW_CCE());
|
|
584
584
|
};
|
|
585
|
-
protoOf($serializer_1).
|
|
586
|
-
return _EcParameters___init__impl__i4ww9z(decoder.vw(this.
|
|
585
|
+
protoOf($serializer_1).tyo = function (decoder) {
|
|
586
|
+
return _EcParameters___init__impl__i4ww9z(decoder.vw(this.ryo_1).wt($serializer_getInstance()).mym_1);
|
|
587
587
|
};
|
|
588
588
|
protoOf($serializer_1).vt = function (decoder) {
|
|
589
|
-
return new EcParameters(this.
|
|
589
|
+
return new EcParameters(this.tyo(decoder));
|
|
590
590
|
};
|
|
591
591
|
protoOf($serializer_1).ht = function () {
|
|
592
|
-
return this.
|
|
592
|
+
return this.ryo_1;
|
|
593
593
|
};
|
|
594
594
|
protoOf($serializer_1).d15 = function () {
|
|
595
595
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -612,21 +612,21 @@ function EcParameters__hashCode_impl_prn1m($this) {
|
|
|
612
612
|
function EcParameters__equals_impl_5tm4e2($this, other) {
|
|
613
613
|
if (!(other instanceof EcParameters))
|
|
614
614
|
return false;
|
|
615
|
-
if (!($this === other.
|
|
615
|
+
if (!($this === other.syn_1))
|
|
616
616
|
return false;
|
|
617
617
|
return true;
|
|
618
618
|
}
|
|
619
619
|
function EcParameters(namedCurve) {
|
|
620
|
-
this.
|
|
620
|
+
this.syn_1 = namedCurve;
|
|
621
621
|
}
|
|
622
622
|
protoOf(EcParameters).toString = function () {
|
|
623
|
-
return EcParameters__toString_impl_mgxjuh(this.
|
|
623
|
+
return EcParameters__toString_impl_mgxjuh(this.syn_1);
|
|
624
624
|
};
|
|
625
625
|
protoOf(EcParameters).hashCode = function () {
|
|
626
|
-
return EcParameters__hashCode_impl_prn1m(this.
|
|
626
|
+
return EcParameters__hashCode_impl_prn1m(this.syn_1);
|
|
627
627
|
};
|
|
628
628
|
protoOf(EcParameters).equals = function (other) {
|
|
629
|
-
return EcParameters__equals_impl_5tm4e2(this.
|
|
629
|
+
return EcParameters__equals_impl_5tm4e2(this.syn_1, other);
|
|
630
630
|
};
|
|
631
631
|
function Companion_2() {
|
|
632
632
|
}
|
|
@@ -646,35 +646,35 @@ function $serializer_2() {
|
|
|
646
646
|
tmp0_serialDesc.u13(new ContextSpecificTag(0, TagType_EXPLICIT_getInstance()));
|
|
647
647
|
tmp0_serialDesc.k14('publicKey', true);
|
|
648
648
|
tmp0_serialDesc.u13(new ContextSpecificTag(1, TagType_EXPLICIT_getInstance()));
|
|
649
|
-
this.
|
|
649
|
+
this.uyo_1 = tmp0_serialDesc;
|
|
650
650
|
}
|
|
651
|
-
protoOf($serializer_2).
|
|
652
|
-
var tmp0_desc = this.
|
|
651
|
+
protoOf($serializer_2).vyo = function (encoder, value) {
|
|
652
|
+
var tmp0_desc = this.uyo_1;
|
|
653
653
|
var tmp1_output = encoder.xw(tmp0_desc);
|
|
654
|
-
tmp1_output.hy(tmp0_desc, 0, value.
|
|
655
|
-
tmp1_output.oy(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.
|
|
654
|
+
tmp1_output.hy(tmp0_desc, 0, value.wyo_1);
|
|
655
|
+
tmp1_output.oy(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.xyo_1);
|
|
656
656
|
var tmp;
|
|
657
657
|
if (tmp1_output.ty(tmp0_desc, 2)) {
|
|
658
658
|
tmp = true;
|
|
659
659
|
} else {
|
|
660
|
-
var tmp_0 = value.
|
|
660
|
+
var tmp_0 = value.yyo_1;
|
|
661
661
|
tmp = !((tmp_0 == null ? null : new EcParameters(tmp_0)) == null);
|
|
662
662
|
}
|
|
663
663
|
if (tmp) {
|
|
664
664
|
var tmp_1 = $serializer_getInstance_3();
|
|
665
|
-
var tmp_2 = value.
|
|
665
|
+
var tmp_2 = value.yyo_1;
|
|
666
666
|
tmp1_output.py(tmp0_desc, 2, tmp_1, tmp_2 == null ? null : new EcParameters(tmp_2));
|
|
667
667
|
}
|
|
668
|
-
if (tmp1_output.ty(tmp0_desc, 3) ? true : !(value.
|
|
669
|
-
tmp1_output.py(tmp0_desc, 3, $serializer_getInstance_0(), value.
|
|
668
|
+
if (tmp1_output.ty(tmp0_desc, 3) ? true : !(value.zyo_1 == null)) {
|
|
669
|
+
tmp1_output.py(tmp0_desc, 3, $serializer_getInstance_0(), value.zyo_1);
|
|
670
670
|
}
|
|
671
671
|
tmp1_output.yw(tmp0_desc);
|
|
672
672
|
};
|
|
673
673
|
protoOf($serializer_2).ut = function (encoder, value) {
|
|
674
|
-
return this.
|
|
674
|
+
return this.vyo(encoder, value instanceof EcPrivateKey ? value : THROW_CCE());
|
|
675
675
|
};
|
|
676
676
|
protoOf($serializer_2).vt = function (decoder) {
|
|
677
|
-
var tmp0_desc = this.
|
|
677
|
+
var tmp0_desc = this.uyo_1;
|
|
678
678
|
var tmp1_flag = true;
|
|
679
679
|
var tmp2_index = 0;
|
|
680
680
|
var tmp3_bitMask0 = 0;
|
|
@@ -691,7 +691,7 @@ protoOf($serializer_2).vt = function (decoder) {
|
|
|
691
691
|
var tmp = $serializer_getInstance_3();
|
|
692
692
|
var tmp_0 = tmp6_local2;
|
|
693
693
|
var tmp_1 = tmp8_input.lx(tmp0_desc, 2, tmp, tmp_0 == null ? null : new EcParameters(tmp_0));
|
|
694
|
-
tmp6_local2 = tmp_1 == null ? null : tmp_1.
|
|
694
|
+
tmp6_local2 = tmp_1 == null ? null : tmp_1.syn_1;
|
|
695
695
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
696
696
|
tmp7_local3 = tmp8_input.lx(tmp0_desc, 3, $serializer_getInstance_0(), tmp7_local3);
|
|
697
697
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
@@ -714,7 +714,7 @@ protoOf($serializer_2).vt = function (decoder) {
|
|
|
714
714
|
var tmp_2 = $serializer_getInstance_3();
|
|
715
715
|
var tmp_3 = tmp6_local2;
|
|
716
716
|
var tmp_4 = tmp8_input.lx(tmp0_desc, 2, tmp_2, tmp_3 == null ? null : new EcParameters(tmp_3));
|
|
717
|
-
tmp6_local2 = tmp_4 == null ? null : tmp_4.
|
|
717
|
+
tmp6_local2 = tmp_4 == null ? null : tmp_4.syn_1;
|
|
718
718
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
719
719
|
break;
|
|
720
720
|
case 3:
|
|
@@ -729,7 +729,7 @@ protoOf($serializer_2).vt = function (decoder) {
|
|
|
729
729
|
return EcPrivateKey_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
730
730
|
};
|
|
731
731
|
protoOf($serializer_2).ht = function () {
|
|
732
|
-
return this.
|
|
732
|
+
return this.uyo_1;
|
|
733
733
|
};
|
|
734
734
|
protoOf($serializer_2).d15 = function () {
|
|
735
735
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -745,18 +745,18 @@ function $serializer_getInstance_4() {
|
|
|
745
745
|
}
|
|
746
746
|
function EcPrivateKey_init_$Init$(seen0, version, privateKey, parameters, publicKey, serializationConstructorMarker, $this) {
|
|
747
747
|
if (!(3 === (3 & seen0))) {
|
|
748
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().
|
|
748
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().uyo_1);
|
|
749
749
|
}
|
|
750
|
-
$this.
|
|
751
|
-
$this.
|
|
750
|
+
$this.wyo_1 = version;
|
|
751
|
+
$this.xyo_1 = privateKey;
|
|
752
752
|
if (0 === (seen0 & 4))
|
|
753
|
-
$this.
|
|
753
|
+
$this.yyo_1 = null;
|
|
754
754
|
else
|
|
755
|
-
$this.
|
|
755
|
+
$this.yyo_1 = parameters;
|
|
756
756
|
if (0 === (seen0 & 8))
|
|
757
|
-
$this.
|
|
757
|
+
$this.zyo_1 = null;
|
|
758
758
|
else
|
|
759
|
-
$this.
|
|
759
|
+
$this.zyo_1 = publicKey;
|
|
760
760
|
return $this;
|
|
761
761
|
}
|
|
762
762
|
function EcPrivateKey_init_$Create$(seen0, version, privateKey, parameters, publicKey, serializationConstructorMarker) {
|
|
@@ -765,20 +765,20 @@ function EcPrivateKey_init_$Create$(seen0, version, privateKey, parameters, publ
|
|
|
765
765
|
function EcPrivateKey(version, privateKey, parameters, publicKey) {
|
|
766
766
|
parameters = parameters === VOID ? null : parameters;
|
|
767
767
|
publicKey = publicKey === VOID ? null : publicKey;
|
|
768
|
-
this.
|
|
769
|
-
this.
|
|
770
|
-
this.
|
|
771
|
-
this.
|
|
768
|
+
this.wyo_1 = version;
|
|
769
|
+
this.xyo_1 = privateKey;
|
|
770
|
+
this.yyo_1 = parameters;
|
|
771
|
+
this.zyo_1 = publicKey;
|
|
772
772
|
}
|
|
773
773
|
function get_EC(_this__u8e3s4) {
|
|
774
774
|
return _ObjectIdentifier___init__impl__7hutfr('1.2.840.10045.2.1');
|
|
775
775
|
}
|
|
776
776
|
function Ed25519AlgorithmIdentifier() {
|
|
777
777
|
}
|
|
778
|
-
protoOf(Ed25519AlgorithmIdentifier).
|
|
778
|
+
protoOf(Ed25519AlgorithmIdentifier).ryn = function () {
|
|
779
779
|
return null;
|
|
780
780
|
};
|
|
781
|
-
protoOf(Ed25519AlgorithmIdentifier).
|
|
781
|
+
protoOf(Ed25519AlgorithmIdentifier).qyn = function () {
|
|
782
782
|
return get_Ed25519(Companion_instance);
|
|
783
783
|
};
|
|
784
784
|
var Ed25519AlgorithmIdentifier_instance;
|
|
@@ -787,10 +787,10 @@ function Ed25519AlgorithmIdentifier_getInstance() {
|
|
|
787
787
|
}
|
|
788
788
|
function Ed448AlgorithmIdentifier() {
|
|
789
789
|
}
|
|
790
|
-
protoOf(Ed448AlgorithmIdentifier).
|
|
790
|
+
protoOf(Ed448AlgorithmIdentifier).ryn = function () {
|
|
791
791
|
return null;
|
|
792
792
|
};
|
|
793
|
-
protoOf(Ed448AlgorithmIdentifier).
|
|
793
|
+
protoOf(Ed448AlgorithmIdentifier).qyn = function () {
|
|
794
794
|
return get_Ed448(Companion_instance);
|
|
795
795
|
};
|
|
796
796
|
var Ed448AlgorithmIdentifier_instance;
|
|
@@ -799,10 +799,10 @@ function Ed448AlgorithmIdentifier_getInstance() {
|
|
|
799
799
|
}
|
|
800
800
|
function X25519AlgorithmIdentifier() {
|
|
801
801
|
}
|
|
802
|
-
protoOf(X25519AlgorithmIdentifier).
|
|
802
|
+
protoOf(X25519AlgorithmIdentifier).ryn = function () {
|
|
803
803
|
return null;
|
|
804
804
|
};
|
|
805
|
-
protoOf(X25519AlgorithmIdentifier).
|
|
805
|
+
protoOf(X25519AlgorithmIdentifier).qyn = function () {
|
|
806
806
|
return get_X25519(Companion_instance);
|
|
807
807
|
};
|
|
808
808
|
var X25519AlgorithmIdentifier_instance;
|
|
@@ -811,10 +811,10 @@ function X25519AlgorithmIdentifier_getInstance() {
|
|
|
811
811
|
}
|
|
812
812
|
function X448AlgorithmIdentifier() {
|
|
813
813
|
}
|
|
814
|
-
protoOf(X448AlgorithmIdentifier).
|
|
814
|
+
protoOf(X448AlgorithmIdentifier).ryn = function () {
|
|
815
815
|
return null;
|
|
816
816
|
};
|
|
817
|
-
protoOf(X448AlgorithmIdentifier).
|
|
817
|
+
protoOf(X448AlgorithmIdentifier).qyn = function () {
|
|
818
818
|
return get_X448(Companion_instance);
|
|
819
819
|
};
|
|
820
820
|
var X448AlgorithmIdentifier_instance;
|
|
@@ -849,7 +849,7 @@ function Companion_3() {
|
|
|
849
849
|
// Inline function 'kotlin.arrayOf' call
|
|
850
850
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
851
851
|
// Inline function 'kotlin.js.asDynamic' call
|
|
852
|
-
tmp.
|
|
852
|
+
tmp.ayp_1 = [null, lazy(tmp_0, PrivateKeyInfo$Companion$$childSerializers$_anonymous__z2jngg), null, null];
|
|
853
853
|
}
|
|
854
854
|
protoOf(Companion_3).o6k = function () {
|
|
855
855
|
return $serializer_getInstance_5();
|
|
@@ -868,25 +868,25 @@ function $serializer_3() {
|
|
|
868
868
|
tmp0_serialDesc.k14('privateKey', false);
|
|
869
869
|
tmp0_serialDesc.k14('publicKey', true);
|
|
870
870
|
tmp0_serialDesc.u13(new ContextSpecificTag(1, TagType_IMPLICIT_getInstance()));
|
|
871
|
-
this.
|
|
871
|
+
this.byp_1 = tmp0_serialDesc;
|
|
872
872
|
}
|
|
873
|
-
protoOf($serializer_3).
|
|
874
|
-
var tmp0_desc = this.
|
|
873
|
+
protoOf($serializer_3).cyp = function (encoder, value) {
|
|
874
|
+
var tmp0_desc = this.byp_1;
|
|
875
875
|
var tmp1_output = encoder.xw(tmp0_desc);
|
|
876
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
877
|
-
tmp1_output.hy(tmp0_desc, 0, value.
|
|
878
|
-
tmp1_output.oy(tmp0_desc, 1, tmp2_cached[1].n1(), value.
|
|
879
|
-
tmp1_output.oy(tmp0_desc, 2, ByteArraySerializer_getInstance(), value.
|
|
880
|
-
if (tmp1_output.ty(tmp0_desc, 3) ? true : !(value.
|
|
881
|
-
tmp1_output.py(tmp0_desc, 3, $serializer_getInstance_0(), value.
|
|
876
|
+
var tmp2_cached = Companion_getInstance_3().ayp_1;
|
|
877
|
+
tmp1_output.hy(tmp0_desc, 0, value.dyp_1);
|
|
878
|
+
tmp1_output.oy(tmp0_desc, 1, tmp2_cached[1].n1(), value.eyp_1);
|
|
879
|
+
tmp1_output.oy(tmp0_desc, 2, ByteArraySerializer_getInstance(), value.fyp_1);
|
|
880
|
+
if (tmp1_output.ty(tmp0_desc, 3) ? true : !(value.gyp_1 == null)) {
|
|
881
|
+
tmp1_output.py(tmp0_desc, 3, $serializer_getInstance_0(), value.gyp_1);
|
|
882
882
|
}
|
|
883
883
|
tmp1_output.yw(tmp0_desc);
|
|
884
884
|
};
|
|
885
885
|
protoOf($serializer_3).ut = function (encoder, value) {
|
|
886
|
-
return this.
|
|
886
|
+
return this.cyp(encoder, value instanceof PrivateKeyInfo ? value : THROW_CCE());
|
|
887
887
|
};
|
|
888
888
|
protoOf($serializer_3).vt = function (decoder) {
|
|
889
|
-
var tmp0_desc = this.
|
|
889
|
+
var tmp0_desc = this.byp_1;
|
|
890
890
|
var tmp1_flag = true;
|
|
891
891
|
var tmp2_index = 0;
|
|
892
892
|
var tmp3_bitMask0 = 0;
|
|
@@ -895,7 +895,7 @@ protoOf($serializer_3).vt = function (decoder) {
|
|
|
895
895
|
var tmp6_local2 = null;
|
|
896
896
|
var tmp7_local3 = null;
|
|
897
897
|
var tmp8_input = decoder.xw(tmp0_desc);
|
|
898
|
-
var tmp9_cached = Companion_getInstance_3().
|
|
898
|
+
var tmp9_cached = Companion_getInstance_3().ayp_1;
|
|
899
899
|
if (tmp8_input.nx()) {
|
|
900
900
|
tmp4_local0 = tmp8_input.cx(tmp0_desc, 0);
|
|
901
901
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -936,10 +936,10 @@ protoOf($serializer_3).vt = function (decoder) {
|
|
|
936
936
|
return PrivateKeyInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
937
937
|
};
|
|
938
938
|
protoOf($serializer_3).ht = function () {
|
|
939
|
-
return this.
|
|
939
|
+
return this.byp_1;
|
|
940
940
|
};
|
|
941
941
|
protoOf($serializer_3).d15 = function () {
|
|
942
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
942
|
+
var tmp0_cached = Companion_getInstance_3().ayp_1;
|
|
943
943
|
// Inline function 'kotlin.arrayOf' call
|
|
944
944
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
945
945
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -953,15 +953,15 @@ function $serializer_getInstance_5() {
|
|
|
953
953
|
}
|
|
954
954
|
function PrivateKeyInfo_init_$Init$(seen0, version, privateKeyAlgorithm, privateKey, publicKey, serializationConstructorMarker, $this) {
|
|
955
955
|
if (!(7 === (7 & seen0))) {
|
|
956
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_5().
|
|
956
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_5().byp_1);
|
|
957
957
|
}
|
|
958
|
-
$this.
|
|
959
|
-
$this.
|
|
960
|
-
$this.
|
|
958
|
+
$this.dyp_1 = version;
|
|
959
|
+
$this.eyp_1 = privateKeyAlgorithm;
|
|
960
|
+
$this.fyp_1 = privateKey;
|
|
961
961
|
if (0 === (seen0 & 8))
|
|
962
|
-
$this.
|
|
962
|
+
$this.gyp_1 = null;
|
|
963
963
|
else
|
|
964
|
-
$this.
|
|
964
|
+
$this.gyp_1 = publicKey;
|
|
965
965
|
return $this;
|
|
966
966
|
}
|
|
967
967
|
function PrivateKeyInfo_init_$Create$(seen0, version, privateKeyAlgorithm, privateKey, publicKey, serializationConstructorMarker) {
|
|
@@ -970,10 +970,10 @@ function PrivateKeyInfo_init_$Create$(seen0, version, privateKeyAlgorithm, priva
|
|
|
970
970
|
function PrivateKeyInfo(version, privateKeyAlgorithm, privateKey, publicKey) {
|
|
971
971
|
Companion_getInstance_3();
|
|
972
972
|
publicKey = publicKey === VOID ? null : publicKey;
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
976
|
-
this.
|
|
973
|
+
this.dyp_1 = version;
|
|
974
|
+
this.eyp_1 = privateKeyAlgorithm;
|
|
975
|
+
this.fyp_1 = privateKey;
|
|
976
|
+
this.gyp_1 = publicKey;
|
|
977
977
|
}
|
|
978
978
|
function SubjectPublicKeyInfo$Companion$$childSerializers$_anonymous__ezpjw2() {
|
|
979
979
|
var tmp = getKClass(AlgorithmIdentifier);
|
|
@@ -991,7 +991,7 @@ function Companion_4() {
|
|
|
991
991
|
// Inline function 'kotlin.arrayOf' call
|
|
992
992
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
993
993
|
// Inline function 'kotlin.js.asDynamic' call
|
|
994
|
-
tmp.
|
|
994
|
+
tmp.hyp_1 = [lazy(tmp_0, SubjectPublicKeyInfo$Companion$$childSerializers$_anonymous__ezpjw2), null];
|
|
995
995
|
}
|
|
996
996
|
protoOf(Companion_4).o6k = function () {
|
|
997
997
|
return $serializer_getInstance_6();
|
|
@@ -1007,28 +1007,28 @@ function $serializer_4() {
|
|
|
1007
1007
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.SubjectPublicKeyInfo', this, 2);
|
|
1008
1008
|
tmp0_serialDesc.k14('algorithm', false);
|
|
1009
1009
|
tmp0_serialDesc.k14('subjectPublicKey', false);
|
|
1010
|
-
this.
|
|
1010
|
+
this.iyp_1 = tmp0_serialDesc;
|
|
1011
1011
|
}
|
|
1012
|
-
protoOf($serializer_4).
|
|
1013
|
-
var tmp0_desc = this.
|
|
1012
|
+
protoOf($serializer_4).jyp = function (encoder, value) {
|
|
1013
|
+
var tmp0_desc = this.iyp_1;
|
|
1014
1014
|
var tmp1_output = encoder.xw(tmp0_desc);
|
|
1015
|
-
var tmp2_cached = Companion_getInstance_4().
|
|
1016
|
-
tmp1_output.oy(tmp0_desc, 0, tmp2_cached[0].n1(), value.
|
|
1017
|
-
tmp1_output.oy(tmp0_desc, 1, $serializer_getInstance_0(), value.
|
|
1015
|
+
var tmp2_cached = Companion_getInstance_4().hyp_1;
|
|
1016
|
+
tmp1_output.oy(tmp0_desc, 0, tmp2_cached[0].n1(), value.kyp_1);
|
|
1017
|
+
tmp1_output.oy(tmp0_desc, 1, $serializer_getInstance_0(), value.lyp_1);
|
|
1018
1018
|
tmp1_output.yw(tmp0_desc);
|
|
1019
1019
|
};
|
|
1020
1020
|
protoOf($serializer_4).ut = function (encoder, value) {
|
|
1021
|
-
return this.
|
|
1021
|
+
return this.jyp(encoder, value instanceof SubjectPublicKeyInfo ? value : THROW_CCE());
|
|
1022
1022
|
};
|
|
1023
1023
|
protoOf($serializer_4).vt = function (decoder) {
|
|
1024
|
-
var tmp0_desc = this.
|
|
1024
|
+
var tmp0_desc = this.iyp_1;
|
|
1025
1025
|
var tmp1_flag = true;
|
|
1026
1026
|
var tmp2_index = 0;
|
|
1027
1027
|
var tmp3_bitMask0 = 0;
|
|
1028
1028
|
var tmp4_local0 = null;
|
|
1029
1029
|
var tmp5_local1 = null;
|
|
1030
1030
|
var tmp6_input = decoder.xw(tmp0_desc);
|
|
1031
|
-
var tmp7_cached = Companion_getInstance_4().
|
|
1031
|
+
var tmp7_cached = Companion_getInstance_4().hyp_1;
|
|
1032
1032
|
if (tmp6_input.nx()) {
|
|
1033
1033
|
tmp4_local0 = tmp6_input.jx(tmp0_desc, 0, tmp7_cached[0].n1(), tmp4_local0);
|
|
1034
1034
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1057,13 +1057,13 @@ protoOf($serializer_4).vt = function (decoder) {
|
|
|
1057
1057
|
return SubjectPublicKeyInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1058
1058
|
};
|
|
1059
1059
|
protoOf($serializer_4).ht = function () {
|
|
1060
|
-
return this.
|
|
1060
|
+
return this.iyp_1;
|
|
1061
1061
|
};
|
|
1062
1062
|
protoOf($serializer_4).d15 = function () {
|
|
1063
1063
|
// Inline function 'kotlin.arrayOf' call
|
|
1064
1064
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1065
1065
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1066
|
-
return [Companion_getInstance_4().
|
|
1066
|
+
return [Companion_getInstance_4().hyp_1[0].n1(), $serializer_getInstance_0()];
|
|
1067
1067
|
};
|
|
1068
1068
|
var $serializer_instance_4;
|
|
1069
1069
|
function $serializer_getInstance_6() {
|
|
@@ -1073,10 +1073,10 @@ function $serializer_getInstance_6() {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
function SubjectPublicKeyInfo_init_$Init$(seen0, algorithm, subjectPublicKey, serializationConstructorMarker, $this) {
|
|
1075
1075
|
if (!(3 === (3 & seen0))) {
|
|
1076
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
1076
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().iyp_1);
|
|
1077
1077
|
}
|
|
1078
|
-
$this.
|
|
1079
|
-
$this.
|
|
1078
|
+
$this.kyp_1 = algorithm;
|
|
1079
|
+
$this.lyp_1 = subjectPublicKey;
|
|
1080
1080
|
return $this;
|
|
1081
1081
|
}
|
|
1082
1082
|
function SubjectPublicKeyInfo_init_$Create$(seen0, algorithm, subjectPublicKey, serializationConstructorMarker) {
|
|
@@ -1084,15 +1084,15 @@ function SubjectPublicKeyInfo_init_$Create$(seen0, algorithm, subjectPublicKey,
|
|
|
1084
1084
|
}
|
|
1085
1085
|
function SubjectPublicKeyInfo(algorithm, subjectPublicKey) {
|
|
1086
1086
|
Companion_getInstance_4();
|
|
1087
|
-
this.
|
|
1088
|
-
this.
|
|
1087
|
+
this.kyp_1 = algorithm;
|
|
1088
|
+
this.lyp_1 = subjectPublicKey;
|
|
1089
1089
|
}
|
|
1090
1090
|
function RsaAlgorithmIdentifier() {
|
|
1091
1091
|
}
|
|
1092
|
-
protoOf(RsaAlgorithmIdentifier).
|
|
1092
|
+
protoOf(RsaAlgorithmIdentifier).qyn = function () {
|
|
1093
1093
|
return get_RSA(Companion_instance);
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(RsaAlgorithmIdentifier).
|
|
1095
|
+
protoOf(RsaAlgorithmIdentifier).ryn = function () {
|
|
1096
1096
|
return null;
|
|
1097
1097
|
};
|
|
1098
1098
|
var RsaAlgorithmIdentifier_instance;
|