@solibo/solibo-sdk 1.6.9 → 1.6.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 +76 -76
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/KotlinBigInteger-bignum.mjs +1104 -1104
- package/MultiplatformSettings-multiplatform-settings-test.mjs +18 -18
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +4 -4
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +135 -135
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +237 -237
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/kotlin-kotlin-stdlib.mjs +5 -5
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +1 -1
- package/ktor-ktor-client-auth.mjs +224 -224
- 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 +13304 -13299
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +4 -4
- package/solibo-sdk-sdk.mjs +2808 -2808
- package/solibo-sdk-sdk.mjs.map +1 -1
|
@@ -98,26 +98,26 @@ function TagType_EXPLICIT_getInstance() {
|
|
|
98
98
|
return TagType_EXPLICIT_instance;
|
|
99
99
|
}
|
|
100
100
|
function ContextSpecificTag(classIndex, type) {
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
101
|
+
this.nsh_1 = classIndex;
|
|
102
|
+
this.osh_1 = type;
|
|
103
103
|
}
|
|
104
104
|
protoOf(ContextSpecificTag).equals = function (other) {
|
|
105
105
|
if (!(other instanceof ContextSpecificTag))
|
|
106
106
|
return false;
|
|
107
107
|
var tmp0_other_with_cast = other instanceof ContextSpecificTag ? other : THROW_CCE();
|
|
108
|
-
if (!(this.
|
|
108
|
+
if (!(this.nsh_1 === tmp0_other_with_cast.nsh_1))
|
|
109
109
|
return false;
|
|
110
|
-
if (!this.
|
|
110
|
+
if (!this.osh_1.equals(tmp0_other_with_cast.osh_1))
|
|
111
111
|
return false;
|
|
112
112
|
return true;
|
|
113
113
|
};
|
|
114
114
|
protoOf(ContextSpecificTag).hashCode = function () {
|
|
115
|
-
var result = imul(getStringHashCode('classIndex'), 127) ^ this.
|
|
116
|
-
result = result + (imul(getStringHashCode('type'), 127) ^ this.
|
|
115
|
+
var result = imul(getStringHashCode('classIndex'), 127) ^ this.nsh_1;
|
|
116
|
+
result = result + (imul(getStringHashCode('type'), 127) ^ this.osh_1.hashCode()) | 0;
|
|
117
117
|
return result;
|
|
118
118
|
};
|
|
119
119
|
protoOf(ContextSpecificTag).toString = function () {
|
|
120
|
-
return '@dev.whyoleg.cryptography.serialization.asn1.ContextSpecificTag(' + 'classIndex=' + this.
|
|
120
|
+
return '@dev.whyoleg.cryptography.serialization.asn1.ContextSpecificTag(' + 'classIndex=' + this.nsh_1 + ', ' + 'type=' + this.osh_1.toString() + ')';
|
|
121
121
|
};
|
|
122
122
|
function Companion() {
|
|
123
123
|
}
|
|
@@ -133,20 +133,20 @@ function $serializer() {
|
|
|
133
133
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.BitArray', this, 2);
|
|
134
134
|
tmp0_serialDesc.d14('unusedBits', false);
|
|
135
135
|
tmp0_serialDesc.d14('byteArray', false);
|
|
136
|
-
this.
|
|
136
|
+
this.psh_1 = tmp0_serialDesc;
|
|
137
137
|
}
|
|
138
|
-
protoOf($serializer).
|
|
139
|
-
var tmp0_desc = this.
|
|
138
|
+
protoOf($serializer).qsh = function (encoder, value) {
|
|
139
|
+
var tmp0_desc = this.psh_1;
|
|
140
140
|
var tmp1_output = encoder.qw(tmp0_desc);
|
|
141
|
-
tmp1_output.ay(tmp0_desc, 0, value.
|
|
142
|
-
tmp1_output.hy(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.
|
|
141
|
+
tmp1_output.ay(tmp0_desc, 0, value.rsh_1);
|
|
142
|
+
tmp1_output.hy(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.ssh_1);
|
|
143
143
|
tmp1_output.rw(tmp0_desc);
|
|
144
144
|
};
|
|
145
145
|
protoOf($serializer).ot = function (encoder, value) {
|
|
146
|
-
return this.
|
|
146
|
+
return this.qsh(encoder, value instanceof BitArray ? value : THROW_CCE());
|
|
147
147
|
};
|
|
148
148
|
protoOf($serializer).pt = function (decoder) {
|
|
149
|
-
var tmp0_desc = this.
|
|
149
|
+
var tmp0_desc = this.psh_1;
|
|
150
150
|
var tmp1_flag = true;
|
|
151
151
|
var tmp2_index = 0;
|
|
152
152
|
var tmp3_bitMask0 = 0;
|
|
@@ -181,7 +181,7 @@ protoOf($serializer).pt = function (decoder) {
|
|
|
181
181
|
return BitArray_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
182
182
|
};
|
|
183
183
|
protoOf($serializer).bt = function () {
|
|
184
|
-
return this.
|
|
184
|
+
return this.psh_1;
|
|
185
185
|
};
|
|
186
186
|
protoOf($serializer).w14 = function () {
|
|
187
187
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -197,24 +197,24 @@ function $serializer_getInstance() {
|
|
|
197
197
|
}
|
|
198
198
|
function BitArray_init_$Init$(seen0, unusedBits, byteArray, serializationConstructorMarker, $this) {
|
|
199
199
|
if (!(3 === (3 & seen0))) {
|
|
200
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
200
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().psh_1);
|
|
201
201
|
}
|
|
202
|
-
$this.
|
|
203
|
-
$this.
|
|
202
|
+
$this.rsh_1 = unusedBits;
|
|
203
|
+
$this.ssh_1 = byteArray;
|
|
204
204
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
205
|
-
if ($this.
|
|
205
|
+
if ($this.ssh_1.length === 0) {
|
|
206
206
|
// Inline function 'kotlin.check' call
|
|
207
|
-
if (!($this.
|
|
207
|
+
if (!($this.rsh_1 === 0)) {
|
|
208
208
|
var message = "empty array couldn't have unused bits";
|
|
209
209
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
210
210
|
}
|
|
211
211
|
} else {
|
|
212
212
|
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
213
|
-
var this_0 = last($this.
|
|
213
|
+
var this_0 = last($this.ssh_1);
|
|
214
214
|
var tmp$ret$3 = countTrailingZeroBits(this_0 | 256);
|
|
215
215
|
// Inline function 'kotlin.check' call
|
|
216
|
-
if (!($this.
|
|
217
|
-
var message_0 = 'At least ' + $this.
|
|
216
|
+
if (!($this.rsh_1 <= tmp$ret$3)) {
|
|
217
|
+
var message_0 = 'At least ' + $this.rsh_1 + ' last bits should be unused';
|
|
218
218
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
219
219
|
}
|
|
220
220
|
}
|
|
@@ -224,22 +224,22 @@ function BitArray_init_$Create$(seen0, unusedBits, byteArray, serializationConst
|
|
|
224
224
|
return BitArray_init_$Init$(seen0, unusedBits, byteArray, serializationConstructorMarker, objectCreate(protoOf(BitArray)));
|
|
225
225
|
}
|
|
226
226
|
function BitArray(unusedBits, byteArray) {
|
|
227
|
-
this.
|
|
228
|
-
this.
|
|
227
|
+
this.rsh_1 = unusedBits;
|
|
228
|
+
this.ssh_1 = byteArray;
|
|
229
229
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
230
|
-
if (this.
|
|
230
|
+
if (this.ssh_1.length === 0) {
|
|
231
231
|
// Inline function 'kotlin.check' call
|
|
232
|
-
if (!(this.
|
|
232
|
+
if (!(this.rsh_1 === 0)) {
|
|
233
233
|
var message = "empty array couldn't have unused bits";
|
|
234
234
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
235
235
|
}
|
|
236
236
|
} else {
|
|
237
237
|
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
238
|
-
var this_0 = last(this.
|
|
238
|
+
var this_0 = last(this.ssh_1);
|
|
239
239
|
var tmp$ret$3 = countTrailingZeroBits(this_0 | 256);
|
|
240
240
|
// Inline function 'kotlin.check' call
|
|
241
|
-
if (!(this.
|
|
242
|
-
var message_0 = 'At least ' + this.
|
|
241
|
+
if (!(this.rsh_1 <= tmp$ret$3)) {
|
|
242
|
+
var message_0 = 'At least ' + this.rsh_1 + ' last bits should be unused';
|
|
243
243
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -256,15 +256,15 @@ function Default_getInstance() {
|
|
|
256
256
|
}
|
|
257
257
|
function Der(serializersModule) {
|
|
258
258
|
Default_getInstance();
|
|
259
|
-
this.
|
|
259
|
+
this.tsh_1 = serializersModule;
|
|
260
260
|
}
|
|
261
261
|
protoOf(Der).mt = function () {
|
|
262
|
-
return this.
|
|
262
|
+
return this.tsh_1;
|
|
263
263
|
};
|
|
264
264
|
protoOf(Der).ku = function (serializer, value) {
|
|
265
265
|
var output = new ByteArrayOutput();
|
|
266
266
|
(new DerEncoder(this, output)).nt(serializer, value);
|
|
267
|
-
return output.
|
|
267
|
+
return output.asi();
|
|
268
268
|
};
|
|
269
269
|
protoOf(Der).lu = function (deserializer, bytes) {
|
|
270
270
|
var input = new ByteArrayInput(bytes);
|
|
@@ -289,10 +289,10 @@ function $serializer_0() {
|
|
|
289
289
|
$serializer_instance_0 = this;
|
|
290
290
|
var tmp0_serialDesc = new InlineClassDescriptor('dev.whyoleg.cryptography.serialization.asn1.ObjectIdentifier', this);
|
|
291
291
|
tmp0_serialDesc.d14('value', false);
|
|
292
|
-
this.
|
|
292
|
+
this.fsi_1 = tmp0_serialDesc;
|
|
293
293
|
}
|
|
294
|
-
protoOf($serializer_0).
|
|
295
|
-
var tmp0_inlineEncoder = encoder.wx(this.
|
|
294
|
+
protoOf($serializer_0).gsi = function (encoder, value) {
|
|
295
|
+
var tmp0_inlineEncoder = encoder.wx(this.fsi_1);
|
|
296
296
|
if (tmp0_inlineEncoder == null)
|
|
297
297
|
null;
|
|
298
298
|
else {
|
|
@@ -300,16 +300,16 @@ protoOf($serializer_0).esi = function (encoder, value) {
|
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
302
|
protoOf($serializer_0).ot = function (encoder, value) {
|
|
303
|
-
return this.
|
|
303
|
+
return this.gsi(encoder, value instanceof ObjectIdentifier ? value.hsi_1 : THROW_CCE());
|
|
304
304
|
};
|
|
305
|
-
protoOf($serializer_0).
|
|
306
|
-
return _ObjectIdentifier___init__impl__7hutfr(decoder.ow(this.
|
|
305
|
+
protoOf($serializer_0).isi = function (decoder) {
|
|
306
|
+
return _ObjectIdentifier___init__impl__7hutfr(decoder.ow(this.fsi_1).mw());
|
|
307
307
|
};
|
|
308
308
|
protoOf($serializer_0).pt = function (decoder) {
|
|
309
|
-
return new ObjectIdentifier(this.
|
|
309
|
+
return new ObjectIdentifier(this.isi(decoder));
|
|
310
310
|
};
|
|
311
311
|
protoOf($serializer_0).bt = function () {
|
|
312
|
-
return this.
|
|
312
|
+
return this.fsi_1;
|
|
313
313
|
};
|
|
314
314
|
protoOf($serializer_0).w14 = function () {
|
|
315
315
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -332,21 +332,21 @@ function ObjectIdentifier__hashCode_impl_7x941i($this) {
|
|
|
332
332
|
function ObjectIdentifier__equals_impl_u5dbkq($this, other) {
|
|
333
333
|
if (!(other instanceof ObjectIdentifier))
|
|
334
334
|
return false;
|
|
335
|
-
if (!($this === (other instanceof ObjectIdentifier ? other.
|
|
335
|
+
if (!($this === (other instanceof ObjectIdentifier ? other.hsi_1 : THROW_CCE())))
|
|
336
336
|
return false;
|
|
337
337
|
return true;
|
|
338
338
|
}
|
|
339
339
|
function ObjectIdentifier(value) {
|
|
340
|
-
this.
|
|
340
|
+
this.hsi_1 = value;
|
|
341
341
|
}
|
|
342
342
|
protoOf(ObjectIdentifier).toString = function () {
|
|
343
|
-
return ObjectIdentifier__toString_impl_dtwsrd(this.
|
|
343
|
+
return ObjectIdentifier__toString_impl_dtwsrd(this.hsi_1);
|
|
344
344
|
};
|
|
345
345
|
protoOf(ObjectIdentifier).hashCode = function () {
|
|
346
|
-
return ObjectIdentifier__hashCode_impl_7x941i(this.
|
|
346
|
+
return ObjectIdentifier__hashCode_impl_7x941i(this.hsi_1);
|
|
347
347
|
};
|
|
348
348
|
protoOf(ObjectIdentifier).equals = function (other) {
|
|
349
|
-
return ObjectIdentifier__equals_impl_u5dbkq(this.
|
|
349
|
+
return ObjectIdentifier__equals_impl_u5dbkq(this.hsi_1, other);
|
|
350
350
|
};
|
|
351
351
|
function get_emptyArray() {
|
|
352
352
|
_init_properties_ByteArrayInput_kt__imea6f();
|
|
@@ -354,7 +354,7 @@ function get_emptyArray() {
|
|
|
354
354
|
}
|
|
355
355
|
var emptyArray;
|
|
356
356
|
function _get_available__saq0tk($this) {
|
|
357
|
-
return $this.
|
|
357
|
+
return $this.ksi_1 - $this.lsi_1 | 0;
|
|
358
358
|
}
|
|
359
359
|
function ensureAvailableBytes($this, count) {
|
|
360
360
|
// Inline function 'kotlin.check' call
|
|
@@ -366,42 +366,42 @@ function ensureAvailableBytes($this, count) {
|
|
|
366
366
|
function ByteArrayInput(array, startIndex, endIndex) {
|
|
367
367
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
368
368
|
endIndex = endIndex === VOID ? array.length : endIndex;
|
|
369
|
-
this.
|
|
370
|
-
this.
|
|
371
|
-
this.
|
|
369
|
+
this.jsi_1 = array;
|
|
370
|
+
this.ksi_1 = endIndex;
|
|
371
|
+
this.lsi_1 = startIndex;
|
|
372
372
|
}
|
|
373
|
-
protoOf(ByteArrayInput).
|
|
373
|
+
protoOf(ByteArrayInput).msi = function () {
|
|
374
374
|
return _get_available__saq0tk(this) === 0;
|
|
375
375
|
};
|
|
376
376
|
protoOf(ByteArrayInput).toString = function () {
|
|
377
|
-
return 'ByteArrayInput(size=' + this.
|
|
377
|
+
return 'ByteArrayInput(size=' + this.jsi_1.length + ', endIndex=' + this.ksi_1 + ', position=' + this.lsi_1 + ', available=' + _get_available__saq0tk(this) + ')';
|
|
378
378
|
};
|
|
379
|
-
protoOf(ByteArrayInput).
|
|
379
|
+
protoOf(ByteArrayInput).nsi = function () {
|
|
380
380
|
ensureAvailableBytes(this, 1);
|
|
381
|
-
return this.
|
|
381
|
+
return this.jsi_1[this.lsi_1];
|
|
382
382
|
};
|
|
383
383
|
protoOf(ByteArrayInput).w6g = function () {
|
|
384
384
|
ensureAvailableBytes(this, 1);
|
|
385
|
-
var _unary__edvuaz = this.
|
|
386
|
-
this.
|
|
387
|
-
return this.
|
|
385
|
+
var _unary__edvuaz = this.lsi_1;
|
|
386
|
+
this.lsi_1 = _unary__edvuaz + 1 | 0;
|
|
387
|
+
return this.jsi_1[_unary__edvuaz];
|
|
388
388
|
};
|
|
389
|
-
protoOf(ByteArrayInput).
|
|
389
|
+
protoOf(ByteArrayInput).osi = function (length) {
|
|
390
390
|
ensureAvailableBytes(this, length);
|
|
391
391
|
if (length === 0)
|
|
392
392
|
return get_emptyArray();
|
|
393
393
|
// Inline function 'kotlin.also' call
|
|
394
|
-
var this_0 = copyOfRange(this.
|
|
395
|
-
this.
|
|
394
|
+
var this_0 = copyOfRange(this.jsi_1, this.lsi_1, this.lsi_1 + length | 0);
|
|
395
|
+
this.lsi_1 = this.lsi_1 + length | 0;
|
|
396
396
|
return this_0;
|
|
397
397
|
};
|
|
398
|
-
protoOf(ByteArrayInput).
|
|
398
|
+
protoOf(ByteArrayInput).psi = function (length) {
|
|
399
399
|
ensureAvailableBytes(this, length);
|
|
400
400
|
if (length === 0)
|
|
401
401
|
return new ByteArrayInput(get_emptyArray());
|
|
402
402
|
// Inline function 'kotlin.also' call
|
|
403
|
-
var this_0 = new ByteArrayInput(this.
|
|
404
|
-
this.
|
|
403
|
+
var this_0 = new ByteArrayInput(this.jsi_1, this.lsi_1, this.lsi_1 + length | 0);
|
|
404
|
+
this.lsi_1 = this.lsi_1 + length | 0;
|
|
405
405
|
return this_0;
|
|
406
406
|
};
|
|
407
407
|
var properties_initialized_ByteArrayInput_kt_acgl39;
|
|
@@ -412,38 +412,38 @@ function _init_properties_ByteArrayInput_kt__imea6f() {
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
function ensureCapacity($this, elementsToAppend) {
|
|
415
|
-
if (($this.
|
|
415
|
+
if (($this.zsh_1 + elementsToAppend | 0) <= $this.ysh_1.length)
|
|
416
416
|
return Unit_instance;
|
|
417
|
-
$this.
|
|
417
|
+
$this.ysh_1 = copyOf($this.ysh_1, takeHighestOneBit($this.zsh_1 + elementsToAppend | 0) << 1);
|
|
418
418
|
}
|
|
419
419
|
function ByteArrayOutput() {
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
420
|
+
this.ysh_1 = new Int8Array(32);
|
|
421
|
+
this.zsh_1 = 0;
|
|
422
422
|
}
|
|
423
423
|
protoOf(ByteArrayOutput).g1 = function () {
|
|
424
|
-
return this.
|
|
424
|
+
return this.zsh_1;
|
|
425
425
|
};
|
|
426
|
-
protoOf(ByteArrayOutput).
|
|
427
|
-
return copyOf(this.
|
|
426
|
+
protoOf(ByteArrayOutput).asi = function () {
|
|
427
|
+
return copyOf(this.ysh_1, this.zsh_1);
|
|
428
428
|
};
|
|
429
|
-
protoOf(ByteArrayOutput).
|
|
429
|
+
protoOf(ByteArrayOutput).qsi = function (byte) {
|
|
430
430
|
ensureCapacity(this, 1);
|
|
431
|
-
var tmp = this.
|
|
432
|
-
var _unary__edvuaz = this.
|
|
433
|
-
this.
|
|
431
|
+
var tmp = this.ysh_1;
|
|
432
|
+
var _unary__edvuaz = this.zsh_1;
|
|
433
|
+
this.zsh_1 = _unary__edvuaz + 1 | 0;
|
|
434
434
|
tmp[_unary__edvuaz] = byte;
|
|
435
435
|
};
|
|
436
|
-
protoOf(ByteArrayOutput).
|
|
437
|
-
this.
|
|
436
|
+
protoOf(ByteArrayOutput).rsi = function (byte) {
|
|
437
|
+
this.qsi(toByte(byte));
|
|
438
438
|
};
|
|
439
|
-
protoOf(ByteArrayOutput).
|
|
439
|
+
protoOf(ByteArrayOutput).ssi = function (bytes) {
|
|
440
440
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
441
441
|
if (bytes.length === 0)
|
|
442
442
|
return Unit_instance;
|
|
443
443
|
ensureCapacity(this, bytes.length);
|
|
444
|
-
var tmp2 = this.
|
|
444
|
+
var tmp2 = this.ysh_1;
|
|
445
445
|
// Inline function 'kotlin.collections.copyInto' call
|
|
446
|
-
var destinationOffset = this.
|
|
446
|
+
var destinationOffset = this.zsh_1;
|
|
447
447
|
var endIndex = bytes.length;
|
|
448
448
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
449
449
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -451,49 +451,49 @@ protoOf(ByteArrayOutput).qsi = function (bytes) {
|
|
|
451
451
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
452
452
|
// Inline function 'kotlin.js.asDynamic' call
|
|
453
453
|
arrayCopy(tmp, tmp2, destinationOffset, 0, endIndex);
|
|
454
|
-
this.
|
|
454
|
+
this.zsh_1 = this.zsh_1 + bytes.length | 0;
|
|
455
455
|
};
|
|
456
|
-
protoOf(ByteArrayOutput).
|
|
456
|
+
protoOf(ByteArrayOutput).tsi = function (output) {
|
|
457
457
|
if (output.g1() === 0)
|
|
458
458
|
return Unit_instance;
|
|
459
|
-
ensureCapacity(this, output.
|
|
460
|
-
var tmp0 = output.
|
|
461
|
-
var tmp2 = this.
|
|
462
|
-
var tmp4 = this.
|
|
459
|
+
ensureCapacity(this, output.zsh_1);
|
|
460
|
+
var tmp0 = output.ysh_1;
|
|
461
|
+
var tmp2 = this.ysh_1;
|
|
462
|
+
var tmp4 = this.zsh_1;
|
|
463
463
|
// Inline function 'kotlin.collections.copyInto' call
|
|
464
|
-
var endIndex = output.
|
|
464
|
+
var endIndex = output.zsh_1;
|
|
465
465
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
466
466
|
// Inline function 'kotlin.js.asDynamic' call
|
|
467
467
|
var tmp = tmp0;
|
|
468
468
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
469
469
|
// Inline function 'kotlin.js.asDynamic' call
|
|
470
470
|
arrayCopy(tmp, tmp2, tmp4, 0, endIndex);
|
|
471
|
-
this.
|
|
471
|
+
this.zsh_1 = this.zsh_1 + output.zsh_1 | 0;
|
|
472
472
|
};
|
|
473
473
|
function getAndResetTagOverride($this) {
|
|
474
|
-
var tag = $this.
|
|
475
|
-
$this.
|
|
474
|
+
var tag = $this.esi_1;
|
|
475
|
+
$this.esi_1 = null;
|
|
476
476
|
return tag;
|
|
477
477
|
}
|
|
478
478
|
function DerDecoder(der, byteArrayInput) {
|
|
479
479
|
AbstractDecoder.call(this);
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
480
|
+
this.bsi_1 = der;
|
|
481
|
+
this.csi_1 = new DerInput(byteArrayInput);
|
|
482
|
+
this.dsi_1 = 0;
|
|
483
|
+
this.esi_1 = null;
|
|
484
484
|
}
|
|
485
485
|
protoOf(DerDecoder).mt = function () {
|
|
486
|
-
return this.
|
|
486
|
+
return this.bsi_1.mt();
|
|
487
487
|
};
|
|
488
488
|
protoOf(DerDecoder).hx = function (descriptor) {
|
|
489
|
-
if (this.
|
|
489
|
+
if (this.csi_1.msi())
|
|
490
490
|
return -1;
|
|
491
|
-
var tag = this.
|
|
491
|
+
var tag = this.csi_1.vsi();
|
|
492
492
|
$l$loop: while (true) {
|
|
493
|
-
var index = this.
|
|
494
|
-
this.
|
|
493
|
+
var index = this.dsi_1;
|
|
494
|
+
this.esi_1 = getElementContextSpecificTag(descriptor, index);
|
|
495
495
|
if (descriptor.gv(index)) {
|
|
496
|
-
var tmp0 = this.
|
|
496
|
+
var tmp0 = this.esi_1;
|
|
497
497
|
var tmp$ret$0;
|
|
498
498
|
$l$block: {
|
|
499
499
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -507,36 +507,36 @@ protoOf(DerDecoder).hx = function (descriptor) {
|
|
|
507
507
|
}
|
|
508
508
|
var requiredTag = tmp$ret$0;
|
|
509
509
|
if (!(tag === get_tag(requiredTag))) {
|
|
510
|
-
this.
|
|
510
|
+
this.dsi_1 = this.dsi_1 + 1 | 0;
|
|
511
511
|
continue $l$loop;
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
var _unary__edvuaz = this.
|
|
515
|
-
this.
|
|
514
|
+
var _unary__edvuaz = this.dsi_1;
|
|
515
|
+
this.dsi_1 = _unary__edvuaz + 1 | 0;
|
|
516
516
|
return _unary__edvuaz;
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
protoOf(DerDecoder).cw = function () {
|
|
520
|
-
return this.
|
|
520
|
+
return this.csi_1.wsi();
|
|
521
521
|
};
|
|
522
522
|
protoOf(DerDecoder).dw = function () {
|
|
523
|
-
return this.
|
|
523
|
+
return this.csi_1.xsi();
|
|
524
524
|
};
|
|
525
525
|
protoOf(DerDecoder).fw = function () {
|
|
526
|
-
return this.
|
|
526
|
+
return this.csi_1.ysi(getAndResetTagOverride(this)).fsg();
|
|
527
527
|
};
|
|
528
528
|
protoOf(DerDecoder).gw = function () {
|
|
529
|
-
return this.
|
|
529
|
+
return this.csi_1.ysi(getAndResetTagOverride(this)).gsg();
|
|
530
530
|
};
|
|
531
531
|
protoOf(DerDecoder).hw = function () {
|
|
532
|
-
return this.
|
|
532
|
+
return this.csi_1.ysi(getAndResetTagOverride(this)).hsg();
|
|
533
533
|
};
|
|
534
534
|
protoOf(DerDecoder).iw = function () {
|
|
535
|
-
return this.
|
|
535
|
+
return this.csi_1.ysi(getAndResetTagOverride(this)).isg();
|
|
536
536
|
};
|
|
537
537
|
protoOf(DerDecoder).qt = function (deserializer) {
|
|
538
538
|
var tmp0_subject = deserializer.bt();
|
|
539
|
-
return equals(tmp0_subject, ByteArraySerializer().bt()) ? this.
|
|
539
|
+
return equals(tmp0_subject, ByteArraySerializer().bt()) ? this.csi_1.bsj(getAndResetTagOverride(this)) : equals(tmp0_subject, Companion_instance.f6d().bt()) ? this.csi_1.asj(getAndResetTagOverride(this)) : equals(tmp0_subject, Companion_instance_0.f6d().bt()) ? new ObjectIdentifier(this.csi_1.zsi(getAndResetTagOverride(this))) : equals(tmp0_subject, Companion_getInstance().f6d().bt()) ? this.csi_1.ysi(getAndResetTagOverride(this)) : deserializer.pt(this);
|
|
540
540
|
};
|
|
541
541
|
protoOf(DerDecoder).qw = function (descriptor) {
|
|
542
542
|
var tmp0_subject = descriptor.zu();
|
|
@@ -548,7 +548,7 @@ protoOf(DerDecoder).qw = function (descriptor) {
|
|
|
548
548
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
549
549
|
}
|
|
550
550
|
if (tmp_0) {
|
|
551
|
-
tmp = new DerDecoder(this.
|
|
551
|
+
tmp = new DerDecoder(this.bsi_1, this.csi_1.csj(getAndResetTagOverride(this)));
|
|
552
552
|
} else {
|
|
553
553
|
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
554
554
|
}
|
|
@@ -596,63 +596,63 @@ protoOf(DerDecoder).bw = function () {
|
|
|
596
596
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
597
597
|
};
|
|
598
598
|
function getAndResetTagOverride_0($this) {
|
|
599
|
-
var tag = $this.
|
|
600
|
-
$this.
|
|
599
|
+
var tag = $this.xsh_1;
|
|
600
|
+
$this.xsh_1 = null;
|
|
601
601
|
return tag;
|
|
602
602
|
}
|
|
603
603
|
function DerEncoder(der, byteArrayOutput, parentOutput) {
|
|
604
604
|
parentOutput = parentOutput === VOID ? null : parentOutput;
|
|
605
605
|
AbstractEncoder.call(this);
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
606
|
+
this.ush_1 = der;
|
|
607
|
+
this.vsh_1 = parentOutput;
|
|
608
|
+
this.wsh_1 = new DerOutput(byteArrayOutput);
|
|
609
|
+
this.xsh_1 = null;
|
|
610
610
|
}
|
|
611
611
|
protoOf(DerEncoder).mt = function () {
|
|
612
|
-
return this.
|
|
612
|
+
return this.ush_1.mt();
|
|
613
613
|
};
|
|
614
614
|
protoOf(DerEncoder).my = function (descriptor, index) {
|
|
615
615
|
return false;
|
|
616
616
|
};
|
|
617
617
|
protoOf(DerEncoder).jx = function (descriptor, index) {
|
|
618
|
-
this.
|
|
618
|
+
this.xsh_1 = getElementContextSpecificTag(descriptor, index);
|
|
619
619
|
return true;
|
|
620
620
|
};
|
|
621
621
|
protoOf(DerEncoder).ky = function () {
|
|
622
622
|
};
|
|
623
623
|
protoOf(DerEncoder).lx = function () {
|
|
624
|
-
return this.
|
|
624
|
+
return this.wsh_1.esj();
|
|
625
625
|
};
|
|
626
626
|
protoOf(DerEncoder).nx = function (value) {
|
|
627
|
-
return this.
|
|
627
|
+
return this.wsh_1.fsj(getAndResetTagOverride_0(this), toBigInt(value));
|
|
628
628
|
};
|
|
629
629
|
protoOf(DerEncoder).ox = function (value) {
|
|
630
|
-
return this.
|
|
630
|
+
return this.wsh_1.fsj(getAndResetTagOverride_0(this), toBigInt_0(value));
|
|
631
631
|
};
|
|
632
632
|
protoOf(DerEncoder).px = function (value) {
|
|
633
|
-
return this.
|
|
633
|
+
return this.wsh_1.fsj(getAndResetTagOverride_0(this), toBigInt_1(value));
|
|
634
634
|
};
|
|
635
635
|
protoOf(DerEncoder).qx = function (value) {
|
|
636
|
-
return this.
|
|
636
|
+
return this.wsh_1.fsj(getAndResetTagOverride_0(this), toBigInt_2(value));
|
|
637
637
|
};
|
|
638
638
|
protoOf(DerEncoder).nt = function (serializer, value) {
|
|
639
639
|
var tmp0_subject = serializer.bt();
|
|
640
640
|
var tmp;
|
|
641
641
|
if (equals(tmp0_subject, ByteArraySerializer().bt())) {
|
|
642
642
|
var tmp_0 = getAndResetTagOverride_0(this);
|
|
643
|
-
this.
|
|
643
|
+
this.wsh_1.isj(tmp_0, (!(value == null) ? isByteArray(value) : false) ? value : THROW_CCE());
|
|
644
644
|
tmp = Unit_instance;
|
|
645
645
|
} else if (equals(tmp0_subject, Companion_instance.f6d().bt())) {
|
|
646
646
|
var tmp_1 = getAndResetTagOverride_0(this);
|
|
647
|
-
this.
|
|
647
|
+
this.wsh_1.hsj(tmp_1, value instanceof BitArray ? value : THROW_CCE());
|
|
648
648
|
tmp = Unit_instance;
|
|
649
649
|
} else if (equals(tmp0_subject, Companion_instance_0.f6d().bt())) {
|
|
650
650
|
var tmp_2 = getAndResetTagOverride_0(this);
|
|
651
|
-
this.
|
|
651
|
+
this.wsh_1.gsj(tmp_2, value instanceof ObjectIdentifier ? value.hsi_1 : THROW_CCE());
|
|
652
652
|
tmp = Unit_instance;
|
|
653
653
|
} else if (equals(tmp0_subject, Companion_getInstance().f6d().bt())) {
|
|
654
654
|
var tmp_3 = getAndResetTagOverride_0(this);
|
|
655
|
-
this.
|
|
655
|
+
this.wsh_1.fsj(tmp_3, value instanceof BigInt ? value : THROW_CCE());
|
|
656
656
|
tmp = Unit_instance;
|
|
657
657
|
} else {
|
|
658
658
|
serializer.ot(this, value);
|
|
@@ -670,14 +670,14 @@ protoOf(DerEncoder).qw = function (descriptor) {
|
|
|
670
670
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
671
671
|
}
|
|
672
672
|
if (tmp_0) {
|
|
673
|
-
tmp = new DerEncoder(this.
|
|
673
|
+
tmp = new DerEncoder(this.ush_1, new ByteArrayOutput(), this.wsh_1);
|
|
674
674
|
} else {
|
|
675
675
|
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
676
676
|
}
|
|
677
677
|
return tmp;
|
|
678
678
|
};
|
|
679
679
|
protoOf(DerEncoder).rw = function (descriptor) {
|
|
680
|
-
var tmp0 = this.
|
|
680
|
+
var tmp0 = this.vsh_1;
|
|
681
681
|
var tmp$ret$0;
|
|
682
682
|
$l$block: {
|
|
683
683
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -689,18 +689,18 @@ protoOf(DerEncoder).rw = function (descriptor) {
|
|
|
689
689
|
break $l$block;
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
|
-
tmp$ret$0.
|
|
692
|
+
tmp$ret$0.jsj(getAndResetTagOverride_0(this), this.wsh_1);
|
|
693
693
|
};
|
|
694
694
|
protoOf(DerEncoder).wx = function (descriptor) {
|
|
695
695
|
return this;
|
|
696
696
|
};
|
|
697
|
-
protoOf(DerEncoder).
|
|
697
|
+
protoOf(DerEncoder).ksj = function (enumDescriptor, index) {
|
|
698
698
|
// Inline function 'kotlin.error' call
|
|
699
699
|
var message = 'Enum encoding is not supported';
|
|
700
700
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
701
701
|
};
|
|
702
702
|
protoOf(DerEncoder).vx = function (enumDescriptor, index) {
|
|
703
|
-
return this.
|
|
703
|
+
return this.ksj(enumDescriptor, index);
|
|
704
704
|
};
|
|
705
705
|
protoOf(DerEncoder).ux = function (value) {
|
|
706
706
|
// Inline function 'kotlin.error' call
|
|
@@ -733,20 +733,20 @@ protoOf(DerEncoder).kx = function (value) {
|
|
|
733
733
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
734
734
|
};
|
|
735
735
|
function DerInput(input) {
|
|
736
|
-
this.
|
|
736
|
+
this.usi_1 = input;
|
|
737
737
|
}
|
|
738
|
-
protoOf(DerInput).
|
|
739
|
-
return this.
|
|
738
|
+
protoOf(DerInput).msi = function () {
|
|
739
|
+
return this.usi_1.msi();
|
|
740
740
|
};
|
|
741
|
-
protoOf(DerInput).
|
|
742
|
-
return this.
|
|
741
|
+
protoOf(DerInput).vsi = function () {
|
|
742
|
+
return this.usi_1.nsi();
|
|
743
743
|
};
|
|
744
|
-
protoOf(DerInput).
|
|
745
|
-
return !(this.
|
|
744
|
+
protoOf(DerInput).wsi = function () {
|
|
745
|
+
return !(this.vsi() === 5);
|
|
746
746
|
};
|
|
747
|
-
protoOf(DerInput).
|
|
748
|
-
readRequestedTag(this.
|
|
749
|
-
var length = readLength(this.
|
|
747
|
+
protoOf(DerInput).xsi = function () {
|
|
748
|
+
readRequestedTag(this.usi_1, 5);
|
|
749
|
+
var length = readLength(this.usi_1);
|
|
750
750
|
// Inline function 'kotlin.check' call
|
|
751
751
|
if (!(length === 0)) {
|
|
752
752
|
var message = 'NULL tag length should be zero, but was: ' + length;
|
|
@@ -754,32 +754,32 @@ protoOf(DerInput).vsi = function () {
|
|
|
754
754
|
}
|
|
755
755
|
return null;
|
|
756
756
|
};
|
|
757
|
-
protoOf(DerInput).
|
|
758
|
-
var tmp0 = this.
|
|
757
|
+
protoOf(DerInput).ysi = function (tagOverride) {
|
|
758
|
+
var tmp0 = this.usi_1;
|
|
759
759
|
var tmp$ret$0;
|
|
760
760
|
$l$block: {
|
|
761
761
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
762
762
|
if (tagOverride == null) {
|
|
763
763
|
readRequestedTag(tmp0, 2);
|
|
764
764
|
var length = readLength(tmp0);
|
|
765
|
-
var bytes = tmp0.
|
|
765
|
+
var bytes = tmp0.osi(length);
|
|
766
766
|
tmp$ret$0 = decodeToBigInt(bytes);
|
|
767
767
|
break $l$block;
|
|
768
768
|
}
|
|
769
769
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
770
770
|
var tmp;
|
|
771
|
-
switch (tagOverride.
|
|
771
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
772
772
|
case 0:
|
|
773
773
|
var length_0 = readLength(tmp0);
|
|
774
|
-
var bytes_0 = tmp0.
|
|
774
|
+
var bytes_0 = tmp0.osi(length_0);
|
|
775
775
|
tmp = decodeToBigInt(bytes_0);
|
|
776
776
|
break;
|
|
777
777
|
case 1:
|
|
778
778
|
var length_1 = readLength(tmp0);
|
|
779
|
-
var explicitInput = tmp0.
|
|
779
|
+
var explicitInput = tmp0.psi(length_1);
|
|
780
780
|
readRequestedTag(explicitInput, 2);
|
|
781
781
|
var length_2 = readLength(explicitInput);
|
|
782
|
-
var bytes_1 = explicitInput.
|
|
782
|
+
var bytes_1 = explicitInput.osi(length_2);
|
|
783
783
|
tmp = decodeToBigInt(bytes_1);
|
|
784
784
|
break;
|
|
785
785
|
default:
|
|
@@ -790,8 +790,8 @@ protoOf(DerInput).wsi = function (tagOverride) {
|
|
|
790
790
|
}
|
|
791
791
|
return tmp$ret$0;
|
|
792
792
|
};
|
|
793
|
-
protoOf(DerInput).
|
|
794
|
-
var tmp0 = this.
|
|
793
|
+
protoOf(DerInput).asj = function (tagOverride) {
|
|
794
|
+
var tmp0 = this.usi_1;
|
|
795
795
|
var tmp$ret$0;
|
|
796
796
|
$l$block: {
|
|
797
797
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
@@ -799,7 +799,7 @@ protoOf(DerInput).ysi = function (tagOverride) {
|
|
|
799
799
|
readRequestedTag(tmp0, 3);
|
|
800
800
|
var length = readLength(tmp0);
|
|
801
801
|
var unusedBits = tmp0.w6g();
|
|
802
|
-
var bytes = tmp0.
|
|
802
|
+
var bytes = tmp0.osi(length - 1 | 0);
|
|
803
803
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
804
804
|
if (bytes.length === 0) {
|
|
805
805
|
// Inline function 'kotlin.check' call
|
|
@@ -822,11 +822,11 @@ protoOf(DerInput).ysi = function (tagOverride) {
|
|
|
822
822
|
}
|
|
823
823
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
824
824
|
var tmp;
|
|
825
|
-
switch (tagOverride.
|
|
825
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
826
826
|
case 0:
|
|
827
827
|
var length_0 = readLength(tmp0);
|
|
828
828
|
var unusedBits_0 = tmp0.w6g();
|
|
829
|
-
var bytes_0 = tmp0.
|
|
829
|
+
var bytes_0 = tmp0.osi(length_0 - 1 | 0);
|
|
830
830
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
831
831
|
|
|
832
832
|
if (bytes_0.length === 0) {
|
|
@@ -850,11 +850,11 @@ protoOf(DerInput).ysi = function (tagOverride) {
|
|
|
850
850
|
break;
|
|
851
851
|
case 1:
|
|
852
852
|
var length_1 = readLength(tmp0);
|
|
853
|
-
var explicitInput = tmp0.
|
|
853
|
+
var explicitInput = tmp0.psi(length_1);
|
|
854
854
|
readRequestedTag(explicitInput, 3);
|
|
855
855
|
var length_2 = readLength(explicitInput);
|
|
856
856
|
var unusedBits_1 = explicitInput.w6g();
|
|
857
|
-
var bytes_1 = explicitInput.
|
|
857
|
+
var bytes_1 = explicitInput.osi(length_2 - 1 | 0);
|
|
858
858
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
859
859
|
|
|
860
860
|
if (bytes_1.length === 0) {
|
|
@@ -884,30 +884,30 @@ protoOf(DerInput).ysi = function (tagOverride) {
|
|
|
884
884
|
}
|
|
885
885
|
return tmp$ret$0;
|
|
886
886
|
};
|
|
887
|
-
protoOf(DerInput).
|
|
888
|
-
var tmp0 = this.
|
|
887
|
+
protoOf(DerInput).bsj = function (tagOverride) {
|
|
888
|
+
var tmp0 = this.usi_1;
|
|
889
889
|
var tmp$ret$0;
|
|
890
890
|
$l$block: {
|
|
891
891
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
892
892
|
if (tagOverride == null) {
|
|
893
893
|
readRequestedTag(tmp0, 4);
|
|
894
894
|
var length = readLength(tmp0);
|
|
895
|
-
tmp$ret$0 = tmp0.
|
|
895
|
+
tmp$ret$0 = tmp0.osi(length);
|
|
896
896
|
break $l$block;
|
|
897
897
|
}
|
|
898
898
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
899
899
|
var tmp;
|
|
900
|
-
switch (tagOverride.
|
|
900
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
901
901
|
case 0:
|
|
902
902
|
var length_0 = readLength(tmp0);
|
|
903
|
-
tmp = tmp0.
|
|
903
|
+
tmp = tmp0.osi(length_0);
|
|
904
904
|
break;
|
|
905
905
|
case 1:
|
|
906
906
|
var length_1 = readLength(tmp0);
|
|
907
|
-
var explicitInput = tmp0.
|
|
907
|
+
var explicitInput = tmp0.psi(length_1);
|
|
908
908
|
readRequestedTag(explicitInput, 4);
|
|
909
909
|
var length_2 = readLength(explicitInput);
|
|
910
|
-
tmp = explicitInput.
|
|
910
|
+
tmp = explicitInput.osi(length_2);
|
|
911
911
|
break;
|
|
912
912
|
default:
|
|
913
913
|
noWhenBranchMatchedException();
|
|
@@ -917,66 +917,66 @@ protoOf(DerInput).zsi = function (tagOverride) {
|
|
|
917
917
|
}
|
|
918
918
|
return tmp$ret$0;
|
|
919
919
|
};
|
|
920
|
-
protoOf(DerInput).
|
|
921
|
-
var tmp0 = this.
|
|
920
|
+
protoOf(DerInput).zsi = function (tagOverride) {
|
|
921
|
+
var tmp0 = this.usi_1;
|
|
922
922
|
var tmp$ret$0;
|
|
923
923
|
$l$block: {
|
|
924
924
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
925
925
|
if (tagOverride == null) {
|
|
926
926
|
readRequestedTag(tmp0, 6);
|
|
927
927
|
var length = readLength(tmp0);
|
|
928
|
-
var slice = tmp0.
|
|
928
|
+
var slice = tmp0.psi(length);
|
|
929
929
|
tmp$ret$0 = _ObjectIdentifier___init__impl__7hutfr(readOidElements(slice));
|
|
930
930
|
break $l$block;
|
|
931
931
|
}
|
|
932
932
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
933
933
|
var tmp;
|
|
934
|
-
switch (tagOverride.
|
|
934
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
935
935
|
case 0:
|
|
936
936
|
var length_0 = readLength(tmp0);
|
|
937
|
-
var slice_0 = tmp0.
|
|
937
|
+
var slice_0 = tmp0.psi(length_0);
|
|
938
938
|
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_0)));
|
|
939
939
|
break;
|
|
940
940
|
case 1:
|
|
941
941
|
var length_1 = readLength(tmp0);
|
|
942
|
-
var explicitInput = tmp0.
|
|
942
|
+
var explicitInput = tmp0.psi(length_1);
|
|
943
943
|
readRequestedTag(explicitInput, 6);
|
|
944
944
|
var length_2 = readLength(explicitInput);
|
|
945
|
-
var slice_1 = explicitInput.
|
|
945
|
+
var slice_1 = explicitInput.psi(length_2);
|
|
946
946
|
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_1)));
|
|
947
947
|
break;
|
|
948
948
|
default:
|
|
949
949
|
noWhenBranchMatchedException();
|
|
950
950
|
break;
|
|
951
951
|
}
|
|
952
|
-
tmp$ret$0 = tmp.
|
|
952
|
+
tmp$ret$0 = tmp.hsi_1;
|
|
953
953
|
}
|
|
954
954
|
return tmp$ret$0;
|
|
955
955
|
};
|
|
956
|
-
protoOf(DerInput).
|
|
957
|
-
var tmp0 = this.
|
|
956
|
+
protoOf(DerInput).csj = function (tagOverride) {
|
|
957
|
+
var tmp0 = this.usi_1;
|
|
958
958
|
var tmp$ret$0;
|
|
959
959
|
$l$block: {
|
|
960
960
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
961
961
|
if (tagOverride == null) {
|
|
962
962
|
readRequestedTag(tmp0, 48);
|
|
963
963
|
var length = readLength(tmp0);
|
|
964
|
-
tmp$ret$0 = tmp0.
|
|
964
|
+
tmp$ret$0 = tmp0.psi(length);
|
|
965
965
|
break $l$block;
|
|
966
966
|
}
|
|
967
967
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
968
968
|
var tmp;
|
|
969
|
-
switch (tagOverride.
|
|
969
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
970
970
|
case 0:
|
|
971
971
|
var length_0 = readLength(tmp0);
|
|
972
|
-
tmp = tmp0.
|
|
972
|
+
tmp = tmp0.psi(length_0);
|
|
973
973
|
break;
|
|
974
974
|
case 1:
|
|
975
975
|
var length_1 = readLength(tmp0);
|
|
976
|
-
var explicitInput = tmp0.
|
|
976
|
+
var explicitInput = tmp0.psi(length_1);
|
|
977
977
|
readRequestedTag(explicitInput, 48);
|
|
978
978
|
var length_2 = readLength(explicitInput);
|
|
979
|
-
tmp = explicitInput.
|
|
979
|
+
tmp = explicitInput.psi(length_2);
|
|
980
980
|
break;
|
|
981
981
|
default:
|
|
982
982
|
noWhenBranchMatchedException();
|
|
@@ -1032,7 +1032,7 @@ function readOidElements(_this__u8e3s4) {
|
|
|
1032
1032
|
this_0.s(_Char___init__impl__6a9atx(49)).s(_Char___init__impl__6a9atx(46)).cd(first - 40 | 0);
|
|
1033
1033
|
else
|
|
1034
1034
|
this_0.s(_Char___init__impl__6a9atx(50)).s(_Char___init__impl__6a9atx(46)).cd(first - 80 | 0);
|
|
1035
|
-
while (!_this__u8e3s4.
|
|
1035
|
+
while (!_this__u8e3s4.msi()) {
|
|
1036
1036
|
this_0.s(_Char___init__impl__6a9atx(46)).cd(readOidElement(_this__u8e3s4));
|
|
1037
1037
|
}
|
|
1038
1038
|
return this_0.toString();
|
|
@@ -1052,23 +1052,23 @@ function readOidElement(_this__u8e3s4) {
|
|
|
1052
1052
|
return element;
|
|
1053
1053
|
}
|
|
1054
1054
|
function DerOutput(output) {
|
|
1055
|
-
this.
|
|
1055
|
+
this.dsj_1 = output;
|
|
1056
1056
|
}
|
|
1057
|
-
protoOf(DerOutput).
|
|
1058
|
-
this.
|
|
1059
|
-
writeLength(this.
|
|
1057
|
+
protoOf(DerOutput).esj = function () {
|
|
1058
|
+
this.dsj_1.qsi(5);
|
|
1059
|
+
writeLength(this.dsj_1, 0);
|
|
1060
1060
|
};
|
|
1061
|
-
protoOf(DerOutput).
|
|
1062
|
-
var tmp0 = this.
|
|
1061
|
+
protoOf(DerOutput).fsj = function (tagOverride, value) {
|
|
1062
|
+
var tmp0 = this.dsj_1;
|
|
1063
1063
|
$l$block: {
|
|
1064
1064
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1065
1065
|
if (tagOverride == null) {
|
|
1066
|
-
tmp0.
|
|
1066
|
+
tmp0.qsi(2);
|
|
1067
1067
|
writeBytes(tmp0, encodeToByteArray(value));
|
|
1068
1068
|
break $l$block;
|
|
1069
1069
|
}
|
|
1070
|
-
tmp0.
|
|
1071
|
-
switch (tagOverride.
|
|
1070
|
+
tmp0.qsi(get_tag(tagOverride));
|
|
1071
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
1072
1072
|
case 0:
|
|
1073
1073
|
writeBytes(tmp0, encodeToByteArray(value));
|
|
1074
1074
|
break;
|
|
@@ -1078,7 +1078,7 @@ protoOf(DerOutput).dsj = function (tagOverride, value) {
|
|
|
1078
1078
|
// Inline function 'kotlin.apply' call
|
|
1079
1079
|
|
|
1080
1080
|
var this_0 = new ByteArrayOutput();
|
|
1081
|
-
this_0.
|
|
1081
|
+
this_0.qsi(2);
|
|
1082
1082
|
writeBytes(this_0, encodeToByteArray(value));
|
|
1083
1083
|
writeBytes_0(tmp0, this_0);
|
|
1084
1084
|
break;
|
|
@@ -1088,23 +1088,23 @@ protoOf(DerOutput).dsj = function (tagOverride, value) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
|
-
protoOf(DerOutput).
|
|
1092
|
-
var tmp0 = this.
|
|
1091
|
+
protoOf(DerOutput).hsj = function (tagOverride, bits) {
|
|
1092
|
+
var tmp0 = this.dsj_1;
|
|
1093
1093
|
$l$block: {
|
|
1094
1094
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1095
1095
|
if (tagOverride == null) {
|
|
1096
|
-
tmp0.
|
|
1097
|
-
writeLength(tmp0, bits.
|
|
1098
|
-
tmp0.
|
|
1099
|
-
tmp0.
|
|
1096
|
+
tmp0.qsi(3);
|
|
1097
|
+
writeLength(tmp0, bits.ssh_1.length + 1 | 0);
|
|
1098
|
+
tmp0.rsi(bits.rsh_1);
|
|
1099
|
+
tmp0.ssi(bits.ssh_1);
|
|
1100
1100
|
break $l$block;
|
|
1101
1101
|
}
|
|
1102
|
-
tmp0.
|
|
1103
|
-
switch (tagOverride.
|
|
1102
|
+
tmp0.qsi(get_tag(tagOverride));
|
|
1103
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
1104
1104
|
case 0:
|
|
1105
|
-
writeLength(tmp0, bits.
|
|
1106
|
-
tmp0.
|
|
1107
|
-
tmp0.
|
|
1105
|
+
writeLength(tmp0, bits.ssh_1.length + 1 | 0);
|
|
1106
|
+
tmp0.rsi(bits.rsh_1);
|
|
1107
|
+
tmp0.ssi(bits.ssh_1);
|
|
1108
1108
|
break;
|
|
1109
1109
|
case 1:
|
|
1110
1110
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
@@ -1112,10 +1112,10 @@ protoOf(DerOutput).fsj = function (tagOverride, bits) {
|
|
|
1112
1112
|
// Inline function 'kotlin.apply' call
|
|
1113
1113
|
|
|
1114
1114
|
var this_0 = new ByteArrayOutput();
|
|
1115
|
-
this_0.
|
|
1116
|
-
writeLength(this_0, bits.
|
|
1117
|
-
this_0.
|
|
1118
|
-
this_0.
|
|
1115
|
+
this_0.qsi(3);
|
|
1116
|
+
writeLength(this_0, bits.ssh_1.length + 1 | 0);
|
|
1117
|
+
this_0.rsi(bits.rsh_1);
|
|
1118
|
+
this_0.ssi(bits.ssh_1);
|
|
1119
1119
|
writeBytes_0(tmp0, this_0);
|
|
1120
1120
|
break;
|
|
1121
1121
|
default:
|
|
@@ -1124,17 +1124,17 @@ protoOf(DerOutput).fsj = function (tagOverride, bits) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
};
|
|
1127
|
-
protoOf(DerOutput).
|
|
1128
|
-
var tmp0 = this.
|
|
1127
|
+
protoOf(DerOutput).isj = function (tagOverride, bytes) {
|
|
1128
|
+
var tmp0 = this.dsj_1;
|
|
1129
1129
|
$l$block: {
|
|
1130
1130
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1131
1131
|
if (tagOverride == null) {
|
|
1132
|
-
tmp0.
|
|
1132
|
+
tmp0.qsi(4);
|
|
1133
1133
|
writeBytes(tmp0, bytes);
|
|
1134
1134
|
break $l$block;
|
|
1135
1135
|
}
|
|
1136
|
-
tmp0.
|
|
1137
|
-
switch (tagOverride.
|
|
1136
|
+
tmp0.qsi(get_tag(tagOverride));
|
|
1137
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
1138
1138
|
case 0:
|
|
1139
1139
|
writeBytes(tmp0, bytes);
|
|
1140
1140
|
break;
|
|
@@ -1144,7 +1144,7 @@ protoOf(DerOutput).gsj = function (tagOverride, bytes) {
|
|
|
1144
1144
|
// Inline function 'kotlin.apply' call
|
|
1145
1145
|
|
|
1146
1146
|
var this_0 = new ByteArrayOutput();
|
|
1147
|
-
this_0.
|
|
1147
|
+
this_0.qsi(4);
|
|
1148
1148
|
writeBytes(this_0, bytes);
|
|
1149
1149
|
writeBytes_0(tmp0, this_0);
|
|
1150
1150
|
break;
|
|
@@ -1154,12 +1154,12 @@ protoOf(DerOutput).gsj = function (tagOverride, bytes) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
};
|
|
1157
|
-
protoOf(DerOutput).
|
|
1158
|
-
var tmp0 = this.
|
|
1157
|
+
protoOf(DerOutput).gsj = function (tagOverride, value) {
|
|
1158
|
+
var tmp0 = this.dsj_1;
|
|
1159
1159
|
$l$block: {
|
|
1160
1160
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1161
1161
|
if (tagOverride == null) {
|
|
1162
|
-
tmp0.
|
|
1162
|
+
tmp0.qsi(6);
|
|
1163
1163
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1164
1164
|
// Inline function 'kotlin.apply' call
|
|
1165
1165
|
var this_0 = new ByteArrayOutput();
|
|
@@ -1167,8 +1167,8 @@ protoOf(DerOutput).esj = function (tagOverride, value) {
|
|
|
1167
1167
|
writeBytes_0(tmp0, this_0);
|
|
1168
1168
|
break $l$block;
|
|
1169
1169
|
}
|
|
1170
|
-
tmp0.
|
|
1171
|
-
switch (tagOverride.
|
|
1170
|
+
tmp0.qsi(get_tag(tagOverride));
|
|
1171
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
1172
1172
|
case 0:
|
|
1173
1173
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1174
1174
|
|
|
@@ -1184,7 +1184,7 @@ protoOf(DerOutput).esj = function (tagOverride, value) {
|
|
|
1184
1184
|
// Inline function 'kotlin.apply' call
|
|
1185
1185
|
|
|
1186
1186
|
var this_2 = new ByteArrayOutput();
|
|
1187
|
-
this_2.
|
|
1187
|
+
this_2.qsi(6);
|
|
1188
1188
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1189
1189
|
|
|
1190
1190
|
// Inline function 'kotlin.apply' call
|
|
@@ -1200,19 +1200,19 @@ protoOf(DerOutput).esj = function (tagOverride, value) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
};
|
|
1203
|
-
protoOf(DerOutput).
|
|
1204
|
-
var tmp0 = this.
|
|
1203
|
+
protoOf(DerOutput).jsj = function (tagOverride, bytes) {
|
|
1204
|
+
var tmp0 = this.dsj_1;
|
|
1205
1205
|
$l$block: {
|
|
1206
1206
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1207
1207
|
if (tagOverride == null) {
|
|
1208
|
-
tmp0.
|
|
1209
|
-
writeBytes_0(tmp0, bytes.
|
|
1208
|
+
tmp0.qsi(48);
|
|
1209
|
+
writeBytes_0(tmp0, bytes.dsj_1);
|
|
1210
1210
|
break $l$block;
|
|
1211
1211
|
}
|
|
1212
|
-
tmp0.
|
|
1213
|
-
switch (tagOverride.
|
|
1212
|
+
tmp0.qsi(get_tag(tagOverride));
|
|
1213
|
+
switch (tagOverride.osh_1.a1_1) {
|
|
1214
1214
|
case 0:
|
|
1215
|
-
writeBytes_0(tmp0, bytes.
|
|
1215
|
+
writeBytes_0(tmp0, bytes.dsj_1);
|
|
1216
1216
|
break;
|
|
1217
1217
|
case 1:
|
|
1218
1218
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
@@ -1220,8 +1220,8 @@ protoOf(DerOutput).hsj = function (tagOverride, bytes) {
|
|
|
1220
1220
|
// Inline function 'kotlin.apply' call
|
|
1221
1221
|
|
|
1222
1222
|
var this_0 = new ByteArrayOutput();
|
|
1223
|
-
this_0.
|
|
1224
|
-
writeBytes_0(this_0, bytes.
|
|
1223
|
+
this_0.qsi(48);
|
|
1224
|
+
writeBytes_0(this_0, bytes.dsj_1);
|
|
1225
1225
|
writeBytes_0(tmp0, this_0);
|
|
1226
1226
|
break;
|
|
1227
1227
|
default:
|
|
@@ -1232,23 +1232,23 @@ protoOf(DerOutput).hsj = function (tagOverride, bytes) {
|
|
|
1232
1232
|
};
|
|
1233
1233
|
function writeLength(_this__u8e3s4, length) {
|
|
1234
1234
|
if (length < 128)
|
|
1235
|
-
return _this__u8e3s4.
|
|
1235
|
+
return _this__u8e3s4.rsi(length);
|
|
1236
1236
|
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1237
1237
|
var numberOfLengthBytes = 4 - (clz32(length) / 8 | 0) | 0;
|
|
1238
|
-
_this__u8e3s4.
|
|
1238
|
+
_this__u8e3s4.rsi(numberOfLengthBytes | 128);
|
|
1239
1239
|
// Inline function 'kotlin.repeat' call
|
|
1240
1240
|
var inductionVariable = 0;
|
|
1241
1241
|
if (inductionVariable < numberOfLengthBytes)
|
|
1242
1242
|
do {
|
|
1243
1243
|
var index = inductionVariable;
|
|
1244
1244
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1245
|
-
_this__u8e3s4.
|
|
1245
|
+
_this__u8e3s4.rsi(length >>> imul(8, (numberOfLengthBytes - 1 | 0) - index | 0) | 0);
|
|
1246
1246
|
}
|
|
1247
1247
|
while (inductionVariable < numberOfLengthBytes);
|
|
1248
1248
|
}
|
|
1249
1249
|
function writeBytes(_this__u8e3s4, bytes) {
|
|
1250
1250
|
writeLength(_this__u8e3s4, bytes.length);
|
|
1251
|
-
_this__u8e3s4.
|
|
1251
|
+
_this__u8e3s4.ssi(bytes);
|
|
1252
1252
|
}
|
|
1253
1253
|
function writeOidElements(_this__u8e3s4, elements) {
|
|
1254
1254
|
// Inline function 'kotlin.check' call
|
|
@@ -1270,11 +1270,11 @@ function writeOidElements(_this__u8e3s4, elements) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
function writeBytes_0(_this__u8e3s4, bytes) {
|
|
1272
1272
|
writeLength(_this__u8e3s4, bytes.g1());
|
|
1273
|
-
_this__u8e3s4.
|
|
1273
|
+
_this__u8e3s4.tsi(bytes);
|
|
1274
1274
|
}
|
|
1275
1275
|
function writeOidElement(_this__u8e3s4, element) {
|
|
1276
1276
|
if (element < 128)
|
|
1277
|
-
return _this__u8e3s4.
|
|
1277
|
+
return _this__u8e3s4.rsi(element);
|
|
1278
1278
|
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1279
1279
|
var l = (32 - clz32(element) | 0) / 7 | 0;
|
|
1280
1280
|
// Inline function 'kotlin.repeat' call
|
|
@@ -1285,11 +1285,11 @@ function writeOidElement(_this__u8e3s4, element) {
|
|
|
1285
1285
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1286
1286
|
var value = element >>> imul(l - index | 0, 7) | 0;
|
|
1287
1287
|
if (!(value === 0)) {
|
|
1288
|
-
_this__u8e3s4.
|
|
1288
|
+
_this__u8e3s4.rsi(value & 127 | 128);
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
1291
|
while (inductionVariable < l);
|
|
1292
|
-
_this__u8e3s4.
|
|
1292
|
+
_this__u8e3s4.rsi(element & 127);
|
|
1293
1293
|
}
|
|
1294
1294
|
function writeOidElements$element($elements, index) {
|
|
1295
1295
|
return toInt($elements.h1(index));
|
|
@@ -1319,16 +1319,16 @@ function getElementContextSpecificTag(_this__u8e3s4, index) {
|
|
|
1319
1319
|
}
|
|
1320
1320
|
var annotation = tmp_0;
|
|
1321
1321
|
// Inline function 'kotlin.check' call
|
|
1322
|
-
if (!(annotation.
|
|
1323
|
-
var message = 'Context specific tag class must be less than 31, but was ' + annotation.
|
|
1322
|
+
if (!(annotation.nsh_1 < 31)) {
|
|
1323
|
+
var message = 'Context specific tag class must be less than 31, but was ' + annotation.nsh_1;
|
|
1324
1324
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1325
1325
|
}
|
|
1326
1326
|
return annotation;
|
|
1327
1327
|
}
|
|
1328
1328
|
function get_tag(_this__u8e3s4) {
|
|
1329
|
-
var contextSpecificTag = _this__u8e3s4.
|
|
1329
|
+
var contextSpecificTag = _this__u8e3s4.nsh_1 | 128;
|
|
1330
1330
|
var tmp;
|
|
1331
|
-
switch (_this__u8e3s4.
|
|
1331
|
+
switch (_this__u8e3s4.osh_1.a1_1) {
|
|
1332
1332
|
case 0:
|
|
1333
1333
|
tmp = toByte(contextSpecificTag);
|
|
1334
1334
|
break;
|