@solibo/solibo-sdk 1.1.45 → 1.1.46
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/KotlinBigInteger-bignum.mjs +1104 -1104
- 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 +240 -240
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/ktor-ktor-client-auth.mjs +224 -224
- package/ktor-ktor-client-logging.mjs +516 -516
- package/ktor-ktor-client-mock.mjs +39 -39
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +12811 -12885
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +1 -5
- package/solibo-sdk-sdk.mjs +2349 -2349
|
@@ -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.npa_1 = classIndex;
|
|
102
|
+
this.opa_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.npa_1 === tmp0_other_with_cast.npa_1))
|
|
109
109
|
return false;
|
|
110
|
-
if (!this.
|
|
110
|
+
if (!this.opa_1.equals(tmp0_other_with_cast.opa_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.npa_1;
|
|
116
|
+
result = result + (imul(getStringHashCode('type'), 127) ^ this.opa_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.npa_1 + ', ' + 'type=' + this.opa_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.ppa_1 = tmp0_serialDesc;
|
|
137
137
|
}
|
|
138
|
-
protoOf($serializer).
|
|
139
|
-
var tmp0_desc = this.
|
|
138
|
+
protoOf($serializer).qpa = function (encoder, value) {
|
|
139
|
+
var tmp0_desc = this.ppa_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.rpa_1);
|
|
142
|
+
tmp1_output.hy(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.spa_1);
|
|
143
143
|
tmp1_output.rw(tmp0_desc);
|
|
144
144
|
};
|
|
145
145
|
protoOf($serializer).ot = function (encoder, value) {
|
|
146
|
-
return this.
|
|
146
|
+
return this.qpa(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.ppa_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.ppa_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().ppa_1);
|
|
201
201
|
}
|
|
202
|
-
$this.
|
|
203
|
-
$this.
|
|
202
|
+
$this.rpa_1 = unusedBits;
|
|
203
|
+
$this.spa_1 = byteArray;
|
|
204
204
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
205
|
-
if ($this.
|
|
205
|
+
if ($this.spa_1.length === 0) {
|
|
206
206
|
// Inline function 'kotlin.check' call
|
|
207
|
-
if (!($this.
|
|
207
|
+
if (!($this.rpa_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.spa_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.rpa_1 <= tmp$ret$3)) {
|
|
217
|
+
var message_0 = 'At least ' + $this.rpa_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.rpa_1 = unusedBits;
|
|
228
|
+
this.spa_1 = byteArray;
|
|
229
229
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
230
|
-
if (this.
|
|
230
|
+
if (this.spa_1.length === 0) {
|
|
231
231
|
// Inline function 'kotlin.check' call
|
|
232
|
-
if (!(this.
|
|
232
|
+
if (!(this.rpa_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.spa_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.rpa_1 <= tmp$ret$3)) {
|
|
242
|
+
var message_0 = 'At least ' + this.rpa_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.tpa_1 = serializersModule;
|
|
260
260
|
}
|
|
261
261
|
protoOf(Der).mt = function () {
|
|
262
|
-
return this.
|
|
262
|
+
return this.tpa_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.apb();
|
|
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.fpb_1 = tmp0_serialDesc;
|
|
293
293
|
}
|
|
294
|
-
protoOf($serializer_0).
|
|
295
|
-
var tmp0_inlineEncoder = encoder.wx(this.
|
|
294
|
+
protoOf($serializer_0).gpb = function (encoder, value) {
|
|
295
|
+
var tmp0_inlineEncoder = encoder.wx(this.fpb_1);
|
|
296
296
|
if (tmp0_inlineEncoder == null)
|
|
297
297
|
null;
|
|
298
298
|
else {
|
|
@@ -300,16 +300,16 @@ protoOf($serializer_0).ipb = function (encoder, value) {
|
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
302
|
protoOf($serializer_0).ot = function (encoder, value) {
|
|
303
|
-
return this.
|
|
303
|
+
return this.gpb(encoder, value instanceof ObjectIdentifier ? value.hpb_1 : THROW_CCE());
|
|
304
304
|
};
|
|
305
|
-
protoOf($serializer_0).
|
|
306
|
-
return _ObjectIdentifier___init__impl__7hutfr(decoder.ow(this.
|
|
305
|
+
protoOf($serializer_0).ipb = function (decoder) {
|
|
306
|
+
return _ObjectIdentifier___init__impl__7hutfr(decoder.ow(this.fpb_1).mw());
|
|
307
307
|
};
|
|
308
308
|
protoOf($serializer_0).pt = function (decoder) {
|
|
309
|
-
return new ObjectIdentifier(this.
|
|
309
|
+
return new ObjectIdentifier(this.ipb(decoder));
|
|
310
310
|
};
|
|
311
311
|
protoOf($serializer_0).bt = function () {
|
|
312
|
-
return this.
|
|
312
|
+
return this.fpb_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.hpb_1 : THROW_CCE())))
|
|
336
336
|
return false;
|
|
337
337
|
return true;
|
|
338
338
|
}
|
|
339
339
|
function ObjectIdentifier(value) {
|
|
340
|
-
this.
|
|
340
|
+
this.hpb_1 = value;
|
|
341
341
|
}
|
|
342
342
|
protoOf(ObjectIdentifier).toString = function () {
|
|
343
|
-
return ObjectIdentifier__toString_impl_dtwsrd(this.
|
|
343
|
+
return ObjectIdentifier__toString_impl_dtwsrd(this.hpb_1);
|
|
344
344
|
};
|
|
345
345
|
protoOf(ObjectIdentifier).hashCode = function () {
|
|
346
|
-
return ObjectIdentifier__hashCode_impl_7x941i(this.
|
|
346
|
+
return ObjectIdentifier__hashCode_impl_7x941i(this.hpb_1);
|
|
347
347
|
};
|
|
348
348
|
protoOf(ObjectIdentifier).equals = function (other) {
|
|
349
|
-
return ObjectIdentifier__equals_impl_u5dbkq(this.
|
|
349
|
+
return ObjectIdentifier__equals_impl_u5dbkq(this.hpb_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.kpb_1 - $this.lpb_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.jpb_1 = array;
|
|
370
|
+
this.kpb_1 = endIndex;
|
|
371
|
+
this.lpb_1 = startIndex;
|
|
372
372
|
}
|
|
373
|
-
protoOf(ByteArrayInput).
|
|
373
|
+
protoOf(ByteArrayInput).mpb = 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.jpb_1.length + ', endIndex=' + this.kpb_1 + ', position=' + this.lpb_1 + ', available=' + _get_available__saq0tk(this) + ')';
|
|
378
378
|
};
|
|
379
|
-
protoOf(ByteArrayInput).
|
|
379
|
+
protoOf(ByteArrayInput).npb = function () {
|
|
380
380
|
ensureAvailableBytes(this, 1);
|
|
381
|
-
return this.
|
|
381
|
+
return this.jpb_1[this.lpb_1];
|
|
382
382
|
};
|
|
383
383
|
protoOf(ByteArrayInput).s1k = function () {
|
|
384
384
|
ensureAvailableBytes(this, 1);
|
|
385
|
-
var _unary__edvuaz = this.
|
|
386
|
-
this.
|
|
387
|
-
return this.
|
|
385
|
+
var _unary__edvuaz = this.lpb_1;
|
|
386
|
+
this.lpb_1 = _unary__edvuaz + 1 | 0;
|
|
387
|
+
return this.jpb_1[_unary__edvuaz];
|
|
388
388
|
};
|
|
389
|
-
protoOf(ByteArrayInput).
|
|
389
|
+
protoOf(ByteArrayInput).opb = 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.jpb_1, this.lpb_1, this.lpb_1 + length | 0);
|
|
395
|
+
this.lpb_1 = this.lpb_1 + length | 0;
|
|
396
396
|
return this_0;
|
|
397
397
|
};
|
|
398
|
-
protoOf(ByteArrayInput).
|
|
398
|
+
protoOf(ByteArrayInput).ppb = 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.jpb_1, this.lpb_1, this.lpb_1 + length | 0);
|
|
404
|
+
this.lpb_1 = this.lpb_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.zpa_1 + elementsToAppend | 0) <= $this.ypa_1.length)
|
|
416
416
|
return Unit_instance;
|
|
417
|
-
$this.
|
|
417
|
+
$this.ypa_1 = copyOf($this.ypa_1, takeHighestOneBit($this.zpa_1 + elementsToAppend | 0) << 1);
|
|
418
418
|
}
|
|
419
419
|
function ByteArrayOutput() {
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
420
|
+
this.ypa_1 = new Int8Array(32);
|
|
421
|
+
this.zpa_1 = 0;
|
|
422
422
|
}
|
|
423
423
|
protoOf(ByteArrayOutput).g1 = function () {
|
|
424
|
-
return this.
|
|
424
|
+
return this.zpa_1;
|
|
425
425
|
};
|
|
426
|
-
protoOf(ByteArrayOutput).
|
|
427
|
-
return copyOf(this.
|
|
426
|
+
protoOf(ByteArrayOutput).apb = function () {
|
|
427
|
+
return copyOf(this.ypa_1, this.zpa_1);
|
|
428
428
|
};
|
|
429
|
-
protoOf(ByteArrayOutput).
|
|
429
|
+
protoOf(ByteArrayOutput).qpb = function (byte) {
|
|
430
430
|
ensureCapacity(this, 1);
|
|
431
|
-
var tmp = this.
|
|
432
|
-
var _unary__edvuaz = this.
|
|
433
|
-
this.
|
|
431
|
+
var tmp = this.ypa_1;
|
|
432
|
+
var _unary__edvuaz = this.zpa_1;
|
|
433
|
+
this.zpa_1 = _unary__edvuaz + 1 | 0;
|
|
434
434
|
tmp[_unary__edvuaz] = byte;
|
|
435
435
|
};
|
|
436
|
-
protoOf(ByteArrayOutput).
|
|
437
|
-
this.
|
|
436
|
+
protoOf(ByteArrayOutput).rpb = function (byte) {
|
|
437
|
+
this.qpb(toByte(byte));
|
|
438
438
|
};
|
|
439
|
-
protoOf(ByteArrayOutput).
|
|
439
|
+
protoOf(ByteArrayOutput).spb = 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.ypa_1;
|
|
445
445
|
// Inline function 'kotlin.collections.copyInto' call
|
|
446
|
-
var destinationOffset = this.
|
|
446
|
+
var destinationOffset = this.zpa_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).upb = 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.zpa_1 = this.zpa_1 + bytes.length | 0;
|
|
455
455
|
};
|
|
456
|
-
protoOf(ByteArrayOutput).
|
|
456
|
+
protoOf(ByteArrayOutput).tpb = 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.zpa_1);
|
|
460
|
+
var tmp0 = output.ypa_1;
|
|
461
|
+
var tmp2 = this.ypa_1;
|
|
462
|
+
var tmp4 = this.zpa_1;
|
|
463
463
|
// Inline function 'kotlin.collections.copyInto' call
|
|
464
|
-
var endIndex = output.
|
|
464
|
+
var endIndex = output.zpa_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.zpa_1 = this.zpa_1 + output.zpa_1 | 0;
|
|
472
472
|
};
|
|
473
473
|
function getAndResetTagOverride($this) {
|
|
474
|
-
var tag = $this.
|
|
475
|
-
$this.
|
|
474
|
+
var tag = $this.epb_1;
|
|
475
|
+
$this.epb_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.bpb_1 = der;
|
|
481
|
+
this.cpb_1 = new DerInput(byteArrayInput);
|
|
482
|
+
this.dpb_1 = 0;
|
|
483
|
+
this.epb_1 = null;
|
|
484
484
|
}
|
|
485
485
|
protoOf(DerDecoder).mt = function () {
|
|
486
|
-
return this.
|
|
486
|
+
return this.bpb_1.mt();
|
|
487
487
|
};
|
|
488
488
|
protoOf(DerDecoder).hx = function (descriptor) {
|
|
489
|
-
if (this.
|
|
489
|
+
if (this.cpb_1.mpb())
|
|
490
490
|
return -1;
|
|
491
|
-
var tag = this.
|
|
491
|
+
var tag = this.cpb_1.vpb();
|
|
492
492
|
$l$loop: while (true) {
|
|
493
|
-
var index = this.
|
|
494
|
-
this.
|
|
493
|
+
var index = this.dpb_1;
|
|
494
|
+
this.epb_1 = getElementContextSpecificTag(descriptor, index);
|
|
495
495
|
if (descriptor.gv(index)) {
|
|
496
|
-
var tmp0 = this.
|
|
496
|
+
var tmp0 = this.epb_1;
|
|
497
497
|
var tmp$ret$1;
|
|
498
498
|
$l$block: {
|
|
499
499
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -507,47 +507,47 @@ protoOf(DerDecoder).hx = function (descriptor) {
|
|
|
507
507
|
}
|
|
508
508
|
var requiredTag = tmp$ret$1;
|
|
509
509
|
if (!(tag === get_tag(requiredTag))) {
|
|
510
|
-
this.
|
|
510
|
+
this.dpb_1 = this.dpb_1 + 1 | 0;
|
|
511
511
|
continue $l$loop;
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
var _unary__edvuaz = this.
|
|
515
|
-
this.
|
|
514
|
+
var _unary__edvuaz = this.dpb_1;
|
|
515
|
+
this.dpb_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.cpb_1.wpb();
|
|
521
521
|
};
|
|
522
522
|
protoOf(DerDecoder).dw = function () {
|
|
523
|
-
return this.
|
|
523
|
+
return this.cpb_1.xpb();
|
|
524
524
|
};
|
|
525
525
|
protoOf(DerDecoder).fw = function () {
|
|
526
|
-
return this.
|
|
526
|
+
return this.cpb_1.ypb(getAndResetTagOverride(this)).fp9();
|
|
527
527
|
};
|
|
528
528
|
protoOf(DerDecoder).gw = function () {
|
|
529
|
-
return this.
|
|
529
|
+
return this.cpb_1.ypb(getAndResetTagOverride(this)).gp9();
|
|
530
530
|
};
|
|
531
531
|
protoOf(DerDecoder).hw = function () {
|
|
532
|
-
return this.
|
|
532
|
+
return this.cpb_1.ypb(getAndResetTagOverride(this)).hp9();
|
|
533
533
|
};
|
|
534
534
|
protoOf(DerDecoder).iw = function () {
|
|
535
|
-
return this.
|
|
535
|
+
return this.cpb_1.ypb(getAndResetTagOverride(this)).ip9();
|
|
536
536
|
};
|
|
537
537
|
protoOf(DerDecoder).qt = function (deserializer) {
|
|
538
538
|
var tmp0_subject = deserializer.bt();
|
|
539
539
|
var tmp;
|
|
540
540
|
if (equals(tmp0_subject, ByteArraySerializer().bt())) {
|
|
541
|
-
var tmp_0 = this.
|
|
541
|
+
var tmp_0 = this.cpb_1.bpc(getAndResetTagOverride(this));
|
|
542
542
|
tmp = !(tmp_0 == null) ? tmp_0 : THROW_CCE();
|
|
543
543
|
} else if (equals(tmp0_subject, Companion_instance.b1h().bt())) {
|
|
544
|
-
var tmp_1 = this.
|
|
544
|
+
var tmp_1 = this.cpb_1.apc(getAndResetTagOverride(this));
|
|
545
545
|
tmp = !(tmp_1 == null) ? tmp_1 : THROW_CCE();
|
|
546
546
|
} else if (equals(tmp0_subject, Companion_instance_0.b1h().bt())) {
|
|
547
|
-
var tmp_2 = this.
|
|
547
|
+
var tmp_2 = this.cpb_1.zpb(getAndResetTagOverride(this));
|
|
548
548
|
tmp = !(new ObjectIdentifier(tmp_2) == null) ? new ObjectIdentifier(tmp_2) : THROW_CCE();
|
|
549
549
|
} else if (equals(tmp0_subject, Companion_getInstance().b1h().bt())) {
|
|
550
|
-
var tmp_3 = this.
|
|
550
|
+
var tmp_3 = this.cpb_1.ypb(getAndResetTagOverride(this));
|
|
551
551
|
tmp = !(tmp_3 == null) ? tmp_3 : THROW_CCE();
|
|
552
552
|
} else {
|
|
553
553
|
tmp = deserializer.pt(this);
|
|
@@ -564,7 +564,7 @@ protoOf(DerDecoder).qw = function (descriptor) {
|
|
|
564
564
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
565
565
|
}
|
|
566
566
|
if (tmp_0) {
|
|
567
|
-
tmp = new DerDecoder(this.
|
|
567
|
+
tmp = new DerDecoder(this.bpb_1, this.cpb_1.cpc(getAndResetTagOverride(this)));
|
|
568
568
|
} else {
|
|
569
569
|
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
570
570
|
}
|
|
@@ -605,63 +605,63 @@ protoOf(DerDecoder).bw = function () {
|
|
|
605
605
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
606
606
|
};
|
|
607
607
|
function getAndResetTagOverride_0($this) {
|
|
608
|
-
var tag = $this.
|
|
609
|
-
$this.
|
|
608
|
+
var tag = $this.xpa_1;
|
|
609
|
+
$this.xpa_1 = null;
|
|
610
610
|
return tag;
|
|
611
611
|
}
|
|
612
612
|
function DerEncoder(der, byteArrayOutput, parentOutput) {
|
|
613
613
|
parentOutput = parentOutput === VOID ? null : parentOutput;
|
|
614
614
|
AbstractEncoder.call(this);
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
615
|
+
this.upa_1 = der;
|
|
616
|
+
this.vpa_1 = parentOutput;
|
|
617
|
+
this.wpa_1 = new DerOutput(byteArrayOutput);
|
|
618
|
+
this.xpa_1 = null;
|
|
619
619
|
}
|
|
620
620
|
protoOf(DerEncoder).mt = function () {
|
|
621
|
-
return this.
|
|
621
|
+
return this.upa_1.mt();
|
|
622
622
|
};
|
|
623
623
|
protoOf(DerEncoder).my = function (descriptor, index) {
|
|
624
624
|
return false;
|
|
625
625
|
};
|
|
626
626
|
protoOf(DerEncoder).jx = function (descriptor, index) {
|
|
627
|
-
this.
|
|
627
|
+
this.xpa_1 = getElementContextSpecificTag(descriptor, index);
|
|
628
628
|
return true;
|
|
629
629
|
};
|
|
630
630
|
protoOf(DerEncoder).ky = function () {
|
|
631
631
|
};
|
|
632
632
|
protoOf(DerEncoder).lx = function () {
|
|
633
|
-
return this.
|
|
633
|
+
return this.wpa_1.epc();
|
|
634
634
|
};
|
|
635
635
|
protoOf(DerEncoder).nx = function (value) {
|
|
636
|
-
return this.
|
|
636
|
+
return this.wpa_1.fpc(getAndResetTagOverride_0(this), toBigInt(value));
|
|
637
637
|
};
|
|
638
638
|
protoOf(DerEncoder).ox = function (value) {
|
|
639
|
-
return this.
|
|
639
|
+
return this.wpa_1.fpc(getAndResetTagOverride_0(this), toBigInt_0(value));
|
|
640
640
|
};
|
|
641
641
|
protoOf(DerEncoder).px = function (value) {
|
|
642
|
-
return this.
|
|
642
|
+
return this.wpa_1.fpc(getAndResetTagOverride_0(this), toBigInt_1(value));
|
|
643
643
|
};
|
|
644
644
|
protoOf(DerEncoder).qx = function (value) {
|
|
645
|
-
return this.
|
|
645
|
+
return this.wpa_1.fpc(getAndResetTagOverride_0(this), toBigInt_2(value));
|
|
646
646
|
};
|
|
647
647
|
protoOf(DerEncoder).nt = function (serializer, value) {
|
|
648
648
|
var tmp0_subject = serializer.bt();
|
|
649
649
|
var tmp;
|
|
650
650
|
if (equals(tmp0_subject, ByteArraySerializer().bt())) {
|
|
651
651
|
var tmp_0 = getAndResetTagOverride_0(this);
|
|
652
|
-
this.
|
|
652
|
+
this.wpa_1.ipc(tmp_0, (!(value == null) ? isByteArray(value) : false) ? value : THROW_CCE());
|
|
653
653
|
tmp = Unit_instance;
|
|
654
654
|
} else if (equals(tmp0_subject, Companion_instance.b1h().bt())) {
|
|
655
655
|
var tmp_1 = getAndResetTagOverride_0(this);
|
|
656
|
-
this.
|
|
656
|
+
this.wpa_1.hpc(tmp_1, value instanceof BitArray ? value : THROW_CCE());
|
|
657
657
|
tmp = Unit_instance;
|
|
658
658
|
} else if (equals(tmp0_subject, Companion_instance_0.b1h().bt())) {
|
|
659
659
|
var tmp_2 = getAndResetTagOverride_0(this);
|
|
660
|
-
this.
|
|
660
|
+
this.wpa_1.gpc(tmp_2, value instanceof ObjectIdentifier ? value.hpb_1 : THROW_CCE());
|
|
661
661
|
tmp = Unit_instance;
|
|
662
662
|
} else if (equals(tmp0_subject, Companion_getInstance().b1h().bt())) {
|
|
663
663
|
var tmp_3 = getAndResetTagOverride_0(this);
|
|
664
|
-
this.
|
|
664
|
+
this.wpa_1.fpc(tmp_3, value instanceof BigInt ? value : THROW_CCE());
|
|
665
665
|
tmp = Unit_instance;
|
|
666
666
|
} else {
|
|
667
667
|
serializer.ot(this, value);
|
|
@@ -679,14 +679,14 @@ protoOf(DerEncoder).qw = function (descriptor) {
|
|
|
679
679
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
680
680
|
}
|
|
681
681
|
if (tmp_0) {
|
|
682
|
-
tmp = new DerEncoder(this.
|
|
682
|
+
tmp = new DerEncoder(this.upa_1, new ByteArrayOutput(), this.wpa_1);
|
|
683
683
|
} else {
|
|
684
684
|
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
685
685
|
}
|
|
686
686
|
return tmp;
|
|
687
687
|
};
|
|
688
688
|
protoOf(DerEncoder).rw = function (descriptor) {
|
|
689
|
-
var tmp0 = this.
|
|
689
|
+
var tmp0 = this.vpa_1;
|
|
690
690
|
var tmp$ret$1;
|
|
691
691
|
$l$block: {
|
|
692
692
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -698,17 +698,17 @@ protoOf(DerEncoder).rw = function (descriptor) {
|
|
|
698
698
|
break $l$block;
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
-
tmp$ret$1.
|
|
701
|
+
tmp$ret$1.jpc(getAndResetTagOverride_0(this), this.wpa_1);
|
|
702
702
|
};
|
|
703
703
|
protoOf(DerEncoder).wx = function (descriptor) {
|
|
704
704
|
return this;
|
|
705
705
|
};
|
|
706
|
-
protoOf(DerEncoder).
|
|
706
|
+
protoOf(DerEncoder).kpc = function (enumDescriptor, index) {
|
|
707
707
|
var message = 'Enum encoding is not supported';
|
|
708
708
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
709
709
|
};
|
|
710
710
|
protoOf(DerEncoder).vx = function (enumDescriptor, index) {
|
|
711
|
-
return this.
|
|
711
|
+
return this.kpc(enumDescriptor, index);
|
|
712
712
|
};
|
|
713
713
|
protoOf(DerEncoder).ux = function (value) {
|
|
714
714
|
var message = 'String encoding is not supported';
|
|
@@ -735,20 +735,20 @@ protoOf(DerEncoder).kx = function (value) {
|
|
|
735
735
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
736
736
|
};
|
|
737
737
|
function DerInput(input) {
|
|
738
|
-
this.
|
|
738
|
+
this.upb_1 = input;
|
|
739
739
|
}
|
|
740
|
-
protoOf(DerInput).
|
|
741
|
-
return this.
|
|
740
|
+
protoOf(DerInput).mpb = function () {
|
|
741
|
+
return this.upb_1.mpb();
|
|
742
742
|
};
|
|
743
|
-
protoOf(DerInput).
|
|
744
|
-
return this.
|
|
743
|
+
protoOf(DerInput).vpb = function () {
|
|
744
|
+
return this.upb_1.npb();
|
|
745
745
|
};
|
|
746
|
-
protoOf(DerInput).
|
|
747
|
-
return !(this.
|
|
746
|
+
protoOf(DerInput).wpb = function () {
|
|
747
|
+
return !(this.vpb() === 5);
|
|
748
748
|
};
|
|
749
|
-
protoOf(DerInput).
|
|
750
|
-
readRequestedTag(this.
|
|
751
|
-
var length = readLength(this.
|
|
749
|
+
protoOf(DerInput).xpb = function () {
|
|
750
|
+
readRequestedTag(this.upb_1, 5);
|
|
751
|
+
var length = readLength(this.upb_1);
|
|
752
752
|
// Inline function 'kotlin.check' call
|
|
753
753
|
if (!(length === 0)) {
|
|
754
754
|
var message = 'NULL tag length should be zero, but was: ' + length;
|
|
@@ -756,32 +756,32 @@ protoOf(DerInput).zpb = function () {
|
|
|
756
756
|
}
|
|
757
757
|
return null;
|
|
758
758
|
};
|
|
759
|
-
protoOf(DerInput).
|
|
760
|
-
var tmp0 = this.
|
|
759
|
+
protoOf(DerInput).ypb = function (tagOverride) {
|
|
760
|
+
var tmp0 = this.upb_1;
|
|
761
761
|
var tmp$ret$1;
|
|
762
762
|
$l$block: {
|
|
763
763
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
764
764
|
if (tagOverride == null) {
|
|
765
765
|
readRequestedTag(tmp0, 2);
|
|
766
766
|
var length = readLength(tmp0);
|
|
767
|
-
var bytes = tmp0.
|
|
767
|
+
var bytes = tmp0.opb(length);
|
|
768
768
|
tmp$ret$1 = decodeToBigInt(bytes);
|
|
769
769
|
break $l$block;
|
|
770
770
|
}
|
|
771
771
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
772
772
|
var tmp;
|
|
773
|
-
switch (tagOverride.
|
|
773
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
774
774
|
case 0:
|
|
775
775
|
var length_0 = readLength(tmp0);
|
|
776
|
-
var bytes_0 = tmp0.
|
|
776
|
+
var bytes_0 = tmp0.opb(length_0);
|
|
777
777
|
tmp = decodeToBigInt(bytes_0);
|
|
778
778
|
break;
|
|
779
779
|
case 1:
|
|
780
780
|
var length_1 = readLength(tmp0);
|
|
781
|
-
var explicitInput = tmp0.
|
|
781
|
+
var explicitInput = tmp0.ppb(length_1);
|
|
782
782
|
readRequestedTag(explicitInput, 2);
|
|
783
783
|
var length_2 = readLength(explicitInput);
|
|
784
|
-
var bytes_1 = explicitInput.
|
|
784
|
+
var bytes_1 = explicitInput.opb(length_2);
|
|
785
785
|
tmp = decodeToBigInt(bytes_1);
|
|
786
786
|
break;
|
|
787
787
|
default:
|
|
@@ -792,8 +792,8 @@ protoOf(DerInput).apc = function (tagOverride) {
|
|
|
792
792
|
}
|
|
793
793
|
return tmp$ret$1;
|
|
794
794
|
};
|
|
795
|
-
protoOf(DerInput).
|
|
796
|
-
var tmp0 = this.
|
|
795
|
+
protoOf(DerInput).apc = function (tagOverride) {
|
|
796
|
+
var tmp0 = this.upb_1;
|
|
797
797
|
var tmp$ret$7;
|
|
798
798
|
$l$block: {
|
|
799
799
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
@@ -801,7 +801,7 @@ protoOf(DerInput).cpc = function (tagOverride) {
|
|
|
801
801
|
readRequestedTag(tmp0, 3);
|
|
802
802
|
var length = readLength(tmp0);
|
|
803
803
|
var unusedBits = tmp0.s1k();
|
|
804
|
-
var bytes = tmp0.
|
|
804
|
+
var bytes = tmp0.opb(length - 1 | 0);
|
|
805
805
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
806
806
|
if (bytes.length === 0) {
|
|
807
807
|
// Inline function 'kotlin.check' call
|
|
@@ -824,11 +824,11 @@ protoOf(DerInput).cpc = function (tagOverride) {
|
|
|
824
824
|
}
|
|
825
825
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
826
826
|
var tmp;
|
|
827
|
-
switch (tagOverride.
|
|
827
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
828
828
|
case 0:
|
|
829
829
|
var length_0 = readLength(tmp0);
|
|
830
830
|
var unusedBits_0 = tmp0.s1k();
|
|
831
|
-
var bytes_0 = tmp0.
|
|
831
|
+
var bytes_0 = tmp0.opb(length_0 - 1 | 0);
|
|
832
832
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
833
833
|
|
|
834
834
|
if (bytes_0.length === 0) {
|
|
@@ -852,11 +852,11 @@ protoOf(DerInput).cpc = function (tagOverride) {
|
|
|
852
852
|
break;
|
|
853
853
|
case 1:
|
|
854
854
|
var length_1 = readLength(tmp0);
|
|
855
|
-
var explicitInput = tmp0.
|
|
855
|
+
var explicitInput = tmp0.ppb(length_1);
|
|
856
856
|
readRequestedTag(explicitInput, 3);
|
|
857
857
|
var length_2 = readLength(explicitInput);
|
|
858
858
|
var unusedBits_1 = explicitInput.s1k();
|
|
859
|
-
var bytes_1 = explicitInput.
|
|
859
|
+
var bytes_1 = explicitInput.opb(length_2 - 1 | 0);
|
|
860
860
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
861
861
|
|
|
862
862
|
if (bytes_1.length === 0) {
|
|
@@ -886,30 +886,30 @@ protoOf(DerInput).cpc = function (tagOverride) {
|
|
|
886
886
|
}
|
|
887
887
|
return tmp$ret$7;
|
|
888
888
|
};
|
|
889
|
-
protoOf(DerInput).
|
|
890
|
-
var tmp0 = this.
|
|
889
|
+
protoOf(DerInput).bpc = function (tagOverride) {
|
|
890
|
+
var tmp0 = this.upb_1;
|
|
891
891
|
var tmp$ret$1;
|
|
892
892
|
$l$block: {
|
|
893
893
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
894
894
|
if (tagOverride == null) {
|
|
895
895
|
readRequestedTag(tmp0, 4);
|
|
896
896
|
var length = readLength(tmp0);
|
|
897
|
-
tmp$ret$1 = tmp0.
|
|
897
|
+
tmp$ret$1 = tmp0.opb(length);
|
|
898
898
|
break $l$block;
|
|
899
899
|
}
|
|
900
900
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
901
901
|
var tmp;
|
|
902
|
-
switch (tagOverride.
|
|
902
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
903
903
|
case 0:
|
|
904
904
|
var length_0 = readLength(tmp0);
|
|
905
|
-
tmp = tmp0.
|
|
905
|
+
tmp = tmp0.opb(length_0);
|
|
906
906
|
break;
|
|
907
907
|
case 1:
|
|
908
908
|
var length_1 = readLength(tmp0);
|
|
909
|
-
var explicitInput = tmp0.
|
|
909
|
+
var explicitInput = tmp0.ppb(length_1);
|
|
910
910
|
readRequestedTag(explicitInput, 4);
|
|
911
911
|
var length_2 = readLength(explicitInput);
|
|
912
|
-
tmp = explicitInput.
|
|
912
|
+
tmp = explicitInput.opb(length_2);
|
|
913
913
|
break;
|
|
914
914
|
default:
|
|
915
915
|
noWhenBranchMatchedException();
|
|
@@ -919,66 +919,66 @@ protoOf(DerInput).dpc = function (tagOverride) {
|
|
|
919
919
|
}
|
|
920
920
|
return tmp$ret$1;
|
|
921
921
|
};
|
|
922
|
-
protoOf(DerInput).
|
|
923
|
-
var tmp0 = this.
|
|
922
|
+
protoOf(DerInput).zpb = function (tagOverride) {
|
|
923
|
+
var tmp0 = this.upb_1;
|
|
924
924
|
var tmp$ret$1;
|
|
925
925
|
$l$block: {
|
|
926
926
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
927
927
|
if (tagOverride == null) {
|
|
928
928
|
readRequestedTag(tmp0, 6);
|
|
929
929
|
var length = readLength(tmp0);
|
|
930
|
-
var slice = tmp0.
|
|
930
|
+
var slice = tmp0.ppb(length);
|
|
931
931
|
tmp$ret$1 = _ObjectIdentifier___init__impl__7hutfr(readOidElements(slice));
|
|
932
932
|
break $l$block;
|
|
933
933
|
}
|
|
934
934
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
935
935
|
var tmp;
|
|
936
|
-
switch (tagOverride.
|
|
936
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
937
937
|
case 0:
|
|
938
938
|
var length_0 = readLength(tmp0);
|
|
939
|
-
var slice_0 = tmp0.
|
|
939
|
+
var slice_0 = tmp0.ppb(length_0);
|
|
940
940
|
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_0)));
|
|
941
941
|
break;
|
|
942
942
|
case 1:
|
|
943
943
|
var length_1 = readLength(tmp0);
|
|
944
|
-
var explicitInput = tmp0.
|
|
944
|
+
var explicitInput = tmp0.ppb(length_1);
|
|
945
945
|
readRequestedTag(explicitInput, 6);
|
|
946
946
|
var length_2 = readLength(explicitInput);
|
|
947
|
-
var slice_1 = explicitInput.
|
|
947
|
+
var slice_1 = explicitInput.ppb(length_2);
|
|
948
948
|
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_1)));
|
|
949
949
|
break;
|
|
950
950
|
default:
|
|
951
951
|
noWhenBranchMatchedException();
|
|
952
952
|
break;
|
|
953
953
|
}
|
|
954
|
-
tmp$ret$1 = tmp.
|
|
954
|
+
tmp$ret$1 = tmp.hpb_1;
|
|
955
955
|
}
|
|
956
956
|
return tmp$ret$1;
|
|
957
957
|
};
|
|
958
|
-
protoOf(DerInput).
|
|
959
|
-
var tmp0 = this.
|
|
958
|
+
protoOf(DerInput).cpc = function (tagOverride) {
|
|
959
|
+
var tmp0 = this.upb_1;
|
|
960
960
|
var tmp$ret$1;
|
|
961
961
|
$l$block: {
|
|
962
962
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
963
963
|
if (tagOverride == null) {
|
|
964
964
|
readRequestedTag(tmp0, 48);
|
|
965
965
|
var length = readLength(tmp0);
|
|
966
|
-
tmp$ret$1 = tmp0.
|
|
966
|
+
tmp$ret$1 = tmp0.ppb(length);
|
|
967
967
|
break $l$block;
|
|
968
968
|
}
|
|
969
969
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
970
970
|
var tmp;
|
|
971
|
-
switch (tagOverride.
|
|
971
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
972
972
|
case 0:
|
|
973
973
|
var length_0 = readLength(tmp0);
|
|
974
|
-
tmp = tmp0.
|
|
974
|
+
tmp = tmp0.ppb(length_0);
|
|
975
975
|
break;
|
|
976
976
|
case 1:
|
|
977
977
|
var length_1 = readLength(tmp0);
|
|
978
|
-
var explicitInput = tmp0.
|
|
978
|
+
var explicitInput = tmp0.ppb(length_1);
|
|
979
979
|
readRequestedTag(explicitInput, 48);
|
|
980
980
|
var length_2 = readLength(explicitInput);
|
|
981
|
-
tmp = explicitInput.
|
|
981
|
+
tmp = explicitInput.ppb(length_2);
|
|
982
982
|
break;
|
|
983
983
|
default:
|
|
984
984
|
noWhenBranchMatchedException();
|
|
@@ -1034,7 +1034,7 @@ function readOidElements(_this__u8e3s4) {
|
|
|
1034
1034
|
this_0.s(_Char___init__impl__6a9atx(49)).s(_Char___init__impl__6a9atx(46)).bd(first - 40 | 0);
|
|
1035
1035
|
else
|
|
1036
1036
|
this_0.s(_Char___init__impl__6a9atx(50)).s(_Char___init__impl__6a9atx(46)).bd(first - 80 | 0);
|
|
1037
|
-
while (!_this__u8e3s4.
|
|
1037
|
+
while (!_this__u8e3s4.mpb()) {
|
|
1038
1038
|
this_0.s(_Char___init__impl__6a9atx(46)).bd(readOidElement(_this__u8e3s4));
|
|
1039
1039
|
}
|
|
1040
1040
|
return this_0.toString();
|
|
@@ -1054,23 +1054,23 @@ function readOidElement(_this__u8e3s4) {
|
|
|
1054
1054
|
return element;
|
|
1055
1055
|
}
|
|
1056
1056
|
function DerOutput(output) {
|
|
1057
|
-
this.
|
|
1057
|
+
this.dpc_1 = output;
|
|
1058
1058
|
}
|
|
1059
|
-
protoOf(DerOutput).
|
|
1060
|
-
this.
|
|
1061
|
-
writeLength(this.
|
|
1059
|
+
protoOf(DerOutput).epc = function () {
|
|
1060
|
+
this.dpc_1.qpb(5);
|
|
1061
|
+
writeLength(this.dpc_1, 0);
|
|
1062
1062
|
};
|
|
1063
|
-
protoOf(DerOutput).
|
|
1064
|
-
var tmp0 = this.
|
|
1063
|
+
protoOf(DerOutput).fpc = function (tagOverride, value) {
|
|
1064
|
+
var tmp0 = this.dpc_1;
|
|
1065
1065
|
$l$block: {
|
|
1066
1066
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1067
1067
|
if (tagOverride == null) {
|
|
1068
|
-
tmp0.
|
|
1068
|
+
tmp0.qpb(2);
|
|
1069
1069
|
writeBytes(tmp0, encodeToByteArray(value));
|
|
1070
1070
|
break $l$block;
|
|
1071
1071
|
}
|
|
1072
|
-
tmp0.
|
|
1073
|
-
switch (tagOverride.
|
|
1072
|
+
tmp0.qpb(get_tag(tagOverride));
|
|
1073
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
1074
1074
|
case 0:
|
|
1075
1075
|
writeBytes(tmp0, encodeToByteArray(value));
|
|
1076
1076
|
break;
|
|
@@ -1080,7 +1080,7 @@ protoOf(DerOutput).hpc = function (tagOverride, value) {
|
|
|
1080
1080
|
// Inline function 'kotlin.apply' call
|
|
1081
1081
|
|
|
1082
1082
|
var this_0 = new ByteArrayOutput();
|
|
1083
|
-
this_0.
|
|
1083
|
+
this_0.qpb(2);
|
|
1084
1084
|
writeBytes(this_0, encodeToByteArray(value));
|
|
1085
1085
|
writeBytes_0(tmp0, this_0);
|
|
1086
1086
|
break;
|
|
@@ -1090,23 +1090,23 @@ protoOf(DerOutput).hpc = function (tagOverride, value) {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
1092
|
};
|
|
1093
|
-
protoOf(DerOutput).
|
|
1094
|
-
var tmp0 = this.
|
|
1093
|
+
protoOf(DerOutput).hpc = function (tagOverride, bits) {
|
|
1094
|
+
var tmp0 = this.dpc_1;
|
|
1095
1095
|
$l$block: {
|
|
1096
1096
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1097
1097
|
if (tagOverride == null) {
|
|
1098
|
-
tmp0.
|
|
1099
|
-
writeLength(tmp0, bits.
|
|
1100
|
-
tmp0.
|
|
1101
|
-
tmp0.
|
|
1098
|
+
tmp0.qpb(3);
|
|
1099
|
+
writeLength(tmp0, bits.spa_1.length + 1 | 0);
|
|
1100
|
+
tmp0.rpb(bits.rpa_1);
|
|
1101
|
+
tmp0.spb(bits.spa_1);
|
|
1102
1102
|
break $l$block;
|
|
1103
1103
|
}
|
|
1104
|
-
tmp0.
|
|
1105
|
-
switch (tagOverride.
|
|
1104
|
+
tmp0.qpb(get_tag(tagOverride));
|
|
1105
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
1106
1106
|
case 0:
|
|
1107
|
-
writeLength(tmp0, bits.
|
|
1108
|
-
tmp0.
|
|
1109
|
-
tmp0.
|
|
1107
|
+
writeLength(tmp0, bits.spa_1.length + 1 | 0);
|
|
1108
|
+
tmp0.rpb(bits.rpa_1);
|
|
1109
|
+
tmp0.spb(bits.spa_1);
|
|
1110
1110
|
break;
|
|
1111
1111
|
case 1:
|
|
1112
1112
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
@@ -1114,10 +1114,10 @@ protoOf(DerOutput).jpc = function (tagOverride, bits) {
|
|
|
1114
1114
|
// Inline function 'kotlin.apply' call
|
|
1115
1115
|
|
|
1116
1116
|
var this_0 = new ByteArrayOutput();
|
|
1117
|
-
this_0.
|
|
1118
|
-
writeLength(this_0, bits.
|
|
1119
|
-
this_0.
|
|
1120
|
-
this_0.
|
|
1117
|
+
this_0.qpb(3);
|
|
1118
|
+
writeLength(this_0, bits.spa_1.length + 1 | 0);
|
|
1119
|
+
this_0.rpb(bits.rpa_1);
|
|
1120
|
+
this_0.spb(bits.spa_1);
|
|
1121
1121
|
writeBytes_0(tmp0, this_0);
|
|
1122
1122
|
break;
|
|
1123
1123
|
default:
|
|
@@ -1126,17 +1126,17 @@ protoOf(DerOutput).jpc = function (tagOverride, bits) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
|
-
protoOf(DerOutput).
|
|
1130
|
-
var tmp0 = this.
|
|
1129
|
+
protoOf(DerOutput).ipc = function (tagOverride, bytes) {
|
|
1130
|
+
var tmp0 = this.dpc_1;
|
|
1131
1131
|
$l$block: {
|
|
1132
1132
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1133
1133
|
if (tagOverride == null) {
|
|
1134
|
-
tmp0.
|
|
1134
|
+
tmp0.qpb(4);
|
|
1135
1135
|
writeBytes(tmp0, bytes);
|
|
1136
1136
|
break $l$block;
|
|
1137
1137
|
}
|
|
1138
|
-
tmp0.
|
|
1139
|
-
switch (tagOverride.
|
|
1138
|
+
tmp0.qpb(get_tag(tagOverride));
|
|
1139
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
1140
1140
|
case 0:
|
|
1141
1141
|
writeBytes(tmp0, bytes);
|
|
1142
1142
|
break;
|
|
@@ -1146,7 +1146,7 @@ protoOf(DerOutput).kpc = function (tagOverride, bytes) {
|
|
|
1146
1146
|
// Inline function 'kotlin.apply' call
|
|
1147
1147
|
|
|
1148
1148
|
var this_0 = new ByteArrayOutput();
|
|
1149
|
-
this_0.
|
|
1149
|
+
this_0.qpb(4);
|
|
1150
1150
|
writeBytes(this_0, bytes);
|
|
1151
1151
|
writeBytes_0(tmp0, this_0);
|
|
1152
1152
|
break;
|
|
@@ -1156,12 +1156,12 @@ protoOf(DerOutput).kpc = function (tagOverride, bytes) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
1158
|
};
|
|
1159
|
-
protoOf(DerOutput).
|
|
1160
|
-
var tmp0 = this.
|
|
1159
|
+
protoOf(DerOutput).gpc = function (tagOverride, value) {
|
|
1160
|
+
var tmp0 = this.dpc_1;
|
|
1161
1161
|
$l$block: {
|
|
1162
1162
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1163
1163
|
if (tagOverride == null) {
|
|
1164
|
-
tmp0.
|
|
1164
|
+
tmp0.qpb(6);
|
|
1165
1165
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1166
1166
|
// Inline function 'kotlin.apply' call
|
|
1167
1167
|
var this_0 = new ByteArrayOutput();
|
|
@@ -1169,8 +1169,8 @@ protoOf(DerOutput).ipc = function (tagOverride, value) {
|
|
|
1169
1169
|
writeBytes_0(tmp0, this_0);
|
|
1170
1170
|
break $l$block;
|
|
1171
1171
|
}
|
|
1172
|
-
tmp0.
|
|
1173
|
-
switch (tagOverride.
|
|
1172
|
+
tmp0.qpb(get_tag(tagOverride));
|
|
1173
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
1174
1174
|
case 0:
|
|
1175
1175
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1176
1176
|
|
|
@@ -1186,7 +1186,7 @@ protoOf(DerOutput).ipc = function (tagOverride, value) {
|
|
|
1186
1186
|
// Inline function 'kotlin.apply' call
|
|
1187
1187
|
|
|
1188
1188
|
var this_2 = new ByteArrayOutput();
|
|
1189
|
-
this_2.
|
|
1189
|
+
this_2.qpb(6);
|
|
1190
1190
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1191
1191
|
|
|
1192
1192
|
// Inline function 'kotlin.apply' call
|
|
@@ -1202,19 +1202,19 @@ protoOf(DerOutput).ipc = function (tagOverride, value) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
1204
|
};
|
|
1205
|
-
protoOf(DerOutput).
|
|
1206
|
-
var tmp0 = this.
|
|
1205
|
+
protoOf(DerOutput).jpc = function (tagOverride, bytes) {
|
|
1206
|
+
var tmp0 = this.dpc_1;
|
|
1207
1207
|
$l$block: {
|
|
1208
1208
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1209
1209
|
if (tagOverride == null) {
|
|
1210
|
-
tmp0.
|
|
1211
|
-
writeBytes_0(tmp0, bytes.
|
|
1210
|
+
tmp0.qpb(48);
|
|
1211
|
+
writeBytes_0(tmp0, bytes.dpc_1);
|
|
1212
1212
|
break $l$block;
|
|
1213
1213
|
}
|
|
1214
|
-
tmp0.
|
|
1215
|
-
switch (tagOverride.
|
|
1214
|
+
tmp0.qpb(get_tag(tagOverride));
|
|
1215
|
+
switch (tagOverride.opa_1.a1_1) {
|
|
1216
1216
|
case 0:
|
|
1217
|
-
writeBytes_0(tmp0, bytes.
|
|
1217
|
+
writeBytes_0(tmp0, bytes.dpc_1);
|
|
1218
1218
|
break;
|
|
1219
1219
|
case 1:
|
|
1220
1220
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
@@ -1222,8 +1222,8 @@ protoOf(DerOutput).lpc = function (tagOverride, bytes) {
|
|
|
1222
1222
|
// Inline function 'kotlin.apply' call
|
|
1223
1223
|
|
|
1224
1224
|
var this_0 = new ByteArrayOutput();
|
|
1225
|
-
this_0.
|
|
1226
|
-
writeBytes_0(this_0, bytes.
|
|
1225
|
+
this_0.qpb(48);
|
|
1226
|
+
writeBytes_0(this_0, bytes.dpc_1);
|
|
1227
1227
|
writeBytes_0(tmp0, this_0);
|
|
1228
1228
|
break;
|
|
1229
1229
|
default:
|
|
@@ -1234,23 +1234,23 @@ protoOf(DerOutput).lpc = function (tagOverride, bytes) {
|
|
|
1234
1234
|
};
|
|
1235
1235
|
function writeLength(_this__u8e3s4, length) {
|
|
1236
1236
|
if (length < 128)
|
|
1237
|
-
return _this__u8e3s4.
|
|
1237
|
+
return _this__u8e3s4.rpb(length);
|
|
1238
1238
|
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1239
1239
|
var numberOfLengthBytes = 4 - (clz32(length) / 8 | 0) | 0;
|
|
1240
|
-
_this__u8e3s4.
|
|
1240
|
+
_this__u8e3s4.rpb(numberOfLengthBytes | 128);
|
|
1241
1241
|
// Inline function 'kotlin.repeat' call
|
|
1242
1242
|
var inductionVariable = 0;
|
|
1243
1243
|
if (inductionVariable < numberOfLengthBytes)
|
|
1244
1244
|
do {
|
|
1245
1245
|
var index = inductionVariable;
|
|
1246
1246
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1247
|
-
_this__u8e3s4.
|
|
1247
|
+
_this__u8e3s4.rpb(length >>> imul(8, (numberOfLengthBytes - 1 | 0) - index | 0) | 0);
|
|
1248
1248
|
}
|
|
1249
1249
|
while (inductionVariable < numberOfLengthBytes);
|
|
1250
1250
|
}
|
|
1251
1251
|
function writeBytes(_this__u8e3s4, bytes) {
|
|
1252
1252
|
writeLength(_this__u8e3s4, bytes.length);
|
|
1253
|
-
_this__u8e3s4.
|
|
1253
|
+
_this__u8e3s4.spb(bytes);
|
|
1254
1254
|
}
|
|
1255
1255
|
function writeOidElements(_this__u8e3s4, elements) {
|
|
1256
1256
|
// Inline function 'kotlin.check' call
|
|
@@ -1272,11 +1272,11 @@ function writeOidElements(_this__u8e3s4, elements) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
function writeBytes_0(_this__u8e3s4, bytes) {
|
|
1274
1274
|
writeLength(_this__u8e3s4, bytes.g1());
|
|
1275
|
-
_this__u8e3s4.
|
|
1275
|
+
_this__u8e3s4.tpb(bytes);
|
|
1276
1276
|
}
|
|
1277
1277
|
function writeOidElement(_this__u8e3s4, element) {
|
|
1278
1278
|
if (element < 128)
|
|
1279
|
-
return _this__u8e3s4.
|
|
1279
|
+
return _this__u8e3s4.rpb(element);
|
|
1280
1280
|
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1281
1281
|
var l = (32 - clz32(element) | 0) / 7 | 0;
|
|
1282
1282
|
// Inline function 'kotlin.repeat' call
|
|
@@ -1287,11 +1287,11 @@ function writeOidElement(_this__u8e3s4, element) {
|
|
|
1287
1287
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1288
1288
|
var value = element >>> imul(l - index | 0, 7) | 0;
|
|
1289
1289
|
if (!(value === 0)) {
|
|
1290
|
-
_this__u8e3s4.
|
|
1290
|
+
_this__u8e3s4.rpb(value & 127 | 128);
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
1293
|
while (inductionVariable < l);
|
|
1294
|
-
_this__u8e3s4.
|
|
1294
|
+
_this__u8e3s4.rpb(element & 127);
|
|
1295
1295
|
}
|
|
1296
1296
|
function writeOidElements$element($elements, index) {
|
|
1297
1297
|
return toInt($elements.h1(index));
|
|
@@ -1321,16 +1321,16 @@ function getElementContextSpecificTag(_this__u8e3s4, index) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
var annotation = tmp_0;
|
|
1323
1323
|
// Inline function 'kotlin.check' call
|
|
1324
|
-
if (!(annotation.
|
|
1325
|
-
var message = 'Context specific tag class must be less than 31, but was ' + annotation.
|
|
1324
|
+
if (!(annotation.npa_1 < 31)) {
|
|
1325
|
+
var message = 'Context specific tag class must be less than 31, but was ' + annotation.npa_1;
|
|
1326
1326
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1327
1327
|
}
|
|
1328
1328
|
return annotation;
|
|
1329
1329
|
}
|
|
1330
1330
|
function get_tag(_this__u8e3s4) {
|
|
1331
|
-
var contextSpecificTag = _this__u8e3s4.
|
|
1331
|
+
var contextSpecificTag = _this__u8e3s4.npa_1 | 128;
|
|
1332
1332
|
var tmp;
|
|
1333
|
-
switch (_this__u8e3s4.
|
|
1333
|
+
switch (_this__u8e3s4.opa_1.a1_1) {
|
|
1334
1334
|
case 0:
|
|
1335
1335
|
tmp = toByte(contextSpecificTag);
|
|
1336
1336
|
break;
|