@solibo/solibo-sdk 1.16.9 → 1.16.10
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/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/client.mjs +23 -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/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- 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/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +25972 -25586
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +22 -3
- package/solibo-sdk-sdk.mjs +4639 -4639
- package/solibo-sdk-sdk.mjs.map +1 -1
|
@@ -103,26 +103,26 @@ function TagType_EXPLICIT_getInstance() {
|
|
|
103
103
|
return TagType_EXPLICIT_instance;
|
|
104
104
|
}
|
|
105
105
|
function ContextSpecificTag(classIndex, type) {
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
106
|
+
this.kyl_1 = classIndex;
|
|
107
|
+
this.lyl_1 = type;
|
|
108
108
|
}
|
|
109
109
|
protoOf(ContextSpecificTag).equals = function (other) {
|
|
110
110
|
if (!(other instanceof ContextSpecificTag))
|
|
111
111
|
return false;
|
|
112
112
|
var tmp0_other_with_cast = other instanceof ContextSpecificTag ? other : THROW_CCE();
|
|
113
|
-
if (!(this.
|
|
113
|
+
if (!(this.kyl_1 === tmp0_other_with_cast.kyl_1))
|
|
114
114
|
return false;
|
|
115
|
-
if (!this.
|
|
115
|
+
if (!this.lyl_1.equals(tmp0_other_with_cast.lyl_1))
|
|
116
116
|
return false;
|
|
117
117
|
return true;
|
|
118
118
|
};
|
|
119
119
|
protoOf(ContextSpecificTag).hashCode = function () {
|
|
120
|
-
var result = imul(getStringHashCode('classIndex'), 127) ^ this.
|
|
121
|
-
result = result + (imul(getStringHashCode('type'), 127) ^ this.
|
|
120
|
+
var result = imul(getStringHashCode('classIndex'), 127) ^ this.kyl_1;
|
|
121
|
+
result = result + (imul(getStringHashCode('type'), 127) ^ this.lyl_1.hashCode()) | 0;
|
|
122
122
|
return result;
|
|
123
123
|
};
|
|
124
124
|
protoOf(ContextSpecificTag).toString = function () {
|
|
125
|
-
return '@dev.whyoleg.cryptography.serialization.asn1.ContextSpecificTag(' + 'classIndex=' + this.
|
|
125
|
+
return '@dev.whyoleg.cryptography.serialization.asn1.ContextSpecificTag(' + 'classIndex=' + this.kyl_1 + ', ' + 'type=' + this.lyl_1.toString() + ')';
|
|
126
126
|
};
|
|
127
127
|
function Companion() {
|
|
128
128
|
}
|
|
@@ -138,20 +138,20 @@ function $serializer() {
|
|
|
138
138
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.BitArray', this, 2);
|
|
139
139
|
tmp0_serialDesc.k14('unusedBits', false);
|
|
140
140
|
tmp0_serialDesc.k14('byteArray', false);
|
|
141
|
-
this.
|
|
141
|
+
this.myl_1 = tmp0_serialDesc;
|
|
142
142
|
}
|
|
143
|
-
protoOf($serializer).
|
|
144
|
-
var tmp0_desc = this.
|
|
143
|
+
protoOf($serializer).nyl = function (encoder, value) {
|
|
144
|
+
var tmp0_desc = this.myl_1;
|
|
145
145
|
var tmp1_output = encoder.xw(tmp0_desc);
|
|
146
|
-
tmp1_output.hy(tmp0_desc, 0, value.
|
|
147
|
-
tmp1_output.oy(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.
|
|
146
|
+
tmp1_output.hy(tmp0_desc, 0, value.oyl_1);
|
|
147
|
+
tmp1_output.oy(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.pyl_1);
|
|
148
148
|
tmp1_output.yw(tmp0_desc);
|
|
149
149
|
};
|
|
150
150
|
protoOf($serializer).ut = function (encoder, value) {
|
|
151
|
-
return this.
|
|
151
|
+
return this.nyl(encoder, value instanceof BitArray ? value : THROW_CCE());
|
|
152
152
|
};
|
|
153
153
|
protoOf($serializer).vt = function (decoder) {
|
|
154
|
-
var tmp0_desc = this.
|
|
154
|
+
var tmp0_desc = this.myl_1;
|
|
155
155
|
var tmp1_flag = true;
|
|
156
156
|
var tmp2_index = 0;
|
|
157
157
|
var tmp3_bitMask0 = 0;
|
|
@@ -186,7 +186,7 @@ protoOf($serializer).vt = function (decoder) {
|
|
|
186
186
|
return BitArray_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
187
187
|
};
|
|
188
188
|
protoOf($serializer).ht = function () {
|
|
189
|
-
return this.
|
|
189
|
+
return this.myl_1;
|
|
190
190
|
};
|
|
191
191
|
protoOf($serializer).d15 = function () {
|
|
192
192
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -202,24 +202,24 @@ function $serializer_getInstance() {
|
|
|
202
202
|
}
|
|
203
203
|
function BitArray_init_$Init$(seen0, unusedBits, byteArray, serializationConstructorMarker, $this) {
|
|
204
204
|
if (!(3 === (3 & seen0))) {
|
|
205
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
205
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().myl_1);
|
|
206
206
|
}
|
|
207
|
-
$this.
|
|
208
|
-
$this.
|
|
207
|
+
$this.oyl_1 = unusedBits;
|
|
208
|
+
$this.pyl_1 = byteArray;
|
|
209
209
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
210
|
-
if ($this.
|
|
210
|
+
if ($this.pyl_1.length === 0) {
|
|
211
211
|
// Inline function 'kotlin.check' call
|
|
212
|
-
if (!($this.
|
|
212
|
+
if (!($this.oyl_1 === 0)) {
|
|
213
213
|
var message = "empty array couldn't have unused bits";
|
|
214
214
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
215
215
|
}
|
|
216
216
|
} else {
|
|
217
217
|
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
218
|
-
var this_0 = last($this.
|
|
218
|
+
var this_0 = last($this.pyl_1);
|
|
219
219
|
var tmp$ret$3 = countTrailingZeroBits(this_0 | 256);
|
|
220
220
|
// Inline function 'kotlin.check' call
|
|
221
|
-
if (!($this.
|
|
222
|
-
var message_0 = 'At least ' + $this.
|
|
221
|
+
if (!($this.oyl_1 <= tmp$ret$3)) {
|
|
222
|
+
var message_0 = 'At least ' + $this.oyl_1 + ' last bits should be unused';
|
|
223
223
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
224
224
|
}
|
|
225
225
|
}
|
|
@@ -229,22 +229,22 @@ function BitArray_init_$Create$(seen0, unusedBits, byteArray, serializationConst
|
|
|
229
229
|
return BitArray_init_$Init$(seen0, unusedBits, byteArray, serializationConstructorMarker, objectCreate(protoOf(BitArray)));
|
|
230
230
|
}
|
|
231
231
|
function BitArray(unusedBits, byteArray) {
|
|
232
|
-
this.
|
|
233
|
-
this.
|
|
232
|
+
this.oyl_1 = unusedBits;
|
|
233
|
+
this.pyl_1 = byteArray;
|
|
234
234
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
235
|
-
if (this.
|
|
235
|
+
if (this.pyl_1.length === 0) {
|
|
236
236
|
// Inline function 'kotlin.check' call
|
|
237
|
-
if (!(this.
|
|
237
|
+
if (!(this.oyl_1 === 0)) {
|
|
238
238
|
var message = "empty array couldn't have unused bits";
|
|
239
239
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
240
240
|
}
|
|
241
241
|
} else {
|
|
242
242
|
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
243
|
-
var this_0 = last(this.
|
|
243
|
+
var this_0 = last(this.pyl_1);
|
|
244
244
|
var tmp$ret$3 = countTrailingZeroBits(this_0 | 256);
|
|
245
245
|
// Inline function 'kotlin.check' call
|
|
246
|
-
if (!(this.
|
|
247
|
-
var message_0 = 'At least ' + this.
|
|
246
|
+
if (!(this.oyl_1 <= tmp$ret$3)) {
|
|
247
|
+
var message_0 = 'At least ' + this.oyl_1 + ' last bits should be unused';
|
|
248
248
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
249
249
|
}
|
|
250
250
|
}
|
|
@@ -261,15 +261,15 @@ function Default_getInstance() {
|
|
|
261
261
|
}
|
|
262
262
|
function Der(serializersModule) {
|
|
263
263
|
Default_getInstance();
|
|
264
|
-
this.
|
|
264
|
+
this.qyl_1 = serializersModule;
|
|
265
265
|
}
|
|
266
266
|
protoOf(Der).st = function () {
|
|
267
|
-
return this.
|
|
267
|
+
return this.qyl_1;
|
|
268
268
|
};
|
|
269
269
|
protoOf(Der).qu = function (serializer, value) {
|
|
270
270
|
var output = new ByteArrayOutput();
|
|
271
271
|
(new DerEncoder(this, output)).tt(serializer, value);
|
|
272
|
-
return output.
|
|
272
|
+
return output.xyl();
|
|
273
273
|
};
|
|
274
274
|
protoOf(Der).ru = function (deserializer, bytes) {
|
|
275
275
|
var input = new ByteArrayInput(bytes);
|
|
@@ -294,10 +294,10 @@ function $serializer_0() {
|
|
|
294
294
|
$serializer_instance_0 = this;
|
|
295
295
|
var tmp0_serialDesc = new InlineClassDescriptor('dev.whyoleg.cryptography.serialization.asn1.ObjectIdentifier', this);
|
|
296
296
|
tmp0_serialDesc.k14('value', false);
|
|
297
|
-
this.
|
|
297
|
+
this.cym_1 = tmp0_serialDesc;
|
|
298
298
|
}
|
|
299
|
-
protoOf($serializer_0).
|
|
300
|
-
var tmp0_inlineEncoder = encoder.dy(this.
|
|
299
|
+
protoOf($serializer_0).dym = function (encoder, value) {
|
|
300
|
+
var tmp0_inlineEncoder = encoder.dy(this.cym_1);
|
|
301
301
|
if (tmp0_inlineEncoder == null)
|
|
302
302
|
null;
|
|
303
303
|
else {
|
|
@@ -305,16 +305,16 @@ protoOf($serializer_0).byl = function (encoder, value) {
|
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
protoOf($serializer_0).ut = function (encoder, value) {
|
|
308
|
-
return this.
|
|
308
|
+
return this.dym(encoder, value instanceof ObjectIdentifier ? value.eym_1 : THROW_CCE());
|
|
309
309
|
};
|
|
310
|
-
protoOf($serializer_0).
|
|
311
|
-
return _ObjectIdentifier___init__impl__7hutfr(decoder.vw(this.
|
|
310
|
+
protoOf($serializer_0).fym = function (decoder) {
|
|
311
|
+
return _ObjectIdentifier___init__impl__7hutfr(decoder.vw(this.cym_1).tw());
|
|
312
312
|
};
|
|
313
313
|
protoOf($serializer_0).vt = function (decoder) {
|
|
314
|
-
return new ObjectIdentifier(this.
|
|
314
|
+
return new ObjectIdentifier(this.fym(decoder));
|
|
315
315
|
};
|
|
316
316
|
protoOf($serializer_0).ht = function () {
|
|
317
|
-
return this.
|
|
317
|
+
return this.cym_1;
|
|
318
318
|
};
|
|
319
319
|
protoOf($serializer_0).d15 = function () {
|
|
320
320
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -337,21 +337,21 @@ function ObjectIdentifier__hashCode_impl_7x941i($this) {
|
|
|
337
337
|
function ObjectIdentifier__equals_impl_u5dbkq($this, other) {
|
|
338
338
|
if (!(other instanceof ObjectIdentifier))
|
|
339
339
|
return false;
|
|
340
|
-
if (!($this === other.
|
|
340
|
+
if (!($this === other.eym_1))
|
|
341
341
|
return false;
|
|
342
342
|
return true;
|
|
343
343
|
}
|
|
344
344
|
function ObjectIdentifier(value) {
|
|
345
|
-
this.
|
|
345
|
+
this.eym_1 = value;
|
|
346
346
|
}
|
|
347
347
|
protoOf(ObjectIdentifier).toString = function () {
|
|
348
|
-
return ObjectIdentifier__toString_impl_dtwsrd(this.
|
|
348
|
+
return ObjectIdentifier__toString_impl_dtwsrd(this.eym_1);
|
|
349
349
|
};
|
|
350
350
|
protoOf(ObjectIdentifier).hashCode = function () {
|
|
351
|
-
return ObjectIdentifier__hashCode_impl_7x941i(this.
|
|
351
|
+
return ObjectIdentifier__hashCode_impl_7x941i(this.eym_1);
|
|
352
352
|
};
|
|
353
353
|
protoOf(ObjectIdentifier).equals = function (other) {
|
|
354
|
-
return ObjectIdentifier__equals_impl_u5dbkq(this.
|
|
354
|
+
return ObjectIdentifier__equals_impl_u5dbkq(this.eym_1, other);
|
|
355
355
|
};
|
|
356
356
|
function get_emptyArray() {
|
|
357
357
|
_init_properties_ByteArrayInput_kt__imea6f();
|
|
@@ -359,7 +359,7 @@ function get_emptyArray() {
|
|
|
359
359
|
}
|
|
360
360
|
var emptyArray;
|
|
361
361
|
function _get_available__saq0tk($this) {
|
|
362
|
-
return $this.
|
|
362
|
+
return $this.hym_1 - $this.iym_1 | 0;
|
|
363
363
|
}
|
|
364
364
|
function ensureAvailableBytes($this, count) {
|
|
365
365
|
// Inline function 'kotlin.check' call
|
|
@@ -371,42 +371,42 @@ function ensureAvailableBytes($this, count) {
|
|
|
371
371
|
function ByteArrayInput(array, startIndex, endIndex) {
|
|
372
372
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
373
373
|
endIndex = endIndex === VOID ? array.length : endIndex;
|
|
374
|
-
this.
|
|
375
|
-
this.
|
|
376
|
-
this.
|
|
374
|
+
this.gym_1 = array;
|
|
375
|
+
this.hym_1 = endIndex;
|
|
376
|
+
this.iym_1 = startIndex;
|
|
377
377
|
}
|
|
378
|
-
protoOf(ByteArrayInput).
|
|
378
|
+
protoOf(ByteArrayInput).jym = function () {
|
|
379
379
|
return _get_available__saq0tk(this) === 0;
|
|
380
380
|
};
|
|
381
381
|
protoOf(ByteArrayInput).toString = function () {
|
|
382
|
-
return 'ByteArrayInput(size=' + this.
|
|
382
|
+
return 'ByteArrayInput(size=' + this.gym_1.length + ', endIndex=' + this.hym_1 + ', position=' + this.iym_1 + ', available=' + _get_available__saq0tk(this) + ')';
|
|
383
383
|
};
|
|
384
|
-
protoOf(ByteArrayInput).
|
|
384
|
+
protoOf(ByteArrayInput).kym = function () {
|
|
385
385
|
ensureAvailableBytes(this, 1);
|
|
386
|
-
return this.
|
|
386
|
+
return this.gym_1[this.iym_1];
|
|
387
387
|
};
|
|
388
388
|
protoOf(ByteArrayInput).q6o = function () {
|
|
389
389
|
ensureAvailableBytes(this, 1);
|
|
390
|
-
var _unary__edvuaz = this.
|
|
391
|
-
this.
|
|
392
|
-
return this.
|
|
390
|
+
var _unary__edvuaz = this.iym_1;
|
|
391
|
+
this.iym_1 = _unary__edvuaz + 1 | 0;
|
|
392
|
+
return this.gym_1[_unary__edvuaz];
|
|
393
393
|
};
|
|
394
|
-
protoOf(ByteArrayInput).
|
|
394
|
+
protoOf(ByteArrayInput).lym = function (length) {
|
|
395
395
|
ensureAvailableBytes(this, length);
|
|
396
396
|
if (length === 0)
|
|
397
397
|
return get_emptyArray();
|
|
398
398
|
// Inline function 'kotlin.also' call
|
|
399
|
-
var this_0 = copyOfRange(this.
|
|
400
|
-
this.
|
|
399
|
+
var this_0 = copyOfRange(this.gym_1, this.iym_1, this.iym_1 + length | 0);
|
|
400
|
+
this.iym_1 = this.iym_1 + length | 0;
|
|
401
401
|
return this_0;
|
|
402
402
|
};
|
|
403
|
-
protoOf(ByteArrayInput).
|
|
403
|
+
protoOf(ByteArrayInput).mym = function (length) {
|
|
404
404
|
ensureAvailableBytes(this, length);
|
|
405
405
|
if (length === 0)
|
|
406
406
|
return new ByteArrayInput(get_emptyArray());
|
|
407
407
|
// Inline function 'kotlin.also' call
|
|
408
|
-
var this_0 = new ByteArrayInput(this.
|
|
409
|
-
this.
|
|
408
|
+
var this_0 = new ByteArrayInput(this.gym_1, this.iym_1, this.iym_1 + length | 0);
|
|
409
|
+
this.iym_1 = this.iym_1 + length | 0;
|
|
410
410
|
return this_0;
|
|
411
411
|
};
|
|
412
412
|
var properties_initialized_ByteArrayInput_kt_acgl39;
|
|
@@ -417,38 +417,38 @@ function _init_properties_ByteArrayInput_kt__imea6f() {
|
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
function ensureCapacity($this, elementsToAppend) {
|
|
420
|
-
if (($this.
|
|
420
|
+
if (($this.wyl_1 + elementsToAppend | 0) <= $this.vyl_1.length)
|
|
421
421
|
return Unit_instance;
|
|
422
|
-
$this.
|
|
422
|
+
$this.vyl_1 = copyOf($this.vyl_1, takeHighestOneBit($this.wyl_1 + elementsToAppend | 0) << 1);
|
|
423
423
|
}
|
|
424
424
|
function ByteArrayOutput() {
|
|
425
|
-
this.
|
|
426
|
-
this.
|
|
425
|
+
this.vyl_1 = new Int8Array(32);
|
|
426
|
+
this.wyl_1 = 0;
|
|
427
427
|
}
|
|
428
428
|
protoOf(ByteArrayOutput).g1 = function () {
|
|
429
|
-
return this.
|
|
429
|
+
return this.wyl_1;
|
|
430
430
|
};
|
|
431
|
-
protoOf(ByteArrayOutput).
|
|
432
|
-
return copyOf(this.
|
|
431
|
+
protoOf(ByteArrayOutput).xyl = function () {
|
|
432
|
+
return copyOf(this.vyl_1, this.wyl_1);
|
|
433
433
|
};
|
|
434
|
-
protoOf(ByteArrayOutput).
|
|
434
|
+
protoOf(ByteArrayOutput).nym = function (byte) {
|
|
435
435
|
ensureCapacity(this, 1);
|
|
436
|
-
var tmp = this.
|
|
437
|
-
var _unary__edvuaz = this.
|
|
438
|
-
this.
|
|
436
|
+
var tmp = this.vyl_1;
|
|
437
|
+
var _unary__edvuaz = this.wyl_1;
|
|
438
|
+
this.wyl_1 = _unary__edvuaz + 1 | 0;
|
|
439
439
|
tmp[_unary__edvuaz] = byte;
|
|
440
440
|
};
|
|
441
|
-
protoOf(ByteArrayOutput).
|
|
442
|
-
this.
|
|
441
|
+
protoOf(ByteArrayOutput).oym = function (byte) {
|
|
442
|
+
this.nym(toByte(byte));
|
|
443
443
|
};
|
|
444
|
-
protoOf(ByteArrayOutput).
|
|
444
|
+
protoOf(ByteArrayOutput).pym = function (bytes) {
|
|
445
445
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
446
446
|
if (bytes.length === 0)
|
|
447
447
|
return Unit_instance;
|
|
448
448
|
ensureCapacity(this, bytes.length);
|
|
449
|
-
var tmp2 = this.
|
|
449
|
+
var tmp2 = this.vyl_1;
|
|
450
450
|
// Inline function 'kotlin.collections.copyInto' call
|
|
451
|
-
var destinationOffset = this.
|
|
451
|
+
var destinationOffset = this.wyl_1;
|
|
452
452
|
var endIndex = bytes.length;
|
|
453
453
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
454
454
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -456,86 +456,86 @@ protoOf(ByteArrayOutput).nyl = function (bytes) {
|
|
|
456
456
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
457
457
|
// Inline function 'kotlin.js.asDynamic' call
|
|
458
458
|
arrayCopy(tmp, tmp2, destinationOffset, 0, endIndex);
|
|
459
|
-
this.
|
|
459
|
+
this.wyl_1 = this.wyl_1 + bytes.length | 0;
|
|
460
460
|
};
|
|
461
|
-
protoOf(ByteArrayOutput).
|
|
461
|
+
protoOf(ByteArrayOutput).qym = function (output) {
|
|
462
462
|
if (output.g1() === 0)
|
|
463
463
|
return Unit_instance;
|
|
464
|
-
ensureCapacity(this, output.
|
|
465
|
-
var tmp0 = output.
|
|
466
|
-
var tmp2 = this.
|
|
467
|
-
var tmp4 = this.
|
|
464
|
+
ensureCapacity(this, output.wyl_1);
|
|
465
|
+
var tmp0 = output.vyl_1;
|
|
466
|
+
var tmp2 = this.vyl_1;
|
|
467
|
+
var tmp4 = this.wyl_1;
|
|
468
468
|
// Inline function 'kotlin.collections.copyInto' call
|
|
469
|
-
var endIndex = output.
|
|
469
|
+
var endIndex = output.wyl_1;
|
|
470
470
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
471
471
|
// Inline function 'kotlin.js.asDynamic' call
|
|
472
472
|
var tmp = tmp0;
|
|
473
473
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
474
474
|
// Inline function 'kotlin.js.asDynamic' call
|
|
475
475
|
arrayCopy(tmp, tmp2, tmp4, 0, endIndex);
|
|
476
|
-
this.
|
|
476
|
+
this.wyl_1 = this.wyl_1 + output.wyl_1 | 0;
|
|
477
477
|
};
|
|
478
478
|
function getAndResetTagOverride($this) {
|
|
479
|
-
var tag = $this.
|
|
480
|
-
$this.
|
|
479
|
+
var tag = $this.bym_1;
|
|
480
|
+
$this.bym_1 = null;
|
|
481
481
|
return tag;
|
|
482
482
|
}
|
|
483
483
|
function DerDecoder(der, byteArrayInput) {
|
|
484
484
|
AbstractDecoder.call(this);
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
this.
|
|
488
|
-
this.
|
|
485
|
+
this.yyl_1 = der;
|
|
486
|
+
this.zyl_1 = new DerInput(byteArrayInput);
|
|
487
|
+
this.aym_1 = 0;
|
|
488
|
+
this.bym_1 = null;
|
|
489
489
|
}
|
|
490
490
|
protoOf(DerDecoder).st = function () {
|
|
491
|
-
return this.
|
|
491
|
+
return this.yyl_1.st();
|
|
492
492
|
};
|
|
493
493
|
protoOf(DerDecoder).ox = function (descriptor) {
|
|
494
|
-
if (this.
|
|
494
|
+
if (this.zyl_1.jym())
|
|
495
495
|
return -1;
|
|
496
|
-
var tag = this.
|
|
496
|
+
var tag = this.zyl_1.sym();
|
|
497
497
|
$l$loop: while (true) {
|
|
498
|
-
var index = this.
|
|
499
|
-
this.
|
|
498
|
+
var index = this.aym_1;
|
|
499
|
+
this.bym_1 = getElementContextSpecificTag(descriptor, index);
|
|
500
500
|
var tmp;
|
|
501
|
-
if (!(this.
|
|
501
|
+
if (!(this.bym_1 == null) && descriptor.nv(index)) {
|
|
502
502
|
var tmp_0 = tag;
|
|
503
|
-
var tmp0_safe_receiver = this.
|
|
503
|
+
var tmp0_safe_receiver = this.bym_1;
|
|
504
504
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_tag(tmp0_safe_receiver);
|
|
505
505
|
tmp = !(tmp_0 === (tmp1_safe_receiver == null ? null : tmp1_safe_receiver));
|
|
506
506
|
} else {
|
|
507
507
|
tmp = false;
|
|
508
508
|
}
|
|
509
509
|
if (tmp) {
|
|
510
|
-
this.
|
|
510
|
+
this.aym_1 = this.aym_1 + 1 | 0;
|
|
511
511
|
continue $l$loop;
|
|
512
512
|
}
|
|
513
|
-
var _unary__edvuaz = this.
|
|
514
|
-
this.
|
|
513
|
+
var _unary__edvuaz = this.aym_1;
|
|
514
|
+
this.aym_1 = _unary__edvuaz + 1 | 0;
|
|
515
515
|
return _unary__edvuaz;
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
protoOf(DerDecoder).jw = function () {
|
|
519
|
-
return this.
|
|
519
|
+
return this.zyl_1.tym();
|
|
520
520
|
};
|
|
521
521
|
protoOf(DerDecoder).kw = function () {
|
|
522
|
-
return this.
|
|
522
|
+
return this.zyl_1.uym();
|
|
523
523
|
};
|
|
524
524
|
protoOf(DerDecoder).mw = function () {
|
|
525
|
-
return this.
|
|
525
|
+
return this.zyl_1.vym(getAndResetTagOverride(this)).cyk();
|
|
526
526
|
};
|
|
527
527
|
protoOf(DerDecoder).nw = function () {
|
|
528
|
-
return this.
|
|
528
|
+
return this.zyl_1.vym(getAndResetTagOverride(this)).dyk();
|
|
529
529
|
};
|
|
530
530
|
protoOf(DerDecoder).ow = function () {
|
|
531
|
-
return this.
|
|
531
|
+
return this.zyl_1.vym(getAndResetTagOverride(this)).eyk();
|
|
532
532
|
};
|
|
533
533
|
protoOf(DerDecoder).pw = function () {
|
|
534
|
-
return this.
|
|
534
|
+
return this.zyl_1.vym(getAndResetTagOverride(this)).fyk();
|
|
535
535
|
};
|
|
536
536
|
protoOf(DerDecoder).wt = function (deserializer) {
|
|
537
537
|
var tmp0_subject = deserializer.ht();
|
|
538
|
-
return equals(tmp0_subject, ByteArraySerializer().ht()) ? this.
|
|
538
|
+
return equals(tmp0_subject, ByteArraySerializer().ht()) ? this.zyl_1.yym(getAndResetTagOverride(this)) : equals(tmp0_subject, Companion_instance.o6k().ht()) ? this.zyl_1.xym(getAndResetTagOverride(this)) : equals(tmp0_subject, Companion_instance_0.o6k().ht()) ? new ObjectIdentifier(this.zyl_1.wym(getAndResetTagOverride(this))) : equals(tmp0_subject, Companion_getInstance().o6k().ht()) ? this.zyl_1.vym(getAndResetTagOverride(this)) : deserializer.vt(this);
|
|
539
539
|
};
|
|
540
540
|
protoOf(DerDecoder).xw = function (descriptor) {
|
|
541
541
|
var tmp0_subject = descriptor.gv();
|
|
@@ -547,7 +547,7 @@ protoOf(DerDecoder).xw = function (descriptor) {
|
|
|
547
547
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
548
548
|
}
|
|
549
549
|
if (tmp_0) {
|
|
550
|
-
tmp = new DerDecoder(this.
|
|
550
|
+
tmp = new DerDecoder(this.yyl_1, this.zyl_1.zym(getAndResetTagOverride(this)));
|
|
551
551
|
} else {
|
|
552
552
|
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
553
553
|
}
|
|
@@ -595,63 +595,63 @@ protoOf(DerDecoder).iw = function () {
|
|
|
595
595
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
596
596
|
};
|
|
597
597
|
function getAndResetTagOverride_0($this) {
|
|
598
|
-
var tag = $this.
|
|
599
|
-
$this.
|
|
598
|
+
var tag = $this.uyl_1;
|
|
599
|
+
$this.uyl_1 = null;
|
|
600
600
|
return tag;
|
|
601
601
|
}
|
|
602
602
|
function DerEncoder(der, byteArrayOutput, parentOutput) {
|
|
603
603
|
parentOutput = parentOutput === VOID ? null : parentOutput;
|
|
604
604
|
AbstractEncoder.call(this);
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
605
|
+
this.ryl_1 = der;
|
|
606
|
+
this.syl_1 = parentOutput;
|
|
607
|
+
this.tyl_1 = new DerOutput(byteArrayOutput);
|
|
608
|
+
this.uyl_1 = null;
|
|
609
609
|
}
|
|
610
610
|
protoOf(DerEncoder).st = function () {
|
|
611
|
-
return this.
|
|
611
|
+
return this.ryl_1.st();
|
|
612
612
|
};
|
|
613
613
|
protoOf(DerEncoder).ty = function (descriptor, index) {
|
|
614
614
|
return false;
|
|
615
615
|
};
|
|
616
616
|
protoOf(DerEncoder).qx = function (descriptor, index) {
|
|
617
|
-
this.
|
|
617
|
+
this.uyl_1 = getElementContextSpecificTag(descriptor, index);
|
|
618
618
|
return true;
|
|
619
619
|
};
|
|
620
620
|
protoOf(DerEncoder).ry = function () {
|
|
621
621
|
};
|
|
622
622
|
protoOf(DerEncoder).sx = function () {
|
|
623
|
-
return this.
|
|
623
|
+
return this.tyl_1.byn();
|
|
624
624
|
};
|
|
625
625
|
protoOf(DerEncoder).ux = function (value) {
|
|
626
|
-
return this.
|
|
626
|
+
return this.tyl_1.cyn(getAndResetTagOverride_0(this), toBigInt(value));
|
|
627
627
|
};
|
|
628
628
|
protoOf(DerEncoder).vx = function (value) {
|
|
629
|
-
return this.
|
|
629
|
+
return this.tyl_1.cyn(getAndResetTagOverride_0(this), toBigInt_0(value));
|
|
630
630
|
};
|
|
631
631
|
protoOf(DerEncoder).wx = function (value) {
|
|
632
|
-
return this.
|
|
632
|
+
return this.tyl_1.cyn(getAndResetTagOverride_0(this), toBigInt_1(value));
|
|
633
633
|
};
|
|
634
634
|
protoOf(DerEncoder).xx = function (value) {
|
|
635
|
-
return this.
|
|
635
|
+
return this.tyl_1.cyn(getAndResetTagOverride_0(this), toBigInt_2(value));
|
|
636
636
|
};
|
|
637
637
|
protoOf(DerEncoder).tt = function (serializer, value) {
|
|
638
638
|
var tmp0_subject = serializer.ht();
|
|
639
639
|
var tmp;
|
|
640
640
|
if (equals(tmp0_subject, ByteArraySerializer().ht())) {
|
|
641
641
|
var tmp_0 = getAndResetTagOverride_0(this);
|
|
642
|
-
this.
|
|
642
|
+
this.tyl_1.fyn(tmp_0, (!(value == null) ? isByteArray(value) : false) ? value : THROW_CCE());
|
|
643
643
|
tmp = Unit_instance;
|
|
644
644
|
} else if (equals(tmp0_subject, Companion_instance.o6k().ht())) {
|
|
645
645
|
var tmp_1 = getAndResetTagOverride_0(this);
|
|
646
|
-
this.
|
|
646
|
+
this.tyl_1.eyn(tmp_1, value instanceof BitArray ? value : THROW_CCE());
|
|
647
647
|
tmp = Unit_instance;
|
|
648
648
|
} else if (equals(tmp0_subject, Companion_instance_0.o6k().ht())) {
|
|
649
649
|
var tmp_2 = getAndResetTagOverride_0(this);
|
|
650
|
-
this.
|
|
650
|
+
this.tyl_1.dyn(tmp_2, value instanceof ObjectIdentifier ? value.eym_1 : THROW_CCE());
|
|
651
651
|
tmp = Unit_instance;
|
|
652
652
|
} else if (equals(tmp0_subject, Companion_getInstance().o6k().ht())) {
|
|
653
653
|
var tmp_3 = getAndResetTagOverride_0(this);
|
|
654
|
-
this.
|
|
654
|
+
this.tyl_1.cyn(tmp_3, value instanceof BigInt ? value : THROW_CCE());
|
|
655
655
|
tmp = Unit_instance;
|
|
656
656
|
} else {
|
|
657
657
|
serializer.ut(this, value);
|
|
@@ -669,14 +669,14 @@ protoOf(DerEncoder).xw = function (descriptor) {
|
|
|
669
669
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
670
670
|
}
|
|
671
671
|
if (tmp_0) {
|
|
672
|
-
tmp = new DerEncoder(this.
|
|
672
|
+
tmp = new DerEncoder(this.ryl_1, new ByteArrayOutput(), this.tyl_1);
|
|
673
673
|
} else {
|
|
674
674
|
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
675
675
|
}
|
|
676
676
|
return tmp;
|
|
677
677
|
};
|
|
678
678
|
protoOf(DerEncoder).yw = function (descriptor) {
|
|
679
|
-
var tmp0 = this.
|
|
679
|
+
var tmp0 = this.syl_1;
|
|
680
680
|
var tmp$ret$0;
|
|
681
681
|
$l$block: {
|
|
682
682
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -688,18 +688,18 @@ protoOf(DerEncoder).yw = function (descriptor) {
|
|
|
688
688
|
break $l$block;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
tmp$ret$0.
|
|
691
|
+
tmp$ret$0.gyn(getAndResetTagOverride_0(this), this.tyl_1);
|
|
692
692
|
};
|
|
693
693
|
protoOf(DerEncoder).dy = function (descriptor) {
|
|
694
694
|
return this;
|
|
695
695
|
};
|
|
696
|
-
protoOf(DerEncoder).
|
|
696
|
+
protoOf(DerEncoder).hyn = function (enumDescriptor, index) {
|
|
697
697
|
// Inline function 'kotlin.error' call
|
|
698
698
|
var message = 'Enum encoding is not supported';
|
|
699
699
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
700
700
|
};
|
|
701
701
|
protoOf(DerEncoder).cy = function (enumDescriptor, index) {
|
|
702
|
-
return this.
|
|
702
|
+
return this.hyn(enumDescriptor, index);
|
|
703
703
|
};
|
|
704
704
|
protoOf(DerEncoder).by = function (value) {
|
|
705
705
|
// Inline function 'kotlin.error' call
|
|
@@ -732,20 +732,20 @@ protoOf(DerEncoder).rx = function (value) {
|
|
|
732
732
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
733
733
|
};
|
|
734
734
|
function DerInput(input) {
|
|
735
|
-
this.
|
|
735
|
+
this.rym_1 = input;
|
|
736
736
|
}
|
|
737
|
-
protoOf(DerInput).
|
|
738
|
-
return this.
|
|
737
|
+
protoOf(DerInput).jym = function () {
|
|
738
|
+
return this.rym_1.jym();
|
|
739
739
|
};
|
|
740
|
-
protoOf(DerInput).
|
|
741
|
-
return this.
|
|
740
|
+
protoOf(DerInput).sym = function () {
|
|
741
|
+
return this.rym_1.kym();
|
|
742
742
|
};
|
|
743
|
-
protoOf(DerInput).
|
|
744
|
-
return !(this.
|
|
743
|
+
protoOf(DerInput).tym = function () {
|
|
744
|
+
return !(this.sym() === 5);
|
|
745
745
|
};
|
|
746
|
-
protoOf(DerInput).
|
|
747
|
-
readRequestedTag(this.
|
|
748
|
-
var length = readLength(this.
|
|
746
|
+
protoOf(DerInput).uym = function () {
|
|
747
|
+
readRequestedTag(this.rym_1, 5);
|
|
748
|
+
var length = readLength(this.rym_1);
|
|
749
749
|
// Inline function 'kotlin.check' call
|
|
750
750
|
if (!(length === 0)) {
|
|
751
751
|
var message = 'NULL tag length should be zero, but was: ' + length;
|
|
@@ -753,32 +753,32 @@ protoOf(DerInput).syl = function () {
|
|
|
753
753
|
}
|
|
754
754
|
return null;
|
|
755
755
|
};
|
|
756
|
-
protoOf(DerInput).
|
|
757
|
-
var tmp0 = this.
|
|
756
|
+
protoOf(DerInput).vym = function (tagOverride) {
|
|
757
|
+
var tmp0 = this.rym_1;
|
|
758
758
|
var tmp$ret$0;
|
|
759
759
|
$l$block: {
|
|
760
760
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
761
761
|
if (tagOverride == null) {
|
|
762
762
|
readRequestedTag(tmp0, 2);
|
|
763
763
|
var length = readLength(tmp0);
|
|
764
|
-
var bytes = tmp0.
|
|
764
|
+
var bytes = tmp0.lym(length);
|
|
765
765
|
tmp$ret$0 = decodeToBigInt(bytes);
|
|
766
766
|
break $l$block;
|
|
767
767
|
}
|
|
768
768
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
769
769
|
var tmp;
|
|
770
|
-
switch (tagOverride.
|
|
770
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
771
771
|
case 0:
|
|
772
772
|
var length_0 = readLength(tmp0);
|
|
773
|
-
var bytes_0 = tmp0.
|
|
773
|
+
var bytes_0 = tmp0.lym(length_0);
|
|
774
774
|
tmp = decodeToBigInt(bytes_0);
|
|
775
775
|
break;
|
|
776
776
|
case 1:
|
|
777
777
|
var length_1 = readLength(tmp0);
|
|
778
|
-
var explicitInput = tmp0.
|
|
778
|
+
var explicitInput = tmp0.mym(length_1);
|
|
779
779
|
readRequestedTag(explicitInput, 2);
|
|
780
780
|
var length_2 = readLength(explicitInput);
|
|
781
|
-
var bytes_1 = explicitInput.
|
|
781
|
+
var bytes_1 = explicitInput.lym(length_2);
|
|
782
782
|
tmp = decodeToBigInt(bytes_1);
|
|
783
783
|
break;
|
|
784
784
|
default:
|
|
@@ -789,8 +789,8 @@ protoOf(DerInput).tyl = function (tagOverride) {
|
|
|
789
789
|
}
|
|
790
790
|
return tmp$ret$0;
|
|
791
791
|
};
|
|
792
|
-
protoOf(DerInput).
|
|
793
|
-
var tmp0 = this.
|
|
792
|
+
protoOf(DerInput).xym = function (tagOverride) {
|
|
793
|
+
var tmp0 = this.rym_1;
|
|
794
794
|
var tmp$ret$0;
|
|
795
795
|
$l$block: {
|
|
796
796
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
@@ -798,7 +798,7 @@ protoOf(DerInput).vyl = function (tagOverride) {
|
|
|
798
798
|
readRequestedTag(tmp0, 3);
|
|
799
799
|
var length = readLength(tmp0);
|
|
800
800
|
var unusedBits = tmp0.q6o();
|
|
801
|
-
var bytes = tmp0.
|
|
801
|
+
var bytes = tmp0.lym(length - 1 | 0);
|
|
802
802
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
803
803
|
if (bytes.length === 0) {
|
|
804
804
|
// Inline function 'kotlin.check' call
|
|
@@ -821,11 +821,11 @@ protoOf(DerInput).vyl = function (tagOverride) {
|
|
|
821
821
|
}
|
|
822
822
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
823
823
|
var tmp;
|
|
824
|
-
switch (tagOverride.
|
|
824
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
825
825
|
case 0:
|
|
826
826
|
var length_0 = readLength(tmp0);
|
|
827
827
|
var unusedBits_0 = tmp0.q6o();
|
|
828
|
-
var bytes_0 = tmp0.
|
|
828
|
+
var bytes_0 = tmp0.lym(length_0 - 1 | 0);
|
|
829
829
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
830
830
|
|
|
831
831
|
if (bytes_0.length === 0) {
|
|
@@ -849,11 +849,11 @@ protoOf(DerInput).vyl = function (tagOverride) {
|
|
|
849
849
|
break;
|
|
850
850
|
case 1:
|
|
851
851
|
var length_1 = readLength(tmp0);
|
|
852
|
-
var explicitInput = tmp0.
|
|
852
|
+
var explicitInput = tmp0.mym(length_1);
|
|
853
853
|
readRequestedTag(explicitInput, 3);
|
|
854
854
|
var length_2 = readLength(explicitInput);
|
|
855
855
|
var unusedBits_1 = explicitInput.q6o();
|
|
856
|
-
var bytes_1 = explicitInput.
|
|
856
|
+
var bytes_1 = explicitInput.lym(length_2 - 1 | 0);
|
|
857
857
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
858
858
|
|
|
859
859
|
if (bytes_1.length === 0) {
|
|
@@ -883,30 +883,30 @@ protoOf(DerInput).vyl = function (tagOverride) {
|
|
|
883
883
|
}
|
|
884
884
|
return tmp$ret$0;
|
|
885
885
|
};
|
|
886
|
-
protoOf(DerInput).
|
|
887
|
-
var tmp0 = this.
|
|
886
|
+
protoOf(DerInput).yym = function (tagOverride) {
|
|
887
|
+
var tmp0 = this.rym_1;
|
|
888
888
|
var tmp$ret$0;
|
|
889
889
|
$l$block: {
|
|
890
890
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
891
891
|
if (tagOverride == null) {
|
|
892
892
|
readRequestedTag(tmp0, 4);
|
|
893
893
|
var length = readLength(tmp0);
|
|
894
|
-
tmp$ret$0 = tmp0.
|
|
894
|
+
tmp$ret$0 = tmp0.lym(length);
|
|
895
895
|
break $l$block;
|
|
896
896
|
}
|
|
897
897
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
898
898
|
var tmp;
|
|
899
|
-
switch (tagOverride.
|
|
899
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
900
900
|
case 0:
|
|
901
901
|
var length_0 = readLength(tmp0);
|
|
902
|
-
tmp = tmp0.
|
|
902
|
+
tmp = tmp0.lym(length_0);
|
|
903
903
|
break;
|
|
904
904
|
case 1:
|
|
905
905
|
var length_1 = readLength(tmp0);
|
|
906
|
-
var explicitInput = tmp0.
|
|
906
|
+
var explicitInput = tmp0.mym(length_1);
|
|
907
907
|
readRequestedTag(explicitInput, 4);
|
|
908
908
|
var length_2 = readLength(explicitInput);
|
|
909
|
-
tmp = explicitInput.
|
|
909
|
+
tmp = explicitInput.lym(length_2);
|
|
910
910
|
break;
|
|
911
911
|
default:
|
|
912
912
|
noWhenBranchMatchedException();
|
|
@@ -916,66 +916,66 @@ protoOf(DerInput).wyl = function (tagOverride) {
|
|
|
916
916
|
}
|
|
917
917
|
return tmp$ret$0;
|
|
918
918
|
};
|
|
919
|
-
protoOf(DerInput).
|
|
920
|
-
var tmp0 = this.
|
|
919
|
+
protoOf(DerInput).wym = function (tagOverride) {
|
|
920
|
+
var tmp0 = this.rym_1;
|
|
921
921
|
var tmp$ret$0;
|
|
922
922
|
$l$block: {
|
|
923
923
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
924
924
|
if (tagOverride == null) {
|
|
925
925
|
readRequestedTag(tmp0, 6);
|
|
926
926
|
var length = readLength(tmp0);
|
|
927
|
-
var slice = tmp0.
|
|
927
|
+
var slice = tmp0.mym(length);
|
|
928
928
|
tmp$ret$0 = _ObjectIdentifier___init__impl__7hutfr(readOidElements(slice));
|
|
929
929
|
break $l$block;
|
|
930
930
|
}
|
|
931
931
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
932
932
|
var tmp;
|
|
933
|
-
switch (tagOverride.
|
|
933
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
934
934
|
case 0:
|
|
935
935
|
var length_0 = readLength(tmp0);
|
|
936
|
-
var slice_0 = tmp0.
|
|
936
|
+
var slice_0 = tmp0.mym(length_0);
|
|
937
937
|
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_0)));
|
|
938
938
|
break;
|
|
939
939
|
case 1:
|
|
940
940
|
var length_1 = readLength(tmp0);
|
|
941
|
-
var explicitInput = tmp0.
|
|
941
|
+
var explicitInput = tmp0.mym(length_1);
|
|
942
942
|
readRequestedTag(explicitInput, 6);
|
|
943
943
|
var length_2 = readLength(explicitInput);
|
|
944
|
-
var slice_1 = explicitInput.
|
|
944
|
+
var slice_1 = explicitInput.mym(length_2);
|
|
945
945
|
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_1)));
|
|
946
946
|
break;
|
|
947
947
|
default:
|
|
948
948
|
noWhenBranchMatchedException();
|
|
949
949
|
break;
|
|
950
950
|
}
|
|
951
|
-
tmp$ret$0 = tmp.
|
|
951
|
+
tmp$ret$0 = tmp.eym_1;
|
|
952
952
|
}
|
|
953
953
|
return tmp$ret$0;
|
|
954
954
|
};
|
|
955
|
-
protoOf(DerInput).
|
|
956
|
-
var tmp0 = this.
|
|
955
|
+
protoOf(DerInput).zym = function (tagOverride) {
|
|
956
|
+
var tmp0 = this.rym_1;
|
|
957
957
|
var tmp$ret$0;
|
|
958
958
|
$l$block: {
|
|
959
959
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
960
960
|
if (tagOverride == null) {
|
|
961
961
|
readRequestedTag(tmp0, 48);
|
|
962
962
|
var length = readLength(tmp0);
|
|
963
|
-
tmp$ret$0 = tmp0.
|
|
963
|
+
tmp$ret$0 = tmp0.mym(length);
|
|
964
964
|
break $l$block;
|
|
965
965
|
}
|
|
966
966
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
967
967
|
var tmp;
|
|
968
|
-
switch (tagOverride.
|
|
968
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
969
969
|
case 0:
|
|
970
970
|
var length_0 = readLength(tmp0);
|
|
971
|
-
tmp = tmp0.
|
|
971
|
+
tmp = tmp0.mym(length_0);
|
|
972
972
|
break;
|
|
973
973
|
case 1:
|
|
974
974
|
var length_1 = readLength(tmp0);
|
|
975
|
-
var explicitInput = tmp0.
|
|
975
|
+
var explicitInput = tmp0.mym(length_1);
|
|
976
976
|
readRequestedTag(explicitInput, 48);
|
|
977
977
|
var length_2 = readLength(explicitInput);
|
|
978
|
-
tmp = explicitInput.
|
|
978
|
+
tmp = explicitInput.mym(length_2);
|
|
979
979
|
break;
|
|
980
980
|
default:
|
|
981
981
|
noWhenBranchMatchedException();
|
|
@@ -1031,7 +1031,7 @@ function readOidElements(_this__u8e3s4) {
|
|
|
1031
1031
|
this_0.s(_Char___init__impl__6a9atx(49)).s(_Char___init__impl__6a9atx(46)).gd(first - 40 | 0);
|
|
1032
1032
|
else
|
|
1033
1033
|
this_0.s(_Char___init__impl__6a9atx(50)).s(_Char___init__impl__6a9atx(46)).gd(first - 80 | 0);
|
|
1034
|
-
while (!_this__u8e3s4.
|
|
1034
|
+
while (!_this__u8e3s4.jym()) {
|
|
1035
1035
|
this_0.s(_Char___init__impl__6a9atx(46)).gd(readOidElement(_this__u8e3s4));
|
|
1036
1036
|
}
|
|
1037
1037
|
return this_0.toString();
|
|
@@ -1051,23 +1051,23 @@ function readOidElement(_this__u8e3s4) {
|
|
|
1051
1051
|
return element;
|
|
1052
1052
|
}
|
|
1053
1053
|
function DerOutput(output) {
|
|
1054
|
-
this.
|
|
1054
|
+
this.ayn_1 = output;
|
|
1055
1055
|
}
|
|
1056
|
-
protoOf(DerOutput).
|
|
1057
|
-
this.
|
|
1058
|
-
writeLength(this.
|
|
1056
|
+
protoOf(DerOutput).byn = function () {
|
|
1057
|
+
this.ayn_1.nym(5);
|
|
1058
|
+
writeLength(this.ayn_1, 0);
|
|
1059
1059
|
};
|
|
1060
|
-
protoOf(DerOutput).
|
|
1061
|
-
var tmp0 = this.
|
|
1060
|
+
protoOf(DerOutput).cyn = function (tagOverride, value) {
|
|
1061
|
+
var tmp0 = this.ayn_1;
|
|
1062
1062
|
$l$block: {
|
|
1063
1063
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1064
1064
|
if (tagOverride == null) {
|
|
1065
|
-
tmp0.
|
|
1065
|
+
tmp0.nym(2);
|
|
1066
1066
|
writeBytes(tmp0, encodeToByteArray(value));
|
|
1067
1067
|
break $l$block;
|
|
1068
1068
|
}
|
|
1069
|
-
tmp0.
|
|
1070
|
-
switch (tagOverride.
|
|
1069
|
+
tmp0.nym(get_tag(tagOverride));
|
|
1070
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
1071
1071
|
case 0:
|
|
1072
1072
|
writeBytes(tmp0, encodeToByteArray(value));
|
|
1073
1073
|
break;
|
|
@@ -1077,7 +1077,7 @@ protoOf(DerOutput).aym = function (tagOverride, value) {
|
|
|
1077
1077
|
// Inline function 'kotlin.apply' call
|
|
1078
1078
|
|
|
1079
1079
|
var this_0 = new ByteArrayOutput();
|
|
1080
|
-
this_0.
|
|
1080
|
+
this_0.nym(2);
|
|
1081
1081
|
writeBytes(this_0, encodeToByteArray(value));
|
|
1082
1082
|
writeBytes_0(tmp0, this_0);
|
|
1083
1083
|
break;
|
|
@@ -1087,23 +1087,23 @@ protoOf(DerOutput).aym = function (tagOverride, value) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
};
|
|
1090
|
-
protoOf(DerOutput).
|
|
1091
|
-
var tmp0 = this.
|
|
1090
|
+
protoOf(DerOutput).eyn = function (tagOverride, bits) {
|
|
1091
|
+
var tmp0 = this.ayn_1;
|
|
1092
1092
|
$l$block: {
|
|
1093
1093
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1094
1094
|
if (tagOverride == null) {
|
|
1095
|
-
tmp0.
|
|
1096
|
-
writeLength(tmp0, bits.
|
|
1097
|
-
tmp0.
|
|
1098
|
-
tmp0.
|
|
1095
|
+
tmp0.nym(3);
|
|
1096
|
+
writeLength(tmp0, bits.pyl_1.length + 1 | 0);
|
|
1097
|
+
tmp0.oym(bits.oyl_1);
|
|
1098
|
+
tmp0.pym(bits.pyl_1);
|
|
1099
1099
|
break $l$block;
|
|
1100
1100
|
}
|
|
1101
|
-
tmp0.
|
|
1102
|
-
switch (tagOverride.
|
|
1101
|
+
tmp0.nym(get_tag(tagOverride));
|
|
1102
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
1103
1103
|
case 0:
|
|
1104
|
-
writeLength(tmp0, bits.
|
|
1105
|
-
tmp0.
|
|
1106
|
-
tmp0.
|
|
1104
|
+
writeLength(tmp0, bits.pyl_1.length + 1 | 0);
|
|
1105
|
+
tmp0.oym(bits.oyl_1);
|
|
1106
|
+
tmp0.pym(bits.pyl_1);
|
|
1107
1107
|
break;
|
|
1108
1108
|
case 1:
|
|
1109
1109
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
@@ -1111,10 +1111,10 @@ protoOf(DerOutput).cym = function (tagOverride, bits) {
|
|
|
1111
1111
|
// Inline function 'kotlin.apply' call
|
|
1112
1112
|
|
|
1113
1113
|
var this_0 = new ByteArrayOutput();
|
|
1114
|
-
this_0.
|
|
1115
|
-
writeLength(this_0, bits.
|
|
1116
|
-
this_0.
|
|
1117
|
-
this_0.
|
|
1114
|
+
this_0.nym(3);
|
|
1115
|
+
writeLength(this_0, bits.pyl_1.length + 1 | 0);
|
|
1116
|
+
this_0.oym(bits.oyl_1);
|
|
1117
|
+
this_0.pym(bits.pyl_1);
|
|
1118
1118
|
writeBytes_0(tmp0, this_0);
|
|
1119
1119
|
break;
|
|
1120
1120
|
default:
|
|
@@ -1123,17 +1123,17 @@ protoOf(DerOutput).cym = function (tagOverride, bits) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
};
|
|
1126
|
-
protoOf(DerOutput).
|
|
1127
|
-
var tmp0 = this.
|
|
1126
|
+
protoOf(DerOutput).fyn = function (tagOverride, bytes) {
|
|
1127
|
+
var tmp0 = this.ayn_1;
|
|
1128
1128
|
$l$block: {
|
|
1129
1129
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1130
1130
|
if (tagOverride == null) {
|
|
1131
|
-
tmp0.
|
|
1131
|
+
tmp0.nym(4);
|
|
1132
1132
|
writeBytes(tmp0, bytes);
|
|
1133
1133
|
break $l$block;
|
|
1134
1134
|
}
|
|
1135
|
-
tmp0.
|
|
1136
|
-
switch (tagOverride.
|
|
1135
|
+
tmp0.nym(get_tag(tagOverride));
|
|
1136
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
1137
1137
|
case 0:
|
|
1138
1138
|
writeBytes(tmp0, bytes);
|
|
1139
1139
|
break;
|
|
@@ -1143,7 +1143,7 @@ protoOf(DerOutput).dym = function (tagOverride, bytes) {
|
|
|
1143
1143
|
// Inline function 'kotlin.apply' call
|
|
1144
1144
|
|
|
1145
1145
|
var this_0 = new ByteArrayOutput();
|
|
1146
|
-
this_0.
|
|
1146
|
+
this_0.nym(4);
|
|
1147
1147
|
writeBytes(this_0, bytes);
|
|
1148
1148
|
writeBytes_0(tmp0, this_0);
|
|
1149
1149
|
break;
|
|
@@ -1153,12 +1153,12 @@ protoOf(DerOutput).dym = function (tagOverride, bytes) {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
};
|
|
1156
|
-
protoOf(DerOutput).
|
|
1157
|
-
var tmp0 = this.
|
|
1156
|
+
protoOf(DerOutput).dyn = function (tagOverride, value) {
|
|
1157
|
+
var tmp0 = this.ayn_1;
|
|
1158
1158
|
$l$block: {
|
|
1159
1159
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1160
1160
|
if (tagOverride == null) {
|
|
1161
|
-
tmp0.
|
|
1161
|
+
tmp0.nym(6);
|
|
1162
1162
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1163
1163
|
// Inline function 'kotlin.apply' call
|
|
1164
1164
|
var this_0 = new ByteArrayOutput();
|
|
@@ -1166,8 +1166,8 @@ protoOf(DerOutput).bym = function (tagOverride, value) {
|
|
|
1166
1166
|
writeBytes_0(tmp0, this_0);
|
|
1167
1167
|
break $l$block;
|
|
1168
1168
|
}
|
|
1169
|
-
tmp0.
|
|
1170
|
-
switch (tagOverride.
|
|
1169
|
+
tmp0.nym(get_tag(tagOverride));
|
|
1170
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
1171
1171
|
case 0:
|
|
1172
1172
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1173
1173
|
|
|
@@ -1183,7 +1183,7 @@ protoOf(DerOutput).bym = function (tagOverride, value) {
|
|
|
1183
1183
|
// Inline function 'kotlin.apply' call
|
|
1184
1184
|
|
|
1185
1185
|
var this_2 = new ByteArrayOutput();
|
|
1186
|
-
this_2.
|
|
1186
|
+
this_2.nym(6);
|
|
1187
1187
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1188
1188
|
|
|
1189
1189
|
// Inline function 'kotlin.apply' call
|
|
@@ -1199,19 +1199,19 @@ protoOf(DerOutput).bym = function (tagOverride, value) {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
};
|
|
1202
|
-
protoOf(DerOutput).
|
|
1203
|
-
var tmp0 = this.
|
|
1202
|
+
protoOf(DerOutput).gyn = function (tagOverride, bytes) {
|
|
1203
|
+
var tmp0 = this.ayn_1;
|
|
1204
1204
|
$l$block: {
|
|
1205
1205
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1206
1206
|
if (tagOverride == null) {
|
|
1207
|
-
tmp0.
|
|
1208
|
-
writeBytes_0(tmp0, bytes.
|
|
1207
|
+
tmp0.nym(48);
|
|
1208
|
+
writeBytes_0(tmp0, bytes.ayn_1);
|
|
1209
1209
|
break $l$block;
|
|
1210
1210
|
}
|
|
1211
|
-
tmp0.
|
|
1212
|
-
switch (tagOverride.
|
|
1211
|
+
tmp0.nym(get_tag(tagOverride));
|
|
1212
|
+
switch (tagOverride.lyl_1.a1_1) {
|
|
1213
1213
|
case 0:
|
|
1214
|
-
writeBytes_0(tmp0, bytes.
|
|
1214
|
+
writeBytes_0(tmp0, bytes.ayn_1);
|
|
1215
1215
|
break;
|
|
1216
1216
|
case 1:
|
|
1217
1217
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
@@ -1219,8 +1219,8 @@ protoOf(DerOutput).eym = function (tagOverride, bytes) {
|
|
|
1219
1219
|
// Inline function 'kotlin.apply' call
|
|
1220
1220
|
|
|
1221
1221
|
var this_0 = new ByteArrayOutput();
|
|
1222
|
-
this_0.
|
|
1223
|
-
writeBytes_0(this_0, bytes.
|
|
1222
|
+
this_0.nym(48);
|
|
1223
|
+
writeBytes_0(this_0, bytes.ayn_1);
|
|
1224
1224
|
writeBytes_0(tmp0, this_0);
|
|
1225
1225
|
break;
|
|
1226
1226
|
default:
|
|
@@ -1231,23 +1231,23 @@ protoOf(DerOutput).eym = function (tagOverride, bytes) {
|
|
|
1231
1231
|
};
|
|
1232
1232
|
function writeLength(_this__u8e3s4, length) {
|
|
1233
1233
|
if (length < 128)
|
|
1234
|
-
return _this__u8e3s4.
|
|
1234
|
+
return _this__u8e3s4.oym(length);
|
|
1235
1235
|
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1236
1236
|
var numberOfLengthBytes = 4 - (clz32(length) / 8 | 0) | 0;
|
|
1237
|
-
_this__u8e3s4.
|
|
1237
|
+
_this__u8e3s4.oym(numberOfLengthBytes | 128);
|
|
1238
1238
|
// Inline function 'kotlin.repeat' call
|
|
1239
1239
|
var inductionVariable = 0;
|
|
1240
1240
|
if (inductionVariable < numberOfLengthBytes)
|
|
1241
1241
|
do {
|
|
1242
1242
|
var index = inductionVariable;
|
|
1243
1243
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1244
|
-
_this__u8e3s4.
|
|
1244
|
+
_this__u8e3s4.oym(length >>> imul(8, (numberOfLengthBytes - 1 | 0) - index | 0) | 0);
|
|
1245
1245
|
}
|
|
1246
1246
|
while (inductionVariable < numberOfLengthBytes);
|
|
1247
1247
|
}
|
|
1248
1248
|
function writeBytes(_this__u8e3s4, bytes) {
|
|
1249
1249
|
writeLength(_this__u8e3s4, bytes.length);
|
|
1250
|
-
_this__u8e3s4.
|
|
1250
|
+
_this__u8e3s4.pym(bytes);
|
|
1251
1251
|
}
|
|
1252
1252
|
function writeOidElements(_this__u8e3s4, elements) {
|
|
1253
1253
|
// Inline function 'kotlin.check' call
|
|
@@ -1269,11 +1269,11 @@ function writeOidElements(_this__u8e3s4, elements) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
function writeBytes_0(_this__u8e3s4, bytes) {
|
|
1271
1271
|
writeLength(_this__u8e3s4, bytes.g1());
|
|
1272
|
-
_this__u8e3s4.
|
|
1272
|
+
_this__u8e3s4.qym(bytes);
|
|
1273
1273
|
}
|
|
1274
1274
|
function writeOidElement(_this__u8e3s4, element) {
|
|
1275
1275
|
if (element < 128)
|
|
1276
|
-
return _this__u8e3s4.
|
|
1276
|
+
return _this__u8e3s4.oym(element);
|
|
1277
1277
|
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1278
1278
|
var l = (32 - clz32(element) | 0) / 7 | 0;
|
|
1279
1279
|
// Inline function 'kotlin.repeat' call
|
|
@@ -1284,11 +1284,11 @@ function writeOidElement(_this__u8e3s4, element) {
|
|
|
1284
1284
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1285
1285
|
var value = element >>> imul(l - index | 0, 7) | 0;
|
|
1286
1286
|
if (!(value === 0)) {
|
|
1287
|
-
_this__u8e3s4.
|
|
1287
|
+
_this__u8e3s4.oym(value & 127 | 128);
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
1290
|
while (inductionVariable < l);
|
|
1291
|
-
_this__u8e3s4.
|
|
1291
|
+
_this__u8e3s4.oym(element & 127);
|
|
1292
1292
|
}
|
|
1293
1293
|
function writeOidElements$element($elements, index) {
|
|
1294
1294
|
return toInt($elements.h1(index));
|
|
@@ -1318,16 +1318,16 @@ function getElementContextSpecificTag(_this__u8e3s4, index) {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
var annotation = tmp_0;
|
|
1320
1320
|
// Inline function 'kotlin.check' call
|
|
1321
|
-
if (!(annotation.
|
|
1322
|
-
var message = 'Context specific tag class must be less than 31, but was ' + annotation.
|
|
1321
|
+
if (!(annotation.kyl_1 < 31)) {
|
|
1322
|
+
var message = 'Context specific tag class must be less than 31, but was ' + annotation.kyl_1;
|
|
1323
1323
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1324
1324
|
}
|
|
1325
1325
|
return annotation;
|
|
1326
1326
|
}
|
|
1327
1327
|
function get_tag(_this__u8e3s4) {
|
|
1328
|
-
var contextSpecificTag = _this__u8e3s4.
|
|
1328
|
+
var contextSpecificTag = _this__u8e3s4.kyl_1 | 128;
|
|
1329
1329
|
var tmp;
|
|
1330
|
-
switch (_this__u8e3s4.
|
|
1330
|
+
switch (_this__u8e3s4.lyl_1.a1_1) {
|
|
1331
1331
|
case 0:
|
|
1332
1332
|
tmp = toByte(contextSpecificTag);
|
|
1333
1333
|
break;
|