@solibo/solibo-sdk 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KmLogging-logging.js +99 -99
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/KotlinBigInteger-bignum.js +1114 -1114
- package/MultiplatformSettings-multiplatform-settings.js +16 -16
- package/Stately-stately-concurrency.js +4 -4
- package/cryptography-kotlin-cryptography-bigint.js +27 -27
- package/cryptography-kotlin-cryptography-core.js +47 -47
- package/cryptography-kotlin-cryptography-provider-base.js +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +135 -135
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.js +240 -240
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -15
- package/index.d.ts +10 -0
- package/index.js +10 -0
- package/kotlin-kotlin-stdlib.js +5 -5
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +12 -13
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +224 -224
- package/ktor-ktor-client-logging.js +516 -516
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +25386 -23644
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +550 -87
- package/solibo-sdk-sdk.js +1383 -1383
|
@@ -111,26 +111,26 @@
|
|
|
111
111
|
return TagType_EXPLICIT_instance;
|
|
112
112
|
}
|
|
113
113
|
function ContextSpecificTag(classIndex, type) {
|
|
114
|
-
this.
|
|
115
|
-
this.
|
|
114
|
+
this.uny_1 = classIndex;
|
|
115
|
+
this.vny_1 = type;
|
|
116
116
|
}
|
|
117
117
|
protoOf(ContextSpecificTag).equals = function (other) {
|
|
118
118
|
if (!(other instanceof ContextSpecificTag))
|
|
119
119
|
return false;
|
|
120
120
|
var tmp0_other_with_cast = other instanceof ContextSpecificTag ? other : THROW_CCE();
|
|
121
|
-
if (!(this.
|
|
121
|
+
if (!(this.uny_1 === tmp0_other_with_cast.uny_1))
|
|
122
122
|
return false;
|
|
123
|
-
if (!this.
|
|
123
|
+
if (!this.vny_1.equals(tmp0_other_with_cast.vny_1))
|
|
124
124
|
return false;
|
|
125
125
|
return true;
|
|
126
126
|
};
|
|
127
127
|
protoOf(ContextSpecificTag).hashCode = function () {
|
|
128
|
-
var result = imul(getStringHashCode('classIndex'), 127) ^ this.
|
|
129
|
-
result = result + (imul(getStringHashCode('type'), 127) ^ this.
|
|
128
|
+
var result = imul(getStringHashCode('classIndex'), 127) ^ this.uny_1;
|
|
129
|
+
result = result + (imul(getStringHashCode('type'), 127) ^ this.vny_1.hashCode()) | 0;
|
|
130
130
|
return result;
|
|
131
131
|
};
|
|
132
132
|
protoOf(ContextSpecificTag).toString = function () {
|
|
133
|
-
return '@dev.whyoleg.cryptography.serialization.asn1.ContextSpecificTag(' + 'classIndex=' + this.
|
|
133
|
+
return '@dev.whyoleg.cryptography.serialization.asn1.ContextSpecificTag(' + 'classIndex=' + this.uny_1 + ', ' + 'type=' + this.vny_1.toString() + ')';
|
|
134
134
|
};
|
|
135
135
|
function Companion() {
|
|
136
136
|
}
|
|
@@ -146,20 +146,20 @@
|
|
|
146
146
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.BitArray', this, 2);
|
|
147
147
|
tmp0_serialDesc.r13('unusedBits', false);
|
|
148
148
|
tmp0_serialDesc.r13('byteArray', false);
|
|
149
|
-
this.
|
|
149
|
+
this.wny_1 = tmp0_serialDesc;
|
|
150
150
|
}
|
|
151
|
-
protoOf($serializer).
|
|
152
|
-
var tmp0_desc = this.
|
|
151
|
+
protoOf($serializer).xny = function (encoder, value) {
|
|
152
|
+
var tmp0_desc = this.wny_1;
|
|
153
153
|
var tmp1_output = encoder.ew(tmp0_desc);
|
|
154
|
-
tmp1_output.ox(tmp0_desc, 0, value.
|
|
155
|
-
tmp1_output.vx(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.
|
|
154
|
+
tmp1_output.ox(tmp0_desc, 0, value.yny_1);
|
|
155
|
+
tmp1_output.vx(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.zny_1);
|
|
156
156
|
tmp1_output.fw(tmp0_desc);
|
|
157
157
|
};
|
|
158
158
|
protoOf($serializer).ct = function (encoder, value) {
|
|
159
|
-
return this.
|
|
159
|
+
return this.xny(encoder, value instanceof BitArray ? value : THROW_CCE());
|
|
160
160
|
};
|
|
161
161
|
protoOf($serializer).dt = function (decoder) {
|
|
162
|
-
var tmp0_desc = this.
|
|
162
|
+
var tmp0_desc = this.wny_1;
|
|
163
163
|
var tmp1_flag = true;
|
|
164
164
|
var tmp2_index = 0;
|
|
165
165
|
var tmp3_bitMask0 = 0;
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
return BitArray_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
195
195
|
};
|
|
196
196
|
protoOf($serializer).ps = function () {
|
|
197
|
-
return this.
|
|
197
|
+
return this.wny_1;
|
|
198
198
|
};
|
|
199
199
|
protoOf($serializer).k14 = function () {
|
|
200
200
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -210,24 +210,24 @@
|
|
|
210
210
|
}
|
|
211
211
|
function BitArray_init_$Init$(seen0, unusedBits, byteArray, serializationConstructorMarker, $this) {
|
|
212
212
|
if (!(3 === (3 & seen0))) {
|
|
213
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
213
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().wny_1);
|
|
214
214
|
}
|
|
215
|
-
$this.
|
|
216
|
-
$this.
|
|
215
|
+
$this.yny_1 = unusedBits;
|
|
216
|
+
$this.zny_1 = byteArray;
|
|
217
217
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
218
|
-
if ($this.
|
|
218
|
+
if ($this.zny_1.length === 0) {
|
|
219
219
|
// Inline function 'kotlin.check' call
|
|
220
|
-
if (!($this.
|
|
220
|
+
if (!($this.yny_1 === 0)) {
|
|
221
221
|
var message = "empty array couldn't have unused bits";
|
|
222
222
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
223
223
|
}
|
|
224
224
|
} else {
|
|
225
225
|
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
226
|
-
var this_0 = last($this.
|
|
226
|
+
var this_0 = last($this.zny_1);
|
|
227
227
|
var tmp$ret$3 = countTrailingZeroBits(this_0 | 256);
|
|
228
228
|
// Inline function 'kotlin.check' call
|
|
229
|
-
if (!($this.
|
|
230
|
-
var message_0 = 'At least ' + $this.
|
|
229
|
+
if (!($this.yny_1 <= tmp$ret$3)) {
|
|
230
|
+
var message_0 = 'At least ' + $this.yny_1 + ' last bits should be unused';
|
|
231
231
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
232
232
|
}
|
|
233
233
|
}
|
|
@@ -237,22 +237,22 @@
|
|
|
237
237
|
return BitArray_init_$Init$(seen0, unusedBits, byteArray, serializationConstructorMarker, objectCreate(protoOf(BitArray)));
|
|
238
238
|
}
|
|
239
239
|
function BitArray(unusedBits, byteArray) {
|
|
240
|
-
this.
|
|
241
|
-
this.
|
|
240
|
+
this.yny_1 = unusedBits;
|
|
241
|
+
this.zny_1 = byteArray;
|
|
242
242
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
243
|
-
if (this.
|
|
243
|
+
if (this.zny_1.length === 0) {
|
|
244
244
|
// Inline function 'kotlin.check' call
|
|
245
|
-
if (!(this.
|
|
245
|
+
if (!(this.yny_1 === 0)) {
|
|
246
246
|
var message = "empty array couldn't have unused bits";
|
|
247
247
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
248
248
|
}
|
|
249
249
|
} else {
|
|
250
250
|
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
251
|
-
var this_0 = last(this.
|
|
251
|
+
var this_0 = last(this.zny_1);
|
|
252
252
|
var tmp$ret$3 = countTrailingZeroBits(this_0 | 256);
|
|
253
253
|
// Inline function 'kotlin.check' call
|
|
254
|
-
if (!(this.
|
|
255
|
-
var message_0 = 'At least ' + this.
|
|
254
|
+
if (!(this.yny_1 <= tmp$ret$3)) {
|
|
255
|
+
var message_0 = 'At least ' + this.yny_1 + ' last bits should be unused';
|
|
256
256
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
257
257
|
}
|
|
258
258
|
}
|
|
@@ -269,15 +269,15 @@
|
|
|
269
269
|
}
|
|
270
270
|
function Der(serializersModule) {
|
|
271
271
|
Default_getInstance();
|
|
272
|
-
this.
|
|
272
|
+
this.anz_1 = serializersModule;
|
|
273
273
|
}
|
|
274
274
|
protoOf(Der).at = function () {
|
|
275
|
-
return this.
|
|
275
|
+
return this.anz_1;
|
|
276
276
|
};
|
|
277
277
|
protoOf(Der).yt = function (serializer, value) {
|
|
278
278
|
var output = new ByteArrayOutput();
|
|
279
279
|
(new DerEncoder(this, output)).bt(serializer, value);
|
|
280
|
-
return output.
|
|
280
|
+
return output.hnz();
|
|
281
281
|
};
|
|
282
282
|
protoOf(Der).zt = function (deserializer, bytes) {
|
|
283
283
|
var input = new ByteArrayInput(bytes);
|
|
@@ -302,10 +302,10 @@
|
|
|
302
302
|
$serializer_instance_0 = this;
|
|
303
303
|
var tmp0_serialDesc = new InlineClassDescriptor('dev.whyoleg.cryptography.serialization.asn1.ObjectIdentifier', this);
|
|
304
304
|
tmp0_serialDesc.r13('value', false);
|
|
305
|
-
this.
|
|
305
|
+
this.mnz_1 = tmp0_serialDesc;
|
|
306
306
|
}
|
|
307
|
-
protoOf($serializer_0).
|
|
308
|
-
var tmp0_inlineEncoder = encoder.kx(this.
|
|
307
|
+
protoOf($serializer_0).nnz = function (encoder, value) {
|
|
308
|
+
var tmp0_inlineEncoder = encoder.kx(this.mnz_1);
|
|
309
309
|
if (tmp0_inlineEncoder == null)
|
|
310
310
|
null;
|
|
311
311
|
else {
|
|
@@ -313,16 +313,16 @@
|
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
315
|
protoOf($serializer_0).ct = function (encoder, value) {
|
|
316
|
-
return this.
|
|
316
|
+
return this.nnz(encoder, value instanceof ObjectIdentifier ? value.onz_1 : THROW_CCE());
|
|
317
317
|
};
|
|
318
|
-
protoOf($serializer_0).
|
|
319
|
-
return _ObjectIdentifier___init__impl__7hutfr(decoder.cw(this.
|
|
318
|
+
protoOf($serializer_0).pnz = function (decoder) {
|
|
319
|
+
return _ObjectIdentifier___init__impl__7hutfr(decoder.cw(this.mnz_1).aw());
|
|
320
320
|
};
|
|
321
321
|
protoOf($serializer_0).dt = function (decoder) {
|
|
322
|
-
return new ObjectIdentifier(this.
|
|
322
|
+
return new ObjectIdentifier(this.pnz(decoder));
|
|
323
323
|
};
|
|
324
324
|
protoOf($serializer_0).ps = function () {
|
|
325
|
-
return this.
|
|
325
|
+
return this.mnz_1;
|
|
326
326
|
};
|
|
327
327
|
protoOf($serializer_0).k14 = function () {
|
|
328
328
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -345,21 +345,21 @@
|
|
|
345
345
|
function ObjectIdentifier__equals_impl_u5dbkq($this, other) {
|
|
346
346
|
if (!(other instanceof ObjectIdentifier))
|
|
347
347
|
return false;
|
|
348
|
-
if (!($this === (other instanceof ObjectIdentifier ? other.
|
|
348
|
+
if (!($this === (other instanceof ObjectIdentifier ? other.onz_1 : THROW_CCE())))
|
|
349
349
|
return false;
|
|
350
350
|
return true;
|
|
351
351
|
}
|
|
352
352
|
function ObjectIdentifier(value) {
|
|
353
|
-
this.
|
|
353
|
+
this.onz_1 = value;
|
|
354
354
|
}
|
|
355
355
|
protoOf(ObjectIdentifier).toString = function () {
|
|
356
|
-
return ObjectIdentifier__toString_impl_dtwsrd(this.
|
|
356
|
+
return ObjectIdentifier__toString_impl_dtwsrd(this.onz_1);
|
|
357
357
|
};
|
|
358
358
|
protoOf(ObjectIdentifier).hashCode = function () {
|
|
359
|
-
return ObjectIdentifier__hashCode_impl_7x941i(this.
|
|
359
|
+
return ObjectIdentifier__hashCode_impl_7x941i(this.onz_1);
|
|
360
360
|
};
|
|
361
361
|
protoOf(ObjectIdentifier).equals = function (other) {
|
|
362
|
-
return ObjectIdentifier__equals_impl_u5dbkq(this.
|
|
362
|
+
return ObjectIdentifier__equals_impl_u5dbkq(this.onz_1, other);
|
|
363
363
|
};
|
|
364
364
|
function get_emptyArray() {
|
|
365
365
|
_init_properties_ByteArrayInput_kt__imea6f();
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
}
|
|
368
368
|
var emptyArray;
|
|
369
369
|
function _get_available__saq0tk($this) {
|
|
370
|
-
return $this.
|
|
370
|
+
return $this.rnz_1 - $this.snz_1 | 0;
|
|
371
371
|
}
|
|
372
372
|
function ensureAvailableBytes($this, count) {
|
|
373
373
|
// Inline function 'kotlin.check' call
|
|
@@ -379,42 +379,42 @@
|
|
|
379
379
|
function ByteArrayInput(array, startIndex, endIndex) {
|
|
380
380
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
381
381
|
endIndex = endIndex === VOID ? array.length : endIndex;
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
382
|
+
this.qnz_1 = array;
|
|
383
|
+
this.rnz_1 = endIndex;
|
|
384
|
+
this.snz_1 = startIndex;
|
|
385
385
|
}
|
|
386
|
-
protoOf(ByteArrayInput).
|
|
386
|
+
protoOf(ByteArrayInput).tnz = function () {
|
|
387
387
|
return _get_available__saq0tk(this) === 0;
|
|
388
388
|
};
|
|
389
389
|
protoOf(ByteArrayInput).toString = function () {
|
|
390
|
-
return 'ByteArrayInput(size=' + this.
|
|
390
|
+
return 'ByteArrayInput(size=' + this.qnz_1.length + ', endIndex=' + this.rnz_1 + ', position=' + this.snz_1 + ', available=' + _get_available__saq0tk(this) + ')';
|
|
391
391
|
};
|
|
392
|
-
protoOf(ByteArrayInput).
|
|
392
|
+
protoOf(ByteArrayInput).unz = function () {
|
|
393
393
|
ensureAvailableBytes(this, 1);
|
|
394
|
-
return this.
|
|
394
|
+
return this.qnz_1[this.snz_1];
|
|
395
395
|
};
|
|
396
396
|
protoOf(ByteArrayInput).i1k = function () {
|
|
397
397
|
ensureAvailableBytes(this, 1);
|
|
398
|
-
var _unary__edvuaz = this.
|
|
399
|
-
this.
|
|
400
|
-
return this.
|
|
398
|
+
var _unary__edvuaz = this.snz_1;
|
|
399
|
+
this.snz_1 = _unary__edvuaz + 1 | 0;
|
|
400
|
+
return this.qnz_1[_unary__edvuaz];
|
|
401
401
|
};
|
|
402
|
-
protoOf(ByteArrayInput).
|
|
402
|
+
protoOf(ByteArrayInput).vnz = function (length) {
|
|
403
403
|
ensureAvailableBytes(this, length);
|
|
404
404
|
if (length === 0)
|
|
405
405
|
return get_emptyArray();
|
|
406
406
|
// Inline function 'kotlin.also' call
|
|
407
|
-
var this_0 = copyOfRange(this.
|
|
408
|
-
this.
|
|
407
|
+
var this_0 = copyOfRange(this.qnz_1, this.snz_1, this.snz_1 + length | 0);
|
|
408
|
+
this.snz_1 = this.snz_1 + length | 0;
|
|
409
409
|
return this_0;
|
|
410
410
|
};
|
|
411
|
-
protoOf(ByteArrayInput).
|
|
411
|
+
protoOf(ByteArrayInput).wnz = function (length) {
|
|
412
412
|
ensureAvailableBytes(this, length);
|
|
413
413
|
if (length === 0)
|
|
414
414
|
return new ByteArrayInput(get_emptyArray());
|
|
415
415
|
// Inline function 'kotlin.also' call
|
|
416
|
-
var this_0 = new ByteArrayInput(this.
|
|
417
|
-
this.
|
|
416
|
+
var this_0 = new ByteArrayInput(this.qnz_1, this.snz_1, this.snz_1 + length | 0);
|
|
417
|
+
this.snz_1 = this.snz_1 + length | 0;
|
|
418
418
|
return this_0;
|
|
419
419
|
};
|
|
420
420
|
var properties_initialized_ByteArrayInput_kt_acgl39;
|
|
@@ -425,38 +425,38 @@
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
function ensureCapacity($this, elementsToAppend) {
|
|
428
|
-
if (($this.
|
|
428
|
+
if (($this.gnz_1 + elementsToAppend | 0) <= $this.fnz_1.length)
|
|
429
429
|
return Unit_instance;
|
|
430
|
-
$this.
|
|
430
|
+
$this.fnz_1 = copyOf($this.fnz_1, takeHighestOneBit($this.gnz_1 + elementsToAppend | 0) << 1);
|
|
431
431
|
}
|
|
432
432
|
function ByteArrayOutput() {
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
433
|
+
this.fnz_1 = new Int8Array(32);
|
|
434
|
+
this.gnz_1 = 0;
|
|
435
435
|
}
|
|
436
436
|
protoOf(ByteArrayOutput).g1 = function () {
|
|
437
|
-
return this.
|
|
437
|
+
return this.gnz_1;
|
|
438
438
|
};
|
|
439
|
-
protoOf(ByteArrayOutput).
|
|
440
|
-
return copyOf(this.
|
|
439
|
+
protoOf(ByteArrayOutput).hnz = function () {
|
|
440
|
+
return copyOf(this.fnz_1, this.gnz_1);
|
|
441
441
|
};
|
|
442
|
-
protoOf(ByteArrayOutput).
|
|
442
|
+
protoOf(ByteArrayOutput).xnz = function (byte) {
|
|
443
443
|
ensureCapacity(this, 1);
|
|
444
|
-
var tmp = this.
|
|
445
|
-
var _unary__edvuaz = this.
|
|
446
|
-
this.
|
|
444
|
+
var tmp = this.fnz_1;
|
|
445
|
+
var _unary__edvuaz = this.gnz_1;
|
|
446
|
+
this.gnz_1 = _unary__edvuaz + 1 | 0;
|
|
447
447
|
tmp[_unary__edvuaz] = byte;
|
|
448
448
|
};
|
|
449
|
-
protoOf(ByteArrayOutput).
|
|
450
|
-
this.
|
|
449
|
+
protoOf(ByteArrayOutput).ynz = function (byte) {
|
|
450
|
+
this.xnz(toByte(byte));
|
|
451
451
|
};
|
|
452
|
-
protoOf(ByteArrayOutput).
|
|
452
|
+
protoOf(ByteArrayOutput).znz = function (bytes) {
|
|
453
453
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
454
454
|
if (bytes.length === 0)
|
|
455
455
|
return Unit_instance;
|
|
456
456
|
ensureCapacity(this, bytes.length);
|
|
457
|
-
var tmp2 = this.
|
|
457
|
+
var tmp2 = this.fnz_1;
|
|
458
458
|
// Inline function 'kotlin.collections.copyInto' call
|
|
459
|
-
var destinationOffset = this.
|
|
459
|
+
var destinationOffset = this.gnz_1;
|
|
460
460
|
var endIndex = bytes.length;
|
|
461
461
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
462
462
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -464,49 +464,49 @@
|
|
|
464
464
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
465
465
|
// Inline function 'kotlin.js.asDynamic' call
|
|
466
466
|
arrayCopy(tmp, tmp2, destinationOffset, 0, endIndex);
|
|
467
|
-
this.
|
|
467
|
+
this.gnz_1 = this.gnz_1 + bytes.length | 0;
|
|
468
468
|
};
|
|
469
|
-
protoOf(ByteArrayOutput).
|
|
469
|
+
protoOf(ByteArrayOutput).ao0 = function (output) {
|
|
470
470
|
if (output.g1() === 0)
|
|
471
471
|
return Unit_instance;
|
|
472
|
-
ensureCapacity(this, output.
|
|
473
|
-
var tmp0 = output.
|
|
474
|
-
var tmp2 = this.
|
|
475
|
-
var tmp4 = this.
|
|
472
|
+
ensureCapacity(this, output.gnz_1);
|
|
473
|
+
var tmp0 = output.fnz_1;
|
|
474
|
+
var tmp2 = this.fnz_1;
|
|
475
|
+
var tmp4 = this.gnz_1;
|
|
476
476
|
// Inline function 'kotlin.collections.copyInto' call
|
|
477
|
-
var endIndex = output.
|
|
477
|
+
var endIndex = output.gnz_1;
|
|
478
478
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
479
479
|
// Inline function 'kotlin.js.asDynamic' call
|
|
480
480
|
var tmp = tmp0;
|
|
481
481
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
482
482
|
// Inline function 'kotlin.js.asDynamic' call
|
|
483
483
|
arrayCopy(tmp, tmp2, tmp4, 0, endIndex);
|
|
484
|
-
this.
|
|
484
|
+
this.gnz_1 = this.gnz_1 + output.gnz_1 | 0;
|
|
485
485
|
};
|
|
486
486
|
function getAndResetTagOverride($this) {
|
|
487
|
-
var tag = $this.
|
|
488
|
-
$this.
|
|
487
|
+
var tag = $this.lnz_1;
|
|
488
|
+
$this.lnz_1 = null;
|
|
489
489
|
return tag;
|
|
490
490
|
}
|
|
491
491
|
function DerDecoder(der, byteArrayInput) {
|
|
492
492
|
AbstractDecoder.call(this);
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
493
|
+
this.inz_1 = der;
|
|
494
|
+
this.jnz_1 = new DerInput(byteArrayInput);
|
|
495
|
+
this.knz_1 = 0;
|
|
496
|
+
this.lnz_1 = null;
|
|
497
497
|
}
|
|
498
498
|
protoOf(DerDecoder).at = function () {
|
|
499
|
-
return this.
|
|
499
|
+
return this.inz_1.at();
|
|
500
500
|
};
|
|
501
501
|
protoOf(DerDecoder).vw = function (descriptor) {
|
|
502
|
-
if (this.
|
|
502
|
+
if (this.jnz_1.tnz())
|
|
503
503
|
return -1;
|
|
504
|
-
var tag = this.
|
|
504
|
+
var tag = this.jnz_1.co0();
|
|
505
505
|
$l$loop: while (true) {
|
|
506
|
-
var index = this.
|
|
507
|
-
this.
|
|
506
|
+
var index = this.knz_1;
|
|
507
|
+
this.lnz_1 = getElementContextSpecificTag(descriptor, index);
|
|
508
508
|
if (descriptor.uu(index)) {
|
|
509
|
-
var tmp0 = this.
|
|
509
|
+
var tmp0 = this.lnz_1;
|
|
510
510
|
var tmp$ret$1;
|
|
511
511
|
$l$block: {
|
|
512
512
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -520,47 +520,47 @@
|
|
|
520
520
|
}
|
|
521
521
|
var requiredTag = tmp$ret$1;
|
|
522
522
|
if (!(tag === get_tag(requiredTag))) {
|
|
523
|
-
this.
|
|
523
|
+
this.knz_1 = this.knz_1 + 1 | 0;
|
|
524
524
|
continue $l$loop;
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
var _unary__edvuaz = this.
|
|
528
|
-
this.
|
|
527
|
+
var _unary__edvuaz = this.knz_1;
|
|
528
|
+
this.knz_1 = _unary__edvuaz + 1 | 0;
|
|
529
529
|
return _unary__edvuaz;
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
532
|
protoOf(DerDecoder).qv = function () {
|
|
533
|
-
return this.
|
|
533
|
+
return this.jnz_1.do0();
|
|
534
534
|
};
|
|
535
535
|
protoOf(DerDecoder).rv = function () {
|
|
536
|
-
return this.
|
|
536
|
+
return this.jnz_1.eo0();
|
|
537
537
|
};
|
|
538
538
|
protoOf(DerDecoder).tv = function () {
|
|
539
|
-
return this.
|
|
539
|
+
return this.jnz_1.fo0(getAndResetTagOverride(this)).mnx();
|
|
540
540
|
};
|
|
541
541
|
protoOf(DerDecoder).uv = function () {
|
|
542
|
-
return this.
|
|
542
|
+
return this.jnz_1.fo0(getAndResetTagOverride(this)).nnx();
|
|
543
543
|
};
|
|
544
544
|
protoOf(DerDecoder).vv = function () {
|
|
545
|
-
return this.
|
|
545
|
+
return this.jnz_1.fo0(getAndResetTagOverride(this)).onx();
|
|
546
546
|
};
|
|
547
547
|
protoOf(DerDecoder).wv = function () {
|
|
548
|
-
return this.
|
|
548
|
+
return this.jnz_1.fo0(getAndResetTagOverride(this)).pnx();
|
|
549
549
|
};
|
|
550
550
|
protoOf(DerDecoder).et = function (deserializer) {
|
|
551
551
|
var tmp0_subject = deserializer.ps();
|
|
552
552
|
var tmp;
|
|
553
553
|
if (equals(tmp0_subject, ByteArraySerializer().ps())) {
|
|
554
|
-
var tmp_0 = this.
|
|
554
|
+
var tmp_0 = this.jnz_1.io0(getAndResetTagOverride(this));
|
|
555
555
|
tmp = !(tmp_0 == null) ? tmp_0 : THROW_CCE();
|
|
556
556
|
} else if (equals(tmp0_subject, Companion_instance.r1g().ps())) {
|
|
557
|
-
var tmp_1 = this.
|
|
557
|
+
var tmp_1 = this.jnz_1.ho0(getAndResetTagOverride(this));
|
|
558
558
|
tmp = !(tmp_1 == null) ? tmp_1 : THROW_CCE();
|
|
559
559
|
} else if (equals(tmp0_subject, Companion_instance_0.r1g().ps())) {
|
|
560
|
-
var tmp_2 = this.
|
|
560
|
+
var tmp_2 = this.jnz_1.go0(getAndResetTagOverride(this));
|
|
561
561
|
tmp = !(new ObjectIdentifier(tmp_2) == null) ? new ObjectIdentifier(tmp_2) : THROW_CCE();
|
|
562
562
|
} else if (equals(tmp0_subject, Companion_getInstance().r1g().ps())) {
|
|
563
|
-
var tmp_3 = this.
|
|
563
|
+
var tmp_3 = this.jnz_1.fo0(getAndResetTagOverride(this));
|
|
564
564
|
tmp = !(tmp_3 == null) ? tmp_3 : THROW_CCE();
|
|
565
565
|
} else {
|
|
566
566
|
tmp = deserializer.dt(this);
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
578
578
|
}
|
|
579
579
|
if (tmp_0) {
|
|
580
|
-
tmp = new DerDecoder(this.
|
|
580
|
+
tmp = new DerDecoder(this.inz_1, this.jnz_1.jo0(getAndResetTagOverride(this)));
|
|
581
581
|
} else {
|
|
582
582
|
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
583
583
|
}
|
|
@@ -618,63 +618,63 @@
|
|
|
618
618
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
619
619
|
};
|
|
620
620
|
function getAndResetTagOverride_0($this) {
|
|
621
|
-
var tag = $this.
|
|
622
|
-
$this.
|
|
621
|
+
var tag = $this.enz_1;
|
|
622
|
+
$this.enz_1 = null;
|
|
623
623
|
return tag;
|
|
624
624
|
}
|
|
625
625
|
function DerEncoder(der, byteArrayOutput, parentOutput) {
|
|
626
626
|
parentOutput = parentOutput === VOID ? null : parentOutput;
|
|
627
627
|
AbstractEncoder.call(this);
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
628
|
+
this.bnz_1 = der;
|
|
629
|
+
this.cnz_1 = parentOutput;
|
|
630
|
+
this.dnz_1 = new DerOutput(byteArrayOutput);
|
|
631
|
+
this.enz_1 = null;
|
|
632
632
|
}
|
|
633
633
|
protoOf(DerEncoder).at = function () {
|
|
634
|
-
return this.
|
|
634
|
+
return this.bnz_1.at();
|
|
635
635
|
};
|
|
636
636
|
protoOf(DerEncoder).ay = function (descriptor, index) {
|
|
637
637
|
return false;
|
|
638
638
|
};
|
|
639
639
|
protoOf(DerEncoder).xw = function (descriptor, index) {
|
|
640
|
-
this.
|
|
640
|
+
this.enz_1 = getElementContextSpecificTag(descriptor, index);
|
|
641
641
|
return true;
|
|
642
642
|
};
|
|
643
643
|
protoOf(DerEncoder).yx = function () {
|
|
644
644
|
};
|
|
645
645
|
protoOf(DerEncoder).zw = function () {
|
|
646
|
-
return this.
|
|
646
|
+
return this.dnz_1.lo0();
|
|
647
647
|
};
|
|
648
648
|
protoOf(DerEncoder).bx = function (value) {
|
|
649
|
-
return this.
|
|
649
|
+
return this.dnz_1.mo0(getAndResetTagOverride_0(this), toBigInt(value));
|
|
650
650
|
};
|
|
651
651
|
protoOf(DerEncoder).cx = function (value) {
|
|
652
|
-
return this.
|
|
652
|
+
return this.dnz_1.mo0(getAndResetTagOverride_0(this), toBigInt_0(value));
|
|
653
653
|
};
|
|
654
654
|
protoOf(DerEncoder).dx = function (value) {
|
|
655
|
-
return this.
|
|
655
|
+
return this.dnz_1.mo0(getAndResetTagOverride_0(this), toBigInt_1(value));
|
|
656
656
|
};
|
|
657
657
|
protoOf(DerEncoder).ex = function (value) {
|
|
658
|
-
return this.
|
|
658
|
+
return this.dnz_1.mo0(getAndResetTagOverride_0(this), toBigInt_2(value));
|
|
659
659
|
};
|
|
660
660
|
protoOf(DerEncoder).bt = function (serializer, value) {
|
|
661
661
|
var tmp0_subject = serializer.ps();
|
|
662
662
|
var tmp;
|
|
663
663
|
if (equals(tmp0_subject, ByteArraySerializer().ps())) {
|
|
664
664
|
var tmp_0 = getAndResetTagOverride_0(this);
|
|
665
|
-
this.
|
|
665
|
+
this.dnz_1.po0(tmp_0, (!(value == null) ? isByteArray(value) : false) ? value : THROW_CCE());
|
|
666
666
|
tmp = Unit_instance;
|
|
667
667
|
} else if (equals(tmp0_subject, Companion_instance.r1g().ps())) {
|
|
668
668
|
var tmp_1 = getAndResetTagOverride_0(this);
|
|
669
|
-
this.
|
|
669
|
+
this.dnz_1.oo0(tmp_1, value instanceof BitArray ? value : THROW_CCE());
|
|
670
670
|
tmp = Unit_instance;
|
|
671
671
|
} else if (equals(tmp0_subject, Companion_instance_0.r1g().ps())) {
|
|
672
672
|
var tmp_2 = getAndResetTagOverride_0(this);
|
|
673
|
-
this.
|
|
673
|
+
this.dnz_1.no0(tmp_2, value instanceof ObjectIdentifier ? value.onz_1 : THROW_CCE());
|
|
674
674
|
tmp = Unit_instance;
|
|
675
675
|
} else if (equals(tmp0_subject, Companion_getInstance().r1g().ps())) {
|
|
676
676
|
var tmp_3 = getAndResetTagOverride_0(this);
|
|
677
|
-
this.
|
|
677
|
+
this.dnz_1.mo0(tmp_3, value instanceof BigInt ? value : THROW_CCE());
|
|
678
678
|
tmp = Unit_instance;
|
|
679
679
|
} else {
|
|
680
680
|
serializer.ct(this, value);
|
|
@@ -692,14 +692,14 @@
|
|
|
692
692
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
693
693
|
}
|
|
694
694
|
if (tmp_0) {
|
|
695
|
-
tmp = new DerEncoder(this.
|
|
695
|
+
tmp = new DerEncoder(this.bnz_1, new ByteArrayOutput(), this.dnz_1);
|
|
696
696
|
} else {
|
|
697
697
|
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
698
698
|
}
|
|
699
699
|
return tmp;
|
|
700
700
|
};
|
|
701
701
|
protoOf(DerEncoder).fw = function (descriptor) {
|
|
702
|
-
var tmp0 = this.
|
|
702
|
+
var tmp0 = this.cnz_1;
|
|
703
703
|
var tmp$ret$1;
|
|
704
704
|
$l$block: {
|
|
705
705
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -711,17 +711,17 @@
|
|
|
711
711
|
break $l$block;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
tmp$ret$1.
|
|
714
|
+
tmp$ret$1.qo0(getAndResetTagOverride_0(this), this.dnz_1);
|
|
715
715
|
};
|
|
716
716
|
protoOf(DerEncoder).kx = function (descriptor) {
|
|
717
717
|
return this;
|
|
718
718
|
};
|
|
719
|
-
protoOf(DerEncoder).
|
|
719
|
+
protoOf(DerEncoder).ro0 = function (enumDescriptor, index) {
|
|
720
720
|
var message = 'Enum encoding is not supported';
|
|
721
721
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
722
722
|
};
|
|
723
723
|
protoOf(DerEncoder).jx = function (enumDescriptor, index) {
|
|
724
|
-
return this.
|
|
724
|
+
return this.ro0(enumDescriptor, index);
|
|
725
725
|
};
|
|
726
726
|
protoOf(DerEncoder).ix = function (value) {
|
|
727
727
|
var message = 'String encoding is not supported';
|
|
@@ -748,20 +748,20 @@
|
|
|
748
748
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
749
749
|
};
|
|
750
750
|
function DerInput(input) {
|
|
751
|
-
this.
|
|
751
|
+
this.bo0_1 = input;
|
|
752
752
|
}
|
|
753
|
-
protoOf(DerInput).
|
|
754
|
-
return this.
|
|
753
|
+
protoOf(DerInput).tnz = function () {
|
|
754
|
+
return this.bo0_1.tnz();
|
|
755
755
|
};
|
|
756
|
-
protoOf(DerInput).
|
|
757
|
-
return this.
|
|
756
|
+
protoOf(DerInput).co0 = function () {
|
|
757
|
+
return this.bo0_1.unz();
|
|
758
758
|
};
|
|
759
|
-
protoOf(DerInput).
|
|
760
|
-
return !(this.
|
|
759
|
+
protoOf(DerInput).do0 = function () {
|
|
760
|
+
return !(this.co0() === 5);
|
|
761
761
|
};
|
|
762
|
-
protoOf(DerInput).
|
|
763
|
-
readRequestedTag(this.
|
|
764
|
-
var length = readLength(this.
|
|
762
|
+
protoOf(DerInput).eo0 = function () {
|
|
763
|
+
readRequestedTag(this.bo0_1, 5);
|
|
764
|
+
var length = readLength(this.bo0_1);
|
|
765
765
|
// Inline function 'kotlin.check' call
|
|
766
766
|
if (!(length === 0)) {
|
|
767
767
|
var message = 'NULL tag length should be zero, but was: ' + length;
|
|
@@ -769,32 +769,32 @@
|
|
|
769
769
|
}
|
|
770
770
|
return null;
|
|
771
771
|
};
|
|
772
|
-
protoOf(DerInput).
|
|
773
|
-
var tmp0 = this.
|
|
772
|
+
protoOf(DerInput).fo0 = function (tagOverride) {
|
|
773
|
+
var tmp0 = this.bo0_1;
|
|
774
774
|
var tmp$ret$1;
|
|
775
775
|
$l$block: {
|
|
776
776
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
777
777
|
if (tagOverride == null) {
|
|
778
778
|
readRequestedTag(tmp0, 2);
|
|
779
779
|
var length = readLength(tmp0);
|
|
780
|
-
var bytes = tmp0.
|
|
780
|
+
var bytes = tmp0.vnz(length);
|
|
781
781
|
tmp$ret$1 = decodeToBigInt(bytes);
|
|
782
782
|
break $l$block;
|
|
783
783
|
}
|
|
784
784
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
785
785
|
var tmp;
|
|
786
|
-
switch (tagOverride.
|
|
786
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
787
787
|
case 0:
|
|
788
788
|
var length_0 = readLength(tmp0);
|
|
789
|
-
var bytes_0 = tmp0.
|
|
789
|
+
var bytes_0 = tmp0.vnz(length_0);
|
|
790
790
|
tmp = decodeToBigInt(bytes_0);
|
|
791
791
|
break;
|
|
792
792
|
case 1:
|
|
793
793
|
var length_1 = readLength(tmp0);
|
|
794
|
-
var explicitInput = tmp0.
|
|
794
|
+
var explicitInput = tmp0.wnz(length_1);
|
|
795
795
|
readRequestedTag(explicitInput, 2);
|
|
796
796
|
var length_2 = readLength(explicitInput);
|
|
797
|
-
var bytes_1 = explicitInput.
|
|
797
|
+
var bytes_1 = explicitInput.vnz(length_2);
|
|
798
798
|
tmp = decodeToBigInt(bytes_1);
|
|
799
799
|
break;
|
|
800
800
|
default:
|
|
@@ -805,8 +805,8 @@
|
|
|
805
805
|
}
|
|
806
806
|
return tmp$ret$1;
|
|
807
807
|
};
|
|
808
|
-
protoOf(DerInput).
|
|
809
|
-
var tmp0 = this.
|
|
808
|
+
protoOf(DerInput).ho0 = function (tagOverride) {
|
|
809
|
+
var tmp0 = this.bo0_1;
|
|
810
810
|
var tmp$ret$7;
|
|
811
811
|
$l$block: {
|
|
812
812
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
readRequestedTag(tmp0, 3);
|
|
815
815
|
var length = readLength(tmp0);
|
|
816
816
|
var unusedBits = tmp0.i1k();
|
|
817
|
-
var bytes = tmp0.
|
|
817
|
+
var bytes = tmp0.vnz(length - 1 | 0);
|
|
818
818
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
819
819
|
if (bytes.length === 0) {
|
|
820
820
|
// Inline function 'kotlin.check' call
|
|
@@ -837,11 +837,11 @@
|
|
|
837
837
|
}
|
|
838
838
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
839
839
|
var tmp;
|
|
840
|
-
switch (tagOverride.
|
|
840
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
841
841
|
case 0:
|
|
842
842
|
var length_0 = readLength(tmp0);
|
|
843
843
|
var unusedBits_0 = tmp0.i1k();
|
|
844
|
-
var bytes_0 = tmp0.
|
|
844
|
+
var bytes_0 = tmp0.vnz(length_0 - 1 | 0);
|
|
845
845
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
846
846
|
|
|
847
847
|
if (bytes_0.length === 0) {
|
|
@@ -865,11 +865,11 @@
|
|
|
865
865
|
break;
|
|
866
866
|
case 1:
|
|
867
867
|
var length_1 = readLength(tmp0);
|
|
868
|
-
var explicitInput = tmp0.
|
|
868
|
+
var explicitInput = tmp0.wnz(length_1);
|
|
869
869
|
readRequestedTag(explicitInput, 3);
|
|
870
870
|
var length_2 = readLength(explicitInput);
|
|
871
871
|
var unusedBits_1 = explicitInput.i1k();
|
|
872
|
-
var bytes_1 = explicitInput.
|
|
872
|
+
var bytes_1 = explicitInput.vnz(length_2 - 1 | 0);
|
|
873
873
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
874
874
|
|
|
875
875
|
if (bytes_1.length === 0) {
|
|
@@ -899,30 +899,30 @@
|
|
|
899
899
|
}
|
|
900
900
|
return tmp$ret$7;
|
|
901
901
|
};
|
|
902
|
-
protoOf(DerInput).
|
|
903
|
-
var tmp0 = this.
|
|
902
|
+
protoOf(DerInput).io0 = function (tagOverride) {
|
|
903
|
+
var tmp0 = this.bo0_1;
|
|
904
904
|
var tmp$ret$1;
|
|
905
905
|
$l$block: {
|
|
906
906
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
907
907
|
if (tagOverride == null) {
|
|
908
908
|
readRequestedTag(tmp0, 4);
|
|
909
909
|
var length = readLength(tmp0);
|
|
910
|
-
tmp$ret$1 = tmp0.
|
|
910
|
+
tmp$ret$1 = tmp0.vnz(length);
|
|
911
911
|
break $l$block;
|
|
912
912
|
}
|
|
913
913
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
914
914
|
var tmp;
|
|
915
|
-
switch (tagOverride.
|
|
915
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
916
916
|
case 0:
|
|
917
917
|
var length_0 = readLength(tmp0);
|
|
918
|
-
tmp = tmp0.
|
|
918
|
+
tmp = tmp0.vnz(length_0);
|
|
919
919
|
break;
|
|
920
920
|
case 1:
|
|
921
921
|
var length_1 = readLength(tmp0);
|
|
922
|
-
var explicitInput = tmp0.
|
|
922
|
+
var explicitInput = tmp0.wnz(length_1);
|
|
923
923
|
readRequestedTag(explicitInput, 4);
|
|
924
924
|
var length_2 = readLength(explicitInput);
|
|
925
|
-
tmp = explicitInput.
|
|
925
|
+
tmp = explicitInput.vnz(length_2);
|
|
926
926
|
break;
|
|
927
927
|
default:
|
|
928
928
|
noWhenBranchMatchedException();
|
|
@@ -932,66 +932,66 @@
|
|
|
932
932
|
}
|
|
933
933
|
return tmp$ret$1;
|
|
934
934
|
};
|
|
935
|
-
protoOf(DerInput).
|
|
936
|
-
var tmp0 = this.
|
|
935
|
+
protoOf(DerInput).go0 = function (tagOverride) {
|
|
936
|
+
var tmp0 = this.bo0_1;
|
|
937
937
|
var tmp$ret$1;
|
|
938
938
|
$l$block: {
|
|
939
939
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
940
940
|
if (tagOverride == null) {
|
|
941
941
|
readRequestedTag(tmp0, 6);
|
|
942
942
|
var length = readLength(tmp0);
|
|
943
|
-
var slice = tmp0.
|
|
943
|
+
var slice = tmp0.wnz(length);
|
|
944
944
|
tmp$ret$1 = _ObjectIdentifier___init__impl__7hutfr(readOidElements(slice));
|
|
945
945
|
break $l$block;
|
|
946
946
|
}
|
|
947
947
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
948
948
|
var tmp;
|
|
949
|
-
switch (tagOverride.
|
|
949
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
950
950
|
case 0:
|
|
951
951
|
var length_0 = readLength(tmp0);
|
|
952
|
-
var slice_0 = tmp0.
|
|
952
|
+
var slice_0 = tmp0.wnz(length_0);
|
|
953
953
|
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_0)));
|
|
954
954
|
break;
|
|
955
955
|
case 1:
|
|
956
956
|
var length_1 = readLength(tmp0);
|
|
957
|
-
var explicitInput = tmp0.
|
|
957
|
+
var explicitInput = tmp0.wnz(length_1);
|
|
958
958
|
readRequestedTag(explicitInput, 6);
|
|
959
959
|
var length_2 = readLength(explicitInput);
|
|
960
|
-
var slice_1 = explicitInput.
|
|
960
|
+
var slice_1 = explicitInput.wnz(length_2);
|
|
961
961
|
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_1)));
|
|
962
962
|
break;
|
|
963
963
|
default:
|
|
964
964
|
noWhenBranchMatchedException();
|
|
965
965
|
break;
|
|
966
966
|
}
|
|
967
|
-
tmp$ret$1 = tmp.
|
|
967
|
+
tmp$ret$1 = tmp.onz_1;
|
|
968
968
|
}
|
|
969
969
|
return tmp$ret$1;
|
|
970
970
|
};
|
|
971
|
-
protoOf(DerInput).
|
|
972
|
-
var tmp0 = this.
|
|
971
|
+
protoOf(DerInput).jo0 = function (tagOverride) {
|
|
972
|
+
var tmp0 = this.bo0_1;
|
|
973
973
|
var tmp$ret$1;
|
|
974
974
|
$l$block: {
|
|
975
975
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
976
976
|
if (tagOverride == null) {
|
|
977
977
|
readRequestedTag(tmp0, 48);
|
|
978
978
|
var length = readLength(tmp0);
|
|
979
|
-
tmp$ret$1 = tmp0.
|
|
979
|
+
tmp$ret$1 = tmp0.wnz(length);
|
|
980
980
|
break $l$block;
|
|
981
981
|
}
|
|
982
982
|
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
983
983
|
var tmp;
|
|
984
|
-
switch (tagOverride.
|
|
984
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
985
985
|
case 0:
|
|
986
986
|
var length_0 = readLength(tmp0);
|
|
987
|
-
tmp = tmp0.
|
|
987
|
+
tmp = tmp0.wnz(length_0);
|
|
988
988
|
break;
|
|
989
989
|
case 1:
|
|
990
990
|
var length_1 = readLength(tmp0);
|
|
991
|
-
var explicitInput = tmp0.
|
|
991
|
+
var explicitInput = tmp0.wnz(length_1);
|
|
992
992
|
readRequestedTag(explicitInput, 48);
|
|
993
993
|
var length_2 = readLength(explicitInput);
|
|
994
|
-
tmp = explicitInput.
|
|
994
|
+
tmp = explicitInput.wnz(length_2);
|
|
995
995
|
break;
|
|
996
996
|
default:
|
|
997
997
|
noWhenBranchMatchedException();
|
|
@@ -1047,7 +1047,7 @@
|
|
|
1047
1047
|
this_0.s(_Char___init__impl__6a9atx(49)).s(_Char___init__impl__6a9atx(46)).yc(first - 40 | 0);
|
|
1048
1048
|
else
|
|
1049
1049
|
this_0.s(_Char___init__impl__6a9atx(50)).s(_Char___init__impl__6a9atx(46)).yc(first - 80 | 0);
|
|
1050
|
-
while (!_this__u8e3s4.
|
|
1050
|
+
while (!_this__u8e3s4.tnz()) {
|
|
1051
1051
|
this_0.s(_Char___init__impl__6a9atx(46)).yc(readOidElement(_this__u8e3s4));
|
|
1052
1052
|
}
|
|
1053
1053
|
return this_0.toString();
|
|
@@ -1067,23 +1067,23 @@
|
|
|
1067
1067
|
return element;
|
|
1068
1068
|
}
|
|
1069
1069
|
function DerOutput(output) {
|
|
1070
|
-
this.
|
|
1070
|
+
this.ko0_1 = output;
|
|
1071
1071
|
}
|
|
1072
|
-
protoOf(DerOutput).
|
|
1073
|
-
this.
|
|
1074
|
-
writeLength(this.
|
|
1072
|
+
protoOf(DerOutput).lo0 = function () {
|
|
1073
|
+
this.ko0_1.xnz(5);
|
|
1074
|
+
writeLength(this.ko0_1, 0);
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf(DerOutput).
|
|
1077
|
-
var tmp0 = this.
|
|
1076
|
+
protoOf(DerOutput).mo0 = function (tagOverride, value) {
|
|
1077
|
+
var tmp0 = this.ko0_1;
|
|
1078
1078
|
$l$block: {
|
|
1079
1079
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1080
1080
|
if (tagOverride == null) {
|
|
1081
|
-
tmp0.
|
|
1081
|
+
tmp0.xnz(2);
|
|
1082
1082
|
writeBytes(tmp0, encodeToByteArray(value));
|
|
1083
1083
|
break $l$block;
|
|
1084
1084
|
}
|
|
1085
|
-
tmp0.
|
|
1086
|
-
switch (tagOverride.
|
|
1085
|
+
tmp0.xnz(get_tag(tagOverride));
|
|
1086
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
1087
1087
|
case 0:
|
|
1088
1088
|
writeBytes(tmp0, encodeToByteArray(value));
|
|
1089
1089
|
break;
|
|
@@ -1093,7 +1093,7 @@
|
|
|
1093
1093
|
// Inline function 'kotlin.apply' call
|
|
1094
1094
|
|
|
1095
1095
|
var this_0 = new ByteArrayOutput();
|
|
1096
|
-
this_0.
|
|
1096
|
+
this_0.xnz(2);
|
|
1097
1097
|
writeBytes(this_0, encodeToByteArray(value));
|
|
1098
1098
|
writeBytes_0(tmp0, this_0);
|
|
1099
1099
|
break;
|
|
@@ -1103,23 +1103,23 @@
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
};
|
|
1106
|
-
protoOf(DerOutput).
|
|
1107
|
-
var tmp0 = this.
|
|
1106
|
+
protoOf(DerOutput).oo0 = function (tagOverride, bits) {
|
|
1107
|
+
var tmp0 = this.ko0_1;
|
|
1108
1108
|
$l$block: {
|
|
1109
1109
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1110
1110
|
if (tagOverride == null) {
|
|
1111
|
-
tmp0.
|
|
1112
|
-
writeLength(tmp0, bits.
|
|
1113
|
-
tmp0.
|
|
1114
|
-
tmp0.
|
|
1111
|
+
tmp0.xnz(3);
|
|
1112
|
+
writeLength(tmp0, bits.zny_1.length + 1 | 0);
|
|
1113
|
+
tmp0.ynz(bits.yny_1);
|
|
1114
|
+
tmp0.znz(bits.zny_1);
|
|
1115
1115
|
break $l$block;
|
|
1116
1116
|
}
|
|
1117
|
-
tmp0.
|
|
1118
|
-
switch (tagOverride.
|
|
1117
|
+
tmp0.xnz(get_tag(tagOverride));
|
|
1118
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
1119
1119
|
case 0:
|
|
1120
|
-
writeLength(tmp0, bits.
|
|
1121
|
-
tmp0.
|
|
1122
|
-
tmp0.
|
|
1120
|
+
writeLength(tmp0, bits.zny_1.length + 1 | 0);
|
|
1121
|
+
tmp0.ynz(bits.yny_1);
|
|
1122
|
+
tmp0.znz(bits.zny_1);
|
|
1123
1123
|
break;
|
|
1124
1124
|
case 1:
|
|
1125
1125
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
@@ -1127,10 +1127,10 @@
|
|
|
1127
1127
|
// Inline function 'kotlin.apply' call
|
|
1128
1128
|
|
|
1129
1129
|
var this_0 = new ByteArrayOutput();
|
|
1130
|
-
this_0.
|
|
1131
|
-
writeLength(this_0, bits.
|
|
1132
|
-
this_0.
|
|
1133
|
-
this_0.
|
|
1130
|
+
this_0.xnz(3);
|
|
1131
|
+
writeLength(this_0, bits.zny_1.length + 1 | 0);
|
|
1132
|
+
this_0.ynz(bits.yny_1);
|
|
1133
|
+
this_0.znz(bits.zny_1);
|
|
1134
1134
|
writeBytes_0(tmp0, this_0);
|
|
1135
1135
|
break;
|
|
1136
1136
|
default:
|
|
@@ -1139,17 +1139,17 @@
|
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
1141
|
};
|
|
1142
|
-
protoOf(DerOutput).
|
|
1143
|
-
var tmp0 = this.
|
|
1142
|
+
protoOf(DerOutput).po0 = function (tagOverride, bytes) {
|
|
1143
|
+
var tmp0 = this.ko0_1;
|
|
1144
1144
|
$l$block: {
|
|
1145
1145
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1146
1146
|
if (tagOverride == null) {
|
|
1147
|
-
tmp0.
|
|
1147
|
+
tmp0.xnz(4);
|
|
1148
1148
|
writeBytes(tmp0, bytes);
|
|
1149
1149
|
break $l$block;
|
|
1150
1150
|
}
|
|
1151
|
-
tmp0.
|
|
1152
|
-
switch (tagOverride.
|
|
1151
|
+
tmp0.xnz(get_tag(tagOverride));
|
|
1152
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
1153
1153
|
case 0:
|
|
1154
1154
|
writeBytes(tmp0, bytes);
|
|
1155
1155
|
break;
|
|
@@ -1159,7 +1159,7 @@
|
|
|
1159
1159
|
// Inline function 'kotlin.apply' call
|
|
1160
1160
|
|
|
1161
1161
|
var this_0 = new ByteArrayOutput();
|
|
1162
|
-
this_0.
|
|
1162
|
+
this_0.xnz(4);
|
|
1163
1163
|
writeBytes(this_0, bytes);
|
|
1164
1164
|
writeBytes_0(tmp0, this_0);
|
|
1165
1165
|
break;
|
|
@@ -1169,12 +1169,12 @@
|
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
};
|
|
1172
|
-
protoOf(DerOutput).
|
|
1173
|
-
var tmp0 = this.
|
|
1172
|
+
protoOf(DerOutput).no0 = function (tagOverride, value) {
|
|
1173
|
+
var tmp0 = this.ko0_1;
|
|
1174
1174
|
$l$block: {
|
|
1175
1175
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1176
1176
|
if (tagOverride == null) {
|
|
1177
|
-
tmp0.
|
|
1177
|
+
tmp0.xnz(6);
|
|
1178
1178
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1179
1179
|
// Inline function 'kotlin.apply' call
|
|
1180
1180
|
var this_0 = new ByteArrayOutput();
|
|
@@ -1182,8 +1182,8 @@
|
|
|
1182
1182
|
writeBytes_0(tmp0, this_0);
|
|
1183
1183
|
break $l$block;
|
|
1184
1184
|
}
|
|
1185
|
-
tmp0.
|
|
1186
|
-
switch (tagOverride.
|
|
1185
|
+
tmp0.xnz(get_tag(tagOverride));
|
|
1186
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
1187
1187
|
case 0:
|
|
1188
1188
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1189
1189
|
|
|
@@ -1199,7 +1199,7 @@
|
|
|
1199
1199
|
// Inline function 'kotlin.apply' call
|
|
1200
1200
|
|
|
1201
1201
|
var this_2 = new ByteArrayOutput();
|
|
1202
|
-
this_2.
|
|
1202
|
+
this_2.xnz(6);
|
|
1203
1203
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1204
1204
|
|
|
1205
1205
|
// Inline function 'kotlin.apply' call
|
|
@@ -1215,19 +1215,19 @@
|
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
};
|
|
1218
|
-
protoOf(DerOutput).
|
|
1219
|
-
var tmp0 = this.
|
|
1218
|
+
protoOf(DerOutput).qo0 = function (tagOverride, bytes) {
|
|
1219
|
+
var tmp0 = this.ko0_1;
|
|
1220
1220
|
$l$block: {
|
|
1221
1221
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1222
1222
|
if (tagOverride == null) {
|
|
1223
|
-
tmp0.
|
|
1224
|
-
writeBytes_0(tmp0, bytes.
|
|
1223
|
+
tmp0.xnz(48);
|
|
1224
|
+
writeBytes_0(tmp0, bytes.ko0_1);
|
|
1225
1225
|
break $l$block;
|
|
1226
1226
|
}
|
|
1227
|
-
tmp0.
|
|
1228
|
-
switch (tagOverride.
|
|
1227
|
+
tmp0.xnz(get_tag(tagOverride));
|
|
1228
|
+
switch (tagOverride.vny_1.a1_1) {
|
|
1229
1229
|
case 0:
|
|
1230
|
-
writeBytes_0(tmp0, bytes.
|
|
1230
|
+
writeBytes_0(tmp0, bytes.ko0_1);
|
|
1231
1231
|
break;
|
|
1232
1232
|
case 1:
|
|
1233
1233
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
@@ -1235,8 +1235,8 @@
|
|
|
1235
1235
|
// Inline function 'kotlin.apply' call
|
|
1236
1236
|
|
|
1237
1237
|
var this_0 = new ByteArrayOutput();
|
|
1238
|
-
this_0.
|
|
1239
|
-
writeBytes_0(this_0, bytes.
|
|
1238
|
+
this_0.xnz(48);
|
|
1239
|
+
writeBytes_0(this_0, bytes.ko0_1);
|
|
1240
1240
|
writeBytes_0(tmp0, this_0);
|
|
1241
1241
|
break;
|
|
1242
1242
|
default:
|
|
@@ -1247,23 +1247,23 @@
|
|
|
1247
1247
|
};
|
|
1248
1248
|
function writeLength(_this__u8e3s4, length) {
|
|
1249
1249
|
if (length < 128)
|
|
1250
|
-
return _this__u8e3s4.
|
|
1250
|
+
return _this__u8e3s4.ynz(length);
|
|
1251
1251
|
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1252
1252
|
var numberOfLengthBytes = 4 - (clz32(length) / 8 | 0) | 0;
|
|
1253
|
-
_this__u8e3s4.
|
|
1253
|
+
_this__u8e3s4.ynz(numberOfLengthBytes | 128);
|
|
1254
1254
|
// Inline function 'kotlin.repeat' call
|
|
1255
1255
|
var inductionVariable = 0;
|
|
1256
1256
|
if (inductionVariable < numberOfLengthBytes)
|
|
1257
1257
|
do {
|
|
1258
1258
|
var index = inductionVariable;
|
|
1259
1259
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1260
|
-
_this__u8e3s4.
|
|
1260
|
+
_this__u8e3s4.ynz(length >>> imul(8, (numberOfLengthBytes - 1 | 0) - index | 0) | 0);
|
|
1261
1261
|
}
|
|
1262
1262
|
while (inductionVariable < numberOfLengthBytes);
|
|
1263
1263
|
}
|
|
1264
1264
|
function writeBytes(_this__u8e3s4, bytes) {
|
|
1265
1265
|
writeLength(_this__u8e3s4, bytes.length);
|
|
1266
|
-
_this__u8e3s4.
|
|
1266
|
+
_this__u8e3s4.znz(bytes);
|
|
1267
1267
|
}
|
|
1268
1268
|
function writeOidElements(_this__u8e3s4, elements) {
|
|
1269
1269
|
// Inline function 'kotlin.check' call
|
|
@@ -1285,11 +1285,11 @@
|
|
|
1285
1285
|
}
|
|
1286
1286
|
function writeBytes_0(_this__u8e3s4, bytes) {
|
|
1287
1287
|
writeLength(_this__u8e3s4, bytes.g1());
|
|
1288
|
-
_this__u8e3s4.
|
|
1288
|
+
_this__u8e3s4.ao0(bytes);
|
|
1289
1289
|
}
|
|
1290
1290
|
function writeOidElement(_this__u8e3s4, element) {
|
|
1291
1291
|
if (element < 128)
|
|
1292
|
-
return _this__u8e3s4.
|
|
1292
|
+
return _this__u8e3s4.ynz(element);
|
|
1293
1293
|
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1294
1294
|
var l = (32 - clz32(element) | 0) / 7 | 0;
|
|
1295
1295
|
// Inline function 'kotlin.repeat' call
|
|
@@ -1300,11 +1300,11 @@
|
|
|
1300
1300
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1301
1301
|
var value = element >>> imul(l - index | 0, 7) | 0;
|
|
1302
1302
|
if (!(value === 0)) {
|
|
1303
|
-
_this__u8e3s4.
|
|
1303
|
+
_this__u8e3s4.ynz(value & 127 | 128);
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
1306
|
while (inductionVariable < l);
|
|
1307
|
-
_this__u8e3s4.
|
|
1307
|
+
_this__u8e3s4.ynz(element & 127);
|
|
1308
1308
|
}
|
|
1309
1309
|
function writeOidElements$element($elements, index) {
|
|
1310
1310
|
return toInt($elements.h1(index));
|
|
@@ -1334,16 +1334,16 @@
|
|
|
1334
1334
|
}
|
|
1335
1335
|
var annotation = tmp_0;
|
|
1336
1336
|
// Inline function 'kotlin.check' call
|
|
1337
|
-
if (!(annotation.
|
|
1338
|
-
var message = 'Context specific tag class must be less than 31, but was ' + annotation.
|
|
1337
|
+
if (!(annotation.uny_1 < 31)) {
|
|
1338
|
+
var message = 'Context specific tag class must be less than 31, but was ' + annotation.uny_1;
|
|
1339
1339
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1340
1340
|
}
|
|
1341
1341
|
return annotation;
|
|
1342
1342
|
}
|
|
1343
1343
|
function get_tag(_this__u8e3s4) {
|
|
1344
|
-
var contextSpecificTag = _this__u8e3s4.
|
|
1344
|
+
var contextSpecificTag = _this__u8e3s4.uny_1 | 128;
|
|
1345
1345
|
var tmp;
|
|
1346
|
-
switch (_this__u8e3s4.
|
|
1346
|
+
switch (_this__u8e3s4.vny_1.a1_1) {
|
|
1347
1347
|
case 0:
|
|
1348
1348
|
tmp = toByte(contextSpecificTag);
|
|
1349
1349
|
break;
|