@solibo/solibo-sdk 1.0.29 → 1.0.30-SNAPSHOT
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 +111 -111
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1579 -1580
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/KotlinBigInteger-bignum.js +1166 -1166
- package/MultiplatformSettings-multiplatform-settings.js +17 -17
- package/Stately-stately-concurrency.js +5 -5
- package/cryptography-kotlin-cryptography-bigint.js +35 -35
- package/cryptography-kotlin-cryptography-bigint.js.map +1 -1
- package/cryptography-kotlin-cryptography-core.js +54 -54
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-base.js.map +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +141 -141
- package/cryptography-kotlin-cryptography-provider-webcrypto.js.map +1 -1
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +208 -208
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js.map +1 -1
- package/cryptography-kotlin-cryptography-serialization-asn1.js +345 -345
- package/cryptography-kotlin-cryptography-serialization-asn1.js.map +1 -1
- package/cryptography-kotlin-cryptography-serialization-pem.js +16 -16
- package/index.d.ts +514 -525
- package/index.js +514 -525
- package/kotlin-kotlin-stdlib.js +1167 -1258
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +17 -17
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +1887 -1887
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +36 -36
- package/kotlinx-io-kotlinx-io-core.js +465 -465
- package/kotlinx-serialization-kotlinx-serialization-core.js +1892 -1884
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1422 -1421
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +279 -279
- package/ktor-ktor-client-content-negotiation.js +149 -149
- package/ktor-ktor-client-core.js +2763 -3212
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +674 -674
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +7 -7
- package/ktor-ktor-http-cio.js +364 -364
- package/ktor-ktor-http-cio.js.map +1 -1
- package/ktor-ktor-http.js +1161 -1220
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +688 -795
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +147 -147
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +66 -66
- package/ktor-ktor-utils.js +788 -791
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +413 -413
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +85277 -142208
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +2906 -4595
- package/solibo-sdk-sdk.js +1591 -1591
- package/solibo-sdk-sdk.js.map +1 -1
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
var getStringHashCode = kotlin_kotlin.$_$.gc;
|
|
30
30
|
var initMetadataForCompanion = kotlin_kotlin.$_$.jc;
|
|
31
31
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
32
|
-
var ByteArraySerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
33
|
-
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
32
|
+
var ByteArraySerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
|
|
33
|
+
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
34
34
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
35
35
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
36
36
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
37
37
|
var initMetadataForObject = kotlin_kotlin.$_$.oc;
|
|
38
38
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
|
|
39
|
-
var last = kotlin_kotlin.$_$.
|
|
39
|
+
var last = kotlin_kotlin.$_$.f8;
|
|
40
40
|
var countTrailingZeroBits = kotlin_kotlin.$_$.wi;
|
|
41
41
|
var toString = kotlin_kotlin.$_$.ld;
|
|
42
42
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
var BinaryFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
|
|
46
46
|
var InlineClassDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
47
47
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
48
|
-
var copyOfRange = kotlin_kotlin.$_$.
|
|
48
|
+
var copyOfRange = kotlin_kotlin.$_$.u6;
|
|
49
49
|
var takeHighestOneBit = kotlin_kotlin.$_$.jj;
|
|
50
|
-
var copyOf = kotlin_kotlin.$_$.
|
|
50
|
+
var copyOf = kotlin_kotlin.$_$.a7;
|
|
51
51
|
var toByte = kotlin_kotlin.$_$.jd;
|
|
52
|
-
var arrayCopy = kotlin_kotlin.$_$.
|
|
52
|
+
var arrayCopy = kotlin_kotlin.$_$.f6;
|
|
53
53
|
var AbstractDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
54
54
|
var Companion_getInstance = kotlin_dev_whyoleg_cryptography_cryptography_bigint.$_$.h;
|
|
55
|
-
var equals = kotlin_kotlin.$_$.
|
|
55
|
+
var equals = kotlin_kotlin.$_$.zb;
|
|
56
56
|
var ByteArraySerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
57
57
|
var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1;
|
|
58
|
-
var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
59
|
-
var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
58
|
+
var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
59
|
+
var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
|
|
60
60
|
var AbstractEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
|
|
61
61
|
var toBigInt = kotlin_dev_whyoleg_cryptography_cryptography_bigint.$_$.e;
|
|
62
62
|
var toBigInt_0 = kotlin_dev_whyoleg_cryptography_cryptography_bigint.$_$.g;
|
|
@@ -111,30 +111,30 @@
|
|
|
111
111
|
return TagType_EXPLICIT_instance;
|
|
112
112
|
}
|
|
113
113
|
function ContextSpecificTag(classIndex, type) {
|
|
114
|
-
this.
|
|
115
|
-
this.
|
|
114
|
+
this.rac_1 = classIndex;
|
|
115
|
+
this.sac_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.rac_1 === tmp0_other_with_cast.rac_1))
|
|
122
122
|
return false;
|
|
123
|
-
if (!this.
|
|
123
|
+
if (!this.sac_1.equals(tmp0_other_with_cast.sac_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.rac_1;
|
|
129
|
+
result = result + (imul(getStringHashCode('type'), 127) ^ this.sac_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.rac_1 + ', ' + 'type=' + this.sac_1.toString() + ')';
|
|
134
134
|
};
|
|
135
135
|
function Companion() {
|
|
136
136
|
}
|
|
137
|
-
protoOf(Companion).
|
|
137
|
+
protoOf(Companion).x1f = function () {
|
|
138
138
|
return $serializer_getInstance();
|
|
139
139
|
};
|
|
140
140
|
var Companion_instance;
|
|
@@ -144,59 +144,59 @@
|
|
|
144
144
|
function $serializer() {
|
|
145
145
|
$serializer_instance = this;
|
|
146
146
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.BitArray', this, 2);
|
|
147
|
-
tmp0_serialDesc.
|
|
148
|
-
tmp0_serialDesc.
|
|
149
|
-
this.
|
|
147
|
+
tmp0_serialDesc.r13('unusedBits', false);
|
|
148
|
+
tmp0_serialDesc.r13('byteArray', false);
|
|
149
|
+
this.tac_1 = tmp0_serialDesc;
|
|
150
150
|
}
|
|
151
|
-
protoOf($serializer).
|
|
152
|
-
var tmp0_desc = this.
|
|
153
|
-
var tmp1_output = encoder.
|
|
154
|
-
tmp1_output.
|
|
155
|
-
tmp1_output.
|
|
156
|
-
tmp1_output.
|
|
157
|
-
};
|
|
158
|
-
protoOf($serializer).
|
|
159
|
-
return this.
|
|
160
|
-
};
|
|
161
|
-
protoOf($serializer).
|
|
162
|
-
var tmp0_desc = this.
|
|
151
|
+
protoOf($serializer).uac = function (encoder, value) {
|
|
152
|
+
var tmp0_desc = this.tac_1;
|
|
153
|
+
var tmp1_output = encoder.ew(tmp0_desc);
|
|
154
|
+
tmp1_output.ox(tmp0_desc, 0, value.vac_1);
|
|
155
|
+
tmp1_output.vx(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.wac_1);
|
|
156
|
+
tmp1_output.fw(tmp0_desc);
|
|
157
|
+
};
|
|
158
|
+
protoOf($serializer).ct = function (encoder, value) {
|
|
159
|
+
return this.uac(encoder, value instanceof BitArray ? value : THROW_CCE());
|
|
160
|
+
};
|
|
161
|
+
protoOf($serializer).dt = function (decoder) {
|
|
162
|
+
var tmp0_desc = this.tac_1;
|
|
163
163
|
var tmp1_flag = true;
|
|
164
164
|
var tmp2_index = 0;
|
|
165
165
|
var tmp3_bitMask0 = 0;
|
|
166
166
|
var tmp4_local0 = 0;
|
|
167
167
|
var tmp5_local1 = null;
|
|
168
|
-
var tmp6_input = decoder.
|
|
169
|
-
if (tmp6_input.
|
|
170
|
-
tmp4_local0 = tmp6_input.
|
|
168
|
+
var tmp6_input = decoder.ew(tmp0_desc);
|
|
169
|
+
if (tmp6_input.uw()) {
|
|
170
|
+
tmp4_local0 = tmp6_input.jw(tmp0_desc, 0);
|
|
171
171
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
172
|
-
tmp5_local1 = tmp6_input.
|
|
172
|
+
tmp5_local1 = tmp6_input.qw(tmp0_desc, 1, ByteArraySerializer_getInstance(), tmp5_local1);
|
|
173
173
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
174
174
|
} else
|
|
175
175
|
while (tmp1_flag) {
|
|
176
|
-
tmp2_index = tmp6_input.
|
|
176
|
+
tmp2_index = tmp6_input.vw(tmp0_desc);
|
|
177
177
|
switch (tmp2_index) {
|
|
178
178
|
case -1:
|
|
179
179
|
tmp1_flag = false;
|
|
180
180
|
break;
|
|
181
181
|
case 0:
|
|
182
|
-
tmp4_local0 = tmp6_input.
|
|
182
|
+
tmp4_local0 = tmp6_input.jw(tmp0_desc, 0);
|
|
183
183
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
184
184
|
break;
|
|
185
185
|
case 1:
|
|
186
|
-
tmp5_local1 = tmp6_input.
|
|
186
|
+
tmp5_local1 = tmp6_input.qw(tmp0_desc, 1, ByteArraySerializer_getInstance(), tmp5_local1);
|
|
187
187
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
188
188
|
break;
|
|
189
189
|
default:
|
|
190
190
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
tmp6_input.
|
|
193
|
+
tmp6_input.fw(tmp0_desc);
|
|
194
194
|
return BitArray_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
195
195
|
};
|
|
196
|
-
protoOf($serializer).
|
|
197
|
-
return this.
|
|
196
|
+
protoOf($serializer).ps = function () {
|
|
197
|
+
return this.tac_1;
|
|
198
198
|
};
|
|
199
|
-
protoOf($serializer).
|
|
199
|
+
protoOf($serializer).k14 = function () {
|
|
200
200
|
// Inline function 'kotlin.arrayOf' call
|
|
201
201
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
202
202
|
// Inline function 'kotlin.js.asDynamic' 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().tac_1);
|
|
214
214
|
}
|
|
215
|
-
$this.
|
|
216
|
-
$this.
|
|
215
|
+
$this.vac_1 = unusedBits;
|
|
216
|
+
$this.wac_1 = byteArray;
|
|
217
217
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
218
|
-
if ($this.
|
|
218
|
+
if ($this.wac_1.length === 0) {
|
|
219
219
|
// Inline function 'kotlin.check' call
|
|
220
|
-
if (!($this.
|
|
220
|
+
if (!($this.vac_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.wac_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.vac_1 <= tmp$ret$3)) {
|
|
230
|
+
var message_0 = 'At least ' + $this.vac_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.vac_1 = unusedBits;
|
|
241
|
+
this.wac_1 = byteArray;
|
|
242
242
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
243
|
-
if (this.
|
|
243
|
+
if (this.wac_1.length === 0) {
|
|
244
244
|
// Inline function 'kotlin.check' call
|
|
245
|
-
if (!(this.
|
|
245
|
+
if (!(this.vac_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.wac_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.vac_1 <= tmp$ret$3)) {
|
|
255
|
+
var message_0 = 'At least ' + this.vac_1 + ' last bits should be unused';
|
|
256
256
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
257
257
|
}
|
|
258
258
|
}
|
|
@@ -269,19 +269,19 @@
|
|
|
269
269
|
}
|
|
270
270
|
function Der(serializersModule) {
|
|
271
271
|
Default_getInstance();
|
|
272
|
-
this.
|
|
272
|
+
this.xac_1 = serializersModule;
|
|
273
273
|
}
|
|
274
|
-
protoOf(Der).
|
|
275
|
-
return this.
|
|
274
|
+
protoOf(Der).at = function () {
|
|
275
|
+
return this.xac_1;
|
|
276
276
|
};
|
|
277
|
-
protoOf(Der).
|
|
277
|
+
protoOf(Der).wt = function (serializer, value) {
|
|
278
278
|
var output = new ByteArrayOutput();
|
|
279
|
-
(new DerEncoder(this, output)).
|
|
280
|
-
return output.
|
|
279
|
+
(new DerEncoder(this, output)).bt(serializer, value);
|
|
280
|
+
return output.ead();
|
|
281
281
|
};
|
|
282
|
-
protoOf(Der).
|
|
282
|
+
protoOf(Der).xt = function (deserializer, bytes) {
|
|
283
283
|
var input = new ByteArrayInput(bytes);
|
|
284
|
-
return (new DerDecoder(this, input)).
|
|
284
|
+
return (new DerDecoder(this, input)).et(deserializer);
|
|
285
285
|
};
|
|
286
286
|
function _ObjectIdentifier___init__impl__7hutfr(value) {
|
|
287
287
|
return value;
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
}
|
|
292
292
|
function Companion_0() {
|
|
293
293
|
}
|
|
294
|
-
protoOf(Companion_0).
|
|
294
|
+
protoOf(Companion_0).x1f = function () {
|
|
295
295
|
return $serializer_getInstance_0();
|
|
296
296
|
};
|
|
297
297
|
var Companion_instance_0;
|
|
@@ -301,30 +301,30 @@
|
|
|
301
301
|
function $serializer_0() {
|
|
302
302
|
$serializer_instance_0 = this;
|
|
303
303
|
var tmp0_serialDesc = new InlineClassDescriptor('dev.whyoleg.cryptography.serialization.asn1.ObjectIdentifier', this);
|
|
304
|
-
tmp0_serialDesc.
|
|
305
|
-
this.
|
|
304
|
+
tmp0_serialDesc.r13('value', false);
|
|
305
|
+
this.jad_1 = tmp0_serialDesc;
|
|
306
306
|
}
|
|
307
|
-
protoOf($serializer_0).
|
|
308
|
-
var tmp0_inlineEncoder = encoder.
|
|
307
|
+
protoOf($serializer_0).kad = function (encoder, value) {
|
|
308
|
+
var tmp0_inlineEncoder = encoder.kx(this.jad_1);
|
|
309
309
|
if (tmp0_inlineEncoder == null)
|
|
310
310
|
null;
|
|
311
311
|
else {
|
|
312
|
-
tmp0_inlineEncoder.
|
|
312
|
+
tmp0_inlineEncoder.ix(_ObjectIdentifier___get_value__impl__wqzjw3(value));
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
|
-
protoOf($serializer_0).
|
|
316
|
-
return this.
|
|
315
|
+
protoOf($serializer_0).ct = function (encoder, value) {
|
|
316
|
+
return this.kad(encoder, value instanceof ObjectIdentifier ? value.lad_1 : THROW_CCE());
|
|
317
317
|
};
|
|
318
|
-
protoOf($serializer_0).
|
|
319
|
-
return _ObjectIdentifier___init__impl__7hutfr(decoder.
|
|
318
|
+
protoOf($serializer_0).mad = function (decoder) {
|
|
319
|
+
return _ObjectIdentifier___init__impl__7hutfr(decoder.cw(this.jad_1).aw());
|
|
320
320
|
};
|
|
321
|
-
protoOf($serializer_0).
|
|
322
|
-
return new ObjectIdentifier(this.
|
|
321
|
+
protoOf($serializer_0).dt = function (decoder) {
|
|
322
|
+
return new ObjectIdentifier(this.mad(decoder));
|
|
323
323
|
};
|
|
324
|
-
protoOf($serializer_0).
|
|
325
|
-
return this.
|
|
324
|
+
protoOf($serializer_0).ps = function () {
|
|
325
|
+
return this.jad_1;
|
|
326
326
|
};
|
|
327
|
-
protoOf($serializer_0).
|
|
327
|
+
protoOf($serializer_0).k14 = function () {
|
|
328
328
|
// Inline function 'kotlin.arrayOf' call
|
|
329
329
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
330
330
|
// Inline function 'kotlin.js.asDynamic' 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.lad_1 : THROW_CCE())))
|
|
349
349
|
return false;
|
|
350
350
|
return true;
|
|
351
351
|
}
|
|
352
352
|
function ObjectIdentifier(value) {
|
|
353
|
-
this.
|
|
353
|
+
this.lad_1 = value;
|
|
354
354
|
}
|
|
355
355
|
protoOf(ObjectIdentifier).toString = function () {
|
|
356
|
-
return ObjectIdentifier__toString_impl_dtwsrd(this.
|
|
356
|
+
return ObjectIdentifier__toString_impl_dtwsrd(this.lad_1);
|
|
357
357
|
};
|
|
358
358
|
protoOf(ObjectIdentifier).hashCode = function () {
|
|
359
|
-
return ObjectIdentifier__hashCode_impl_7x941i(this.
|
|
359
|
+
return ObjectIdentifier__hashCode_impl_7x941i(this.lad_1);
|
|
360
360
|
};
|
|
361
361
|
protoOf(ObjectIdentifier).equals = function (other) {
|
|
362
|
-
return ObjectIdentifier__equals_impl_u5dbkq(this.
|
|
362
|
+
return ObjectIdentifier__equals_impl_u5dbkq(this.lad_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.oad_1 - $this.pad_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.nad_1 = array;
|
|
383
|
+
this.oad_1 = endIndex;
|
|
384
|
+
this.pad_1 = startIndex;
|
|
385
385
|
}
|
|
386
|
-
protoOf(ByteArrayInput).
|
|
386
|
+
protoOf(ByteArrayInput).qad = 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.nad_1.length + ', endIndex=' + this.oad_1 + ', position=' + this.pad_1 + ', available=' + _get_available__saq0tk(this) + ')';
|
|
391
391
|
};
|
|
392
|
-
protoOf(ByteArrayInput).
|
|
392
|
+
protoOf(ByteArrayInput).rad = function () {
|
|
393
393
|
ensureAvailableBytes(this, 1);
|
|
394
|
-
return this.
|
|
394
|
+
return this.nad_1[this.pad_1];
|
|
395
395
|
};
|
|
396
|
-
protoOf(ByteArrayInput).
|
|
396
|
+
protoOf(ByteArrayInput).o1j = function () {
|
|
397
397
|
ensureAvailableBytes(this, 1);
|
|
398
|
-
var _unary__edvuaz = this.
|
|
399
|
-
this.
|
|
400
|
-
return this.
|
|
398
|
+
var _unary__edvuaz = this.pad_1;
|
|
399
|
+
this.pad_1 = _unary__edvuaz + 1 | 0;
|
|
400
|
+
return this.nad_1[_unary__edvuaz];
|
|
401
401
|
};
|
|
402
|
-
protoOf(ByteArrayInput).
|
|
402
|
+
protoOf(ByteArrayInput).sad = 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.nad_1, this.pad_1, this.pad_1 + length | 0);
|
|
408
|
+
this.pad_1 = this.pad_1 + length | 0;
|
|
409
409
|
return this_0;
|
|
410
410
|
};
|
|
411
|
-
protoOf(ByteArrayInput).
|
|
411
|
+
protoOf(ByteArrayInput).tad = 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.nad_1, this.pad_1, this.pad_1 + length | 0);
|
|
417
|
+
this.pad_1 = this.pad_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.dad_1 + elementsToAppend | 0) <= $this.cad_1.length)
|
|
429
429
|
return Unit_instance;
|
|
430
|
-
$this.
|
|
430
|
+
$this.cad_1 = copyOf($this.cad_1, takeHighestOneBit($this.dad_1 + elementsToAppend | 0) << 1);
|
|
431
431
|
}
|
|
432
432
|
function ByteArrayOutput() {
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
433
|
+
this.cad_1 = new Int8Array(32);
|
|
434
|
+
this.dad_1 = 0;
|
|
435
435
|
}
|
|
436
436
|
protoOf(ByteArrayOutput).g1 = function () {
|
|
437
|
-
return this.
|
|
437
|
+
return this.dad_1;
|
|
438
438
|
};
|
|
439
|
-
protoOf(ByteArrayOutput).
|
|
440
|
-
return copyOf(this.
|
|
439
|
+
protoOf(ByteArrayOutput).ead = function () {
|
|
440
|
+
return copyOf(this.cad_1, this.dad_1);
|
|
441
441
|
};
|
|
442
|
-
protoOf(ByteArrayOutput).
|
|
442
|
+
protoOf(ByteArrayOutput).uad = function (byte) {
|
|
443
443
|
ensureCapacity(this, 1);
|
|
444
|
-
var tmp = this.
|
|
445
|
-
var _unary__edvuaz = this.
|
|
446
|
-
this.
|
|
444
|
+
var tmp = this.cad_1;
|
|
445
|
+
var _unary__edvuaz = this.dad_1;
|
|
446
|
+
this.dad_1 = _unary__edvuaz + 1 | 0;
|
|
447
447
|
tmp[_unary__edvuaz] = byte;
|
|
448
448
|
};
|
|
449
|
-
protoOf(ByteArrayOutput).
|
|
450
|
-
this.
|
|
449
|
+
protoOf(ByteArrayOutput).vad = function (byte) {
|
|
450
|
+
this.uad(toByte(byte));
|
|
451
451
|
};
|
|
452
|
-
protoOf(ByteArrayOutput).
|
|
452
|
+
protoOf(ByteArrayOutput).wad = 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.cad_1;
|
|
458
458
|
// Inline function 'kotlin.collections.copyInto' call
|
|
459
|
-
var destinationOffset = this.
|
|
459
|
+
var destinationOffset = this.dad_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.dad_1 = this.dad_1 + bytes.length | 0;
|
|
468
468
|
};
|
|
469
|
-
protoOf(ByteArrayOutput).
|
|
469
|
+
protoOf(ByteArrayOutput).xad = 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.dad_1);
|
|
473
|
+
var tmp0 = output.cad_1;
|
|
474
|
+
var tmp2 = this.cad_1;
|
|
475
|
+
var tmp4 = this.dad_1;
|
|
476
476
|
// Inline function 'kotlin.collections.copyInto' call
|
|
477
|
-
var endIndex = output.
|
|
477
|
+
var endIndex = output.dad_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.dad_1 = this.dad_1 + output.dad_1 | 0;
|
|
485
485
|
};
|
|
486
486
|
function getAndResetTagOverride($this) {
|
|
487
|
-
var tag = $this.
|
|
488
|
-
$this.
|
|
487
|
+
var tag = $this.iad_1;
|
|
488
|
+
$this.iad_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.fad_1 = der;
|
|
494
|
+
this.gad_1 = new DerInput(byteArrayInput);
|
|
495
|
+
this.had_1 = 0;
|
|
496
|
+
this.iad_1 = null;
|
|
497
497
|
}
|
|
498
|
-
protoOf(DerDecoder).
|
|
499
|
-
return this.
|
|
498
|
+
protoOf(DerDecoder).at = function () {
|
|
499
|
+
return this.fad_1.at();
|
|
500
500
|
};
|
|
501
|
-
protoOf(DerDecoder).
|
|
502
|
-
if (this.
|
|
501
|
+
protoOf(DerDecoder).vw = function (descriptor) {
|
|
502
|
+
if (this.gad_1.qad())
|
|
503
503
|
return -1;
|
|
504
|
-
var tag = this.
|
|
504
|
+
var tag = this.gad_1.zad();
|
|
505
505
|
$l$loop: while (true) {
|
|
506
|
-
var index = this.
|
|
507
|
-
this.
|
|
508
|
-
if (descriptor.
|
|
509
|
-
var tmp0 = this.
|
|
506
|
+
var index = this.had_1;
|
|
507
|
+
this.iad_1 = getElementContextSpecificTag(descriptor, index);
|
|
508
|
+
if (descriptor.uu(index)) {
|
|
509
|
+
var tmp0 = this.iad_1;
|
|
510
510
|
var tmp$ret$1;
|
|
511
511
|
$l$block: {
|
|
512
512
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -520,55 +520,55 @@
|
|
|
520
520
|
}
|
|
521
521
|
var requiredTag = tmp$ret$1;
|
|
522
522
|
if (!(tag === get_tag(requiredTag))) {
|
|
523
|
-
this.
|
|
523
|
+
this.had_1 = this.had_1 + 1 | 0;
|
|
524
524
|
continue $l$loop;
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
var _unary__edvuaz = this.
|
|
528
|
-
this.
|
|
527
|
+
var _unary__edvuaz = this.had_1;
|
|
528
|
+
this.had_1 = _unary__edvuaz + 1 | 0;
|
|
529
529
|
return _unary__edvuaz;
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
|
-
protoOf(DerDecoder).
|
|
533
|
-
return this.
|
|
532
|
+
protoOf(DerDecoder).qv = function () {
|
|
533
|
+
return this.gad_1.aae();
|
|
534
534
|
};
|
|
535
|
-
protoOf(DerDecoder).
|
|
536
|
-
return this.
|
|
535
|
+
protoOf(DerDecoder).rv = function () {
|
|
536
|
+
return this.gad_1.bae();
|
|
537
537
|
};
|
|
538
|
-
protoOf(DerDecoder).
|
|
539
|
-
return this.
|
|
538
|
+
protoOf(DerDecoder).tv = function () {
|
|
539
|
+
return this.gad_1.cae(getAndResetTagOverride(this)).jab();
|
|
540
540
|
};
|
|
541
|
-
protoOf(DerDecoder).
|
|
542
|
-
return this.
|
|
541
|
+
protoOf(DerDecoder).uv = function () {
|
|
542
|
+
return this.gad_1.cae(getAndResetTagOverride(this)).kab();
|
|
543
543
|
};
|
|
544
|
-
protoOf(DerDecoder).
|
|
545
|
-
return this.
|
|
544
|
+
protoOf(DerDecoder).vv = function () {
|
|
545
|
+
return this.gad_1.cae(getAndResetTagOverride(this)).lab();
|
|
546
546
|
};
|
|
547
|
-
protoOf(DerDecoder).
|
|
548
|
-
return this.
|
|
547
|
+
protoOf(DerDecoder).wv = function () {
|
|
548
|
+
return this.gad_1.cae(getAndResetTagOverride(this)).mab();
|
|
549
549
|
};
|
|
550
|
-
protoOf(DerDecoder).
|
|
551
|
-
var tmp0_subject = deserializer.
|
|
550
|
+
protoOf(DerDecoder).et = function (deserializer) {
|
|
551
|
+
var tmp0_subject = deserializer.ps();
|
|
552
552
|
var tmp;
|
|
553
|
-
if (equals(tmp0_subject, ByteArraySerializer().
|
|
554
|
-
var tmp_0 = this.
|
|
553
|
+
if (equals(tmp0_subject, ByteArraySerializer().ps())) {
|
|
554
|
+
var tmp_0 = this.gad_1.fae(getAndResetTagOverride(this));
|
|
555
555
|
tmp = !(tmp_0 == null) ? tmp_0 : THROW_CCE();
|
|
556
|
-
} else if (equals(tmp0_subject, Companion_instance.
|
|
557
|
-
var tmp_1 = this.
|
|
556
|
+
} else if (equals(tmp0_subject, Companion_instance.x1f().ps())) {
|
|
557
|
+
var tmp_1 = this.gad_1.eae(getAndResetTagOverride(this));
|
|
558
558
|
tmp = !(tmp_1 == null) ? tmp_1 : THROW_CCE();
|
|
559
|
-
} else if (equals(tmp0_subject, Companion_instance_0.
|
|
560
|
-
var tmp_2 = this.
|
|
559
|
+
} else if (equals(tmp0_subject, Companion_instance_0.x1f().ps())) {
|
|
560
|
+
var tmp_2 = this.gad_1.dae(getAndResetTagOverride(this));
|
|
561
561
|
tmp = !(new ObjectIdentifier(tmp_2) == null) ? new ObjectIdentifier(tmp_2) : THROW_CCE();
|
|
562
|
-
} else if (equals(tmp0_subject, Companion_getInstance().
|
|
563
|
-
var tmp_3 = this.
|
|
562
|
+
} else if (equals(tmp0_subject, Companion_getInstance().x1f().ps())) {
|
|
563
|
+
var tmp_3 = this.gad_1.cae(getAndResetTagOverride(this));
|
|
564
564
|
tmp = !(tmp_3 == null) ? tmp_3 : THROW_CCE();
|
|
565
565
|
} else {
|
|
566
|
-
tmp = deserializer.
|
|
566
|
+
tmp = deserializer.dt(this);
|
|
567
567
|
}
|
|
568
568
|
return tmp;
|
|
569
569
|
};
|
|
570
|
-
protoOf(DerDecoder).
|
|
571
|
-
var tmp0_subject = descriptor.
|
|
570
|
+
protoOf(DerDecoder).ew = function (descriptor) {
|
|
571
|
+
var tmp0_subject = descriptor.nu();
|
|
572
572
|
var tmp;
|
|
573
573
|
var tmp_0;
|
|
574
574
|
if (equals(tmp0_subject, CLASS_getInstance())) {
|
|
@@ -577,113 +577,113 @@
|
|
|
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.fad_1, this.gad_1.gae(getAndResetTagOverride(this)));
|
|
581
581
|
} else {
|
|
582
582
|
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
583
583
|
}
|
|
584
584
|
return tmp;
|
|
585
585
|
};
|
|
586
|
-
protoOf(DerDecoder).
|
|
586
|
+
protoOf(DerDecoder).cw = function (descriptor) {
|
|
587
587
|
return this;
|
|
588
588
|
};
|
|
589
|
-
protoOf(DerDecoder).
|
|
589
|
+
protoOf(DerDecoder).pw = function (descriptor, index) {
|
|
590
590
|
return this;
|
|
591
591
|
};
|
|
592
|
-
protoOf(DerDecoder).
|
|
592
|
+
protoOf(DerDecoder).bw = function (enumDescriptor) {
|
|
593
593
|
var message = 'Enum decoding is not supported';
|
|
594
594
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
595
595
|
};
|
|
596
|
-
protoOf(DerDecoder).
|
|
596
|
+
protoOf(DerDecoder).aw = function () {
|
|
597
597
|
var message = 'String decoding is not supported';
|
|
598
598
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
599
599
|
};
|
|
600
|
-
protoOf(DerDecoder).
|
|
600
|
+
protoOf(DerDecoder).zv = function () {
|
|
601
601
|
var message = 'Char decoding is not supported';
|
|
602
602
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
603
603
|
};
|
|
604
|
-
protoOf(DerDecoder).
|
|
604
|
+
protoOf(DerDecoder).sv = function () {
|
|
605
605
|
var message = 'Boolean decoding is not supported';
|
|
606
606
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
607
607
|
};
|
|
608
|
-
protoOf(DerDecoder).
|
|
608
|
+
protoOf(DerDecoder).yv = function () {
|
|
609
609
|
var message = 'Double decoding is not supported';
|
|
610
610
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
611
611
|
};
|
|
612
|
-
protoOf(DerDecoder).
|
|
612
|
+
protoOf(DerDecoder).xv = function () {
|
|
613
613
|
var message = 'Float decoding is not supported';
|
|
614
614
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
615
615
|
};
|
|
616
|
-
protoOf(DerDecoder).
|
|
616
|
+
protoOf(DerDecoder).pv = function () {
|
|
617
617
|
var message = 'should not be called';
|
|
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.bad_1;
|
|
622
|
+
$this.bad_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.yac_1 = der;
|
|
629
|
+
this.zac_1 = parentOutput;
|
|
630
|
+
this.aad_1 = new DerOutput(byteArrayOutput);
|
|
631
|
+
this.bad_1 = null;
|
|
632
632
|
}
|
|
633
|
-
protoOf(DerEncoder).
|
|
634
|
-
return this.
|
|
633
|
+
protoOf(DerEncoder).at = function () {
|
|
634
|
+
return this.yac_1.at();
|
|
635
635
|
};
|
|
636
|
-
protoOf(DerEncoder).
|
|
636
|
+
protoOf(DerEncoder).ay = function (descriptor, index) {
|
|
637
637
|
return false;
|
|
638
638
|
};
|
|
639
|
-
protoOf(DerEncoder).
|
|
640
|
-
this.
|
|
639
|
+
protoOf(DerEncoder).xw = function (descriptor, index) {
|
|
640
|
+
this.bad_1 = getElementContextSpecificTag(descriptor, index);
|
|
641
641
|
return true;
|
|
642
642
|
};
|
|
643
|
-
protoOf(DerEncoder).
|
|
643
|
+
protoOf(DerEncoder).yx = function () {
|
|
644
644
|
};
|
|
645
|
-
protoOf(DerEncoder).
|
|
646
|
-
return this.
|
|
645
|
+
protoOf(DerEncoder).zw = function () {
|
|
646
|
+
return this.aad_1.iae();
|
|
647
647
|
};
|
|
648
|
-
protoOf(DerEncoder).
|
|
649
|
-
return this.
|
|
648
|
+
protoOf(DerEncoder).bx = function (value) {
|
|
649
|
+
return this.aad_1.jae(getAndResetTagOverride_0(this), toBigInt(value));
|
|
650
650
|
};
|
|
651
|
-
protoOf(DerEncoder).
|
|
652
|
-
return this.
|
|
651
|
+
protoOf(DerEncoder).cx = function (value) {
|
|
652
|
+
return this.aad_1.jae(getAndResetTagOverride_0(this), toBigInt_0(value));
|
|
653
653
|
};
|
|
654
|
-
protoOf(DerEncoder).
|
|
655
|
-
return this.
|
|
654
|
+
protoOf(DerEncoder).dx = function (value) {
|
|
655
|
+
return this.aad_1.jae(getAndResetTagOverride_0(this), toBigInt_1(value));
|
|
656
656
|
};
|
|
657
|
-
protoOf(DerEncoder).
|
|
658
|
-
return this.
|
|
657
|
+
protoOf(DerEncoder).ex = function (value) {
|
|
658
|
+
return this.aad_1.jae(getAndResetTagOverride_0(this), toBigInt_2(value));
|
|
659
659
|
};
|
|
660
|
-
protoOf(DerEncoder).
|
|
661
|
-
var tmp0_subject = serializer.
|
|
660
|
+
protoOf(DerEncoder).bt = function (serializer, value) {
|
|
661
|
+
var tmp0_subject = serializer.ps();
|
|
662
662
|
var tmp;
|
|
663
|
-
if (equals(tmp0_subject, ByteArraySerializer().
|
|
663
|
+
if (equals(tmp0_subject, ByteArraySerializer().ps())) {
|
|
664
664
|
var tmp_0 = getAndResetTagOverride_0(this);
|
|
665
|
-
this.
|
|
665
|
+
this.aad_1.mae(tmp_0, (!(value == null) ? isByteArray(value) : false) ? value : THROW_CCE());
|
|
666
666
|
tmp = Unit_instance;
|
|
667
|
-
} else if (equals(tmp0_subject, Companion_instance.
|
|
667
|
+
} else if (equals(tmp0_subject, Companion_instance.x1f().ps())) {
|
|
668
668
|
var tmp_1 = getAndResetTagOverride_0(this);
|
|
669
|
-
this.
|
|
669
|
+
this.aad_1.lae(tmp_1, value instanceof BitArray ? value : THROW_CCE());
|
|
670
670
|
tmp = Unit_instance;
|
|
671
|
-
} else if (equals(tmp0_subject, Companion_instance_0.
|
|
671
|
+
} else if (equals(tmp0_subject, Companion_instance_0.x1f().ps())) {
|
|
672
672
|
var tmp_2 = getAndResetTagOverride_0(this);
|
|
673
|
-
this.
|
|
673
|
+
this.aad_1.kae(tmp_2, value instanceof ObjectIdentifier ? value.lad_1 : THROW_CCE());
|
|
674
674
|
tmp = Unit_instance;
|
|
675
|
-
} else if (equals(tmp0_subject, Companion_getInstance().
|
|
675
|
+
} else if (equals(tmp0_subject, Companion_getInstance().x1f().ps())) {
|
|
676
676
|
var tmp_3 = getAndResetTagOverride_0(this);
|
|
677
|
-
this.
|
|
677
|
+
this.aad_1.jae(tmp_3, value instanceof BigInt ? value : THROW_CCE());
|
|
678
678
|
tmp = Unit_instance;
|
|
679
679
|
} else {
|
|
680
|
-
serializer.
|
|
680
|
+
serializer.ct(this, value);
|
|
681
681
|
tmp = Unit_instance;
|
|
682
682
|
}
|
|
683
683
|
return tmp;
|
|
684
684
|
};
|
|
685
|
-
protoOf(DerEncoder).
|
|
686
|
-
var tmp0_subject = descriptor.
|
|
685
|
+
protoOf(DerEncoder).ew = function (descriptor) {
|
|
686
|
+
var tmp0_subject = descriptor.nu();
|
|
687
687
|
var tmp;
|
|
688
688
|
var tmp_0;
|
|
689
689
|
if (equals(tmp0_subject, CLASS_getInstance())) {
|
|
@@ -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.yac_1, new ByteArrayOutput(), this.aad_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
|
-
protoOf(DerEncoder).
|
|
702
|
-
var tmp0 = this.
|
|
701
|
+
protoOf(DerEncoder).fw = function (descriptor) {
|
|
702
|
+
var tmp0 = this.zac_1;
|
|
703
703
|
var tmp$ret$1;
|
|
704
704
|
$l$block: {
|
|
705
705
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -711,57 +711,57 @@
|
|
|
711
711
|
break $l$block;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
tmp$ret$1.
|
|
714
|
+
tmp$ret$1.nae(getAndResetTagOverride_0(this), this.aad_1);
|
|
715
715
|
};
|
|
716
|
-
protoOf(DerEncoder).
|
|
716
|
+
protoOf(DerEncoder).kx = function (descriptor) {
|
|
717
717
|
return this;
|
|
718
718
|
};
|
|
719
|
-
protoOf(DerEncoder).
|
|
719
|
+
protoOf(DerEncoder).oae = function (enumDescriptor, index) {
|
|
720
720
|
var message = 'Enum encoding is not supported';
|
|
721
721
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
722
722
|
};
|
|
723
|
-
protoOf(DerEncoder).
|
|
724
|
-
return this.
|
|
723
|
+
protoOf(DerEncoder).jx = function (enumDescriptor, index) {
|
|
724
|
+
return this.oae(enumDescriptor, index);
|
|
725
725
|
};
|
|
726
|
-
protoOf(DerEncoder).
|
|
726
|
+
protoOf(DerEncoder).ix = function (value) {
|
|
727
727
|
var message = 'String encoding is not supported';
|
|
728
728
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
729
729
|
};
|
|
730
|
-
protoOf(DerEncoder).
|
|
730
|
+
protoOf(DerEncoder).hx = function (value) {
|
|
731
731
|
var message = 'Char encoding is not supported';
|
|
732
732
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
733
733
|
};
|
|
734
|
-
protoOf(DerEncoder).
|
|
734
|
+
protoOf(DerEncoder).ax = function (value) {
|
|
735
735
|
var message = 'Boolean encoding is not supported';
|
|
736
736
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
737
737
|
};
|
|
738
|
-
protoOf(DerEncoder).
|
|
738
|
+
protoOf(DerEncoder).fx = function (value) {
|
|
739
739
|
var message = 'Float encoding is not supported';
|
|
740
740
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
741
741
|
};
|
|
742
|
-
protoOf(DerEncoder).
|
|
742
|
+
protoOf(DerEncoder).gx = function (value) {
|
|
743
743
|
var message = 'Double encoding is not supported';
|
|
744
744
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
745
745
|
};
|
|
746
|
-
protoOf(DerEncoder).
|
|
746
|
+
protoOf(DerEncoder).yw = function (value) {
|
|
747
747
|
var message = 'should not be called';
|
|
748
748
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
749
749
|
};
|
|
750
750
|
function DerInput(input) {
|
|
751
|
-
this.
|
|
751
|
+
this.yad_1 = input;
|
|
752
752
|
}
|
|
753
|
-
protoOf(DerInput).
|
|
754
|
-
return this.
|
|
753
|
+
protoOf(DerInput).qad = function () {
|
|
754
|
+
return this.yad_1.qad();
|
|
755
755
|
};
|
|
756
|
-
protoOf(DerInput).
|
|
757
|
-
return this.
|
|
756
|
+
protoOf(DerInput).zad = function () {
|
|
757
|
+
return this.yad_1.rad();
|
|
758
758
|
};
|
|
759
|
-
protoOf(DerInput).
|
|
760
|
-
return !(this.
|
|
759
|
+
protoOf(DerInput).aae = function () {
|
|
760
|
+
return !(this.zad() === 5);
|
|
761
761
|
};
|
|
762
|
-
protoOf(DerInput).
|
|
763
|
-
readRequestedTag(this.
|
|
764
|
-
var length = readLength(this.
|
|
762
|
+
protoOf(DerInput).bae = function () {
|
|
763
|
+
readRequestedTag(this.yad_1, 5);
|
|
764
|
+
var length = readLength(this.yad_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).cae = function (tagOverride) {
|
|
773
|
+
var tmp0 = this.yad_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.sad(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.sac_1.a1_1) {
|
|
787
787
|
case 0:
|
|
788
788
|
var length_0 = readLength(tmp0);
|
|
789
|
-
var bytes_0 = tmp0.
|
|
789
|
+
var bytes_0 = tmp0.sad(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.tad(length_1);
|
|
795
795
|
readRequestedTag(explicitInput, 2);
|
|
796
796
|
var length_2 = readLength(explicitInput);
|
|
797
|
-
var bytes_1 = explicitInput.
|
|
797
|
+
var bytes_1 = explicitInput.sad(length_2);
|
|
798
798
|
tmp = decodeToBigInt(bytes_1);
|
|
799
799
|
break;
|
|
800
800
|
default:
|
|
@@ -805,16 +805,16 @@
|
|
|
805
805
|
}
|
|
806
806
|
return tmp$ret$1;
|
|
807
807
|
};
|
|
808
|
-
protoOf(DerInput).
|
|
809
|
-
var tmp0 = this.
|
|
808
|
+
protoOf(DerInput).eae = function (tagOverride) {
|
|
809
|
+
var tmp0 = this.yad_1;
|
|
810
810
|
var tmp$ret$7;
|
|
811
811
|
$l$block: {
|
|
812
812
|
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
813
813
|
if (tagOverride == null) {
|
|
814
814
|
readRequestedTag(tmp0, 3);
|
|
815
815
|
var length = readLength(tmp0);
|
|
816
|
-
var unusedBits = tmp0.
|
|
817
|
-
var bytes = tmp0.
|
|
816
|
+
var unusedBits = tmp0.o1j();
|
|
817
|
+
var bytes = tmp0.sad(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.sac_1.a1_1) {
|
|
841
841
|
case 0:
|
|
842
842
|
var length_0 = readLength(tmp0);
|
|
843
|
-
var unusedBits_0 = tmp0.
|
|
844
|
-
var bytes_0 = tmp0.
|
|
843
|
+
var unusedBits_0 = tmp0.o1j();
|
|
844
|
+
var bytes_0 = tmp0.sad(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.tad(length_1);
|
|
869
869
|
readRequestedTag(explicitInput, 3);
|
|
870
870
|
var length_2 = readLength(explicitInput);
|
|
871
|
-
var unusedBits_1 = explicitInput.
|
|
872
|
-
var bytes_1 = explicitInput.
|
|
871
|
+
var unusedBits_1 = explicitInput.o1j();
|
|
872
|
+
var bytes_1 = explicitInput.sad(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).fae = function (tagOverride) {
|
|
903
|
+
var tmp0 = this.yad_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.sad(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.sac_1.a1_1) {
|
|
916
916
|
case 0:
|
|
917
917
|
var length_0 = readLength(tmp0);
|
|
918
|
-
tmp = tmp0.
|
|
918
|
+
tmp = tmp0.sad(length_0);
|
|
919
919
|
break;
|
|
920
920
|
case 1:
|
|
921
921
|
var length_1 = readLength(tmp0);
|
|
922
|
-
var explicitInput = tmp0.
|
|
922
|
+
var explicitInput = tmp0.tad(length_1);
|
|
923
923
|
readRequestedTag(explicitInput, 4);
|
|
924
924
|
var length_2 = readLength(explicitInput);
|
|
925
|
-
tmp = explicitInput.
|
|
925
|
+
tmp = explicitInput.sad(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).dae = function (tagOverride) {
|
|
936
|
+
var tmp0 = this.yad_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.tad(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.sac_1.a1_1) {
|
|
950
950
|
case 0:
|
|
951
951
|
var length_0 = readLength(tmp0);
|
|
952
|
-
var slice_0 = tmp0.
|
|
952
|
+
var slice_0 = tmp0.tad(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.tad(length_1);
|
|
958
958
|
readRequestedTag(explicitInput, 6);
|
|
959
959
|
var length_2 = readLength(explicitInput);
|
|
960
|
-
var slice_1 = explicitInput.
|
|
960
|
+
var slice_1 = explicitInput.tad(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.lad_1;
|
|
968
968
|
}
|
|
969
969
|
return tmp$ret$1;
|
|
970
970
|
};
|
|
971
|
-
protoOf(DerInput).
|
|
972
|
-
var tmp0 = this.
|
|
971
|
+
protoOf(DerInput).gae = function (tagOverride) {
|
|
972
|
+
var tmp0 = this.yad_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.tad(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.sac_1.a1_1) {
|
|
985
985
|
case 0:
|
|
986
986
|
var length_0 = readLength(tmp0);
|
|
987
|
-
tmp = tmp0.
|
|
987
|
+
tmp = tmp0.tad(length_0);
|
|
988
988
|
break;
|
|
989
989
|
case 1:
|
|
990
990
|
var length_1 = readLength(tmp0);
|
|
991
|
-
var explicitInput = tmp0.
|
|
991
|
+
var explicitInput = tmp0.tad(length_1);
|
|
992
992
|
readRequestedTag(explicitInput, 48);
|
|
993
993
|
var length_2 = readLength(explicitInput);
|
|
994
|
-
tmp = explicitInput.
|
|
994
|
+
tmp = explicitInput.tad(length_2);
|
|
995
995
|
break;
|
|
996
996
|
default:
|
|
997
997
|
noWhenBranchMatchedException();
|
|
@@ -1002,7 +1002,7 @@
|
|
|
1002
1002
|
return tmp$ret$1;
|
|
1003
1003
|
};
|
|
1004
1004
|
function readRequestedTag(_this__u8e3s4, tag) {
|
|
1005
|
-
var currentTag = _this__u8e3s4.
|
|
1005
|
+
var currentTag = _this__u8e3s4.o1j();
|
|
1006
1006
|
// Inline function 'kotlin.check' call
|
|
1007
1007
|
if (!(currentTag === tag)) {
|
|
1008
1008
|
var message = "Requested tag '" + DerTag_name(tag) + "', received: '" + DerTag_name(currentTag) + "'";
|
|
@@ -1010,7 +1010,7 @@
|
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
function readLength(_this__u8e3s4) {
|
|
1013
|
-
var first = _this__u8e3s4.
|
|
1013
|
+
var first = _this__u8e3s4.o1j();
|
|
1014
1014
|
if (first >= 0)
|
|
1015
1015
|
return first;
|
|
1016
1016
|
var numberOfLengthBytes = first & 127;
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
do {
|
|
1027
1027
|
var index = inductionVariable;
|
|
1028
1028
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1029
|
-
length = (length << 8) + (_this__u8e3s4.
|
|
1029
|
+
length = (length << 8) + (_this__u8e3s4.o1j() & 255) | 0;
|
|
1030
1030
|
}
|
|
1031
1031
|
while (inductionVariable < numberOfLengthBytes);
|
|
1032
1032
|
// Inline function 'kotlin.check' call
|
|
@@ -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.qad()) {
|
|
1051
1051
|
this_0.s(_Char___init__impl__6a9atx(46)).yc(readOidElement(_this__u8e3s4));
|
|
1052
1052
|
}
|
|
1053
1053
|
return this_0.toString();
|
|
@@ -1055,7 +1055,7 @@
|
|
|
1055
1055
|
function readOidElement(_this__u8e3s4) {
|
|
1056
1056
|
var element = 0;
|
|
1057
1057
|
do {
|
|
1058
|
-
var b = _this__u8e3s4.
|
|
1058
|
+
var b = _this__u8e3s4.o1j();
|
|
1059
1059
|
element = (element << 7) + (b & 127) | 0;
|
|
1060
1060
|
}
|
|
1061
1061
|
while ((b & 128) === 128);
|
|
@@ -1067,23 +1067,23 @@
|
|
|
1067
1067
|
return element;
|
|
1068
1068
|
}
|
|
1069
1069
|
function DerOutput(output) {
|
|
1070
|
-
this.
|
|
1070
|
+
this.hae_1 = output;
|
|
1071
1071
|
}
|
|
1072
|
-
protoOf(DerOutput).
|
|
1073
|
-
this.
|
|
1074
|
-
writeLength(this.
|
|
1072
|
+
protoOf(DerOutput).iae = function () {
|
|
1073
|
+
this.hae_1.uad(5);
|
|
1074
|
+
writeLength(this.hae_1, 0);
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf(DerOutput).
|
|
1077
|
-
var tmp0 = this.
|
|
1076
|
+
protoOf(DerOutput).jae = function (tagOverride, value) {
|
|
1077
|
+
var tmp0 = this.hae_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.uad(2);
|
|
1082
1082
|
writeBytes(tmp0, encodeToByteArray(value));
|
|
1083
1083
|
break $l$block;
|
|
1084
1084
|
}
|
|
1085
|
-
tmp0.
|
|
1086
|
-
switch (tagOverride.
|
|
1085
|
+
tmp0.uad(get_tag(tagOverride));
|
|
1086
|
+
switch (tagOverride.sac_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.uad(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).lae = function (tagOverride, bits) {
|
|
1107
|
+
var tmp0 = this.hae_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.uad(3);
|
|
1112
|
+
writeLength(tmp0, bits.wac_1.length + 1 | 0);
|
|
1113
|
+
tmp0.vad(bits.vac_1);
|
|
1114
|
+
tmp0.wad(bits.wac_1);
|
|
1115
1115
|
break $l$block;
|
|
1116
1116
|
}
|
|
1117
|
-
tmp0.
|
|
1118
|
-
switch (tagOverride.
|
|
1117
|
+
tmp0.uad(get_tag(tagOverride));
|
|
1118
|
+
switch (tagOverride.sac_1.a1_1) {
|
|
1119
1119
|
case 0:
|
|
1120
|
-
writeLength(tmp0, bits.
|
|
1121
|
-
tmp0.
|
|
1122
|
-
tmp0.
|
|
1120
|
+
writeLength(tmp0, bits.wac_1.length + 1 | 0);
|
|
1121
|
+
tmp0.vad(bits.vac_1);
|
|
1122
|
+
tmp0.wad(bits.wac_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.uad(3);
|
|
1131
|
+
writeLength(this_0, bits.wac_1.length + 1 | 0);
|
|
1132
|
+
this_0.vad(bits.vac_1);
|
|
1133
|
+
this_0.wad(bits.wac_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).mae = function (tagOverride, bytes) {
|
|
1143
|
+
var tmp0 = this.hae_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.uad(4);
|
|
1148
1148
|
writeBytes(tmp0, bytes);
|
|
1149
1149
|
break $l$block;
|
|
1150
1150
|
}
|
|
1151
|
-
tmp0.
|
|
1152
|
-
switch (tagOverride.
|
|
1151
|
+
tmp0.uad(get_tag(tagOverride));
|
|
1152
|
+
switch (tagOverride.sac_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.uad(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).kae = function (tagOverride, value) {
|
|
1173
|
+
var tmp0 = this.hae_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.uad(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.uad(get_tag(tagOverride));
|
|
1186
|
+
switch (tagOverride.sac_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.uad(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).nae = function (tagOverride, bytes) {
|
|
1219
|
+
var tmp0 = this.hae_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.uad(48);
|
|
1224
|
+
writeBytes_0(tmp0, bytes.hae_1);
|
|
1225
1225
|
break $l$block;
|
|
1226
1226
|
}
|
|
1227
|
-
tmp0.
|
|
1228
|
-
switch (tagOverride.
|
|
1227
|
+
tmp0.uad(get_tag(tagOverride));
|
|
1228
|
+
switch (tagOverride.sac_1.a1_1) {
|
|
1229
1229
|
case 0:
|
|
1230
|
-
writeBytes_0(tmp0, bytes.
|
|
1230
|
+
writeBytes_0(tmp0, bytes.hae_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.uad(48);
|
|
1239
|
+
writeBytes_0(this_0, bytes.hae_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.vad(length);
|
|
1251
1251
|
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1252
1252
|
var numberOfLengthBytes = 4 - (clz32(length) / 8 | 0) | 0;
|
|
1253
|
-
_this__u8e3s4.
|
|
1253
|
+
_this__u8e3s4.vad(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.vad(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.wad(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.xad(bytes);
|
|
1289
1289
|
}
|
|
1290
1290
|
function writeOidElement(_this__u8e3s4, element) {
|
|
1291
1291
|
if (element < 128)
|
|
1292
|
-
return _this__u8e3s4.
|
|
1292
|
+
return _this__u8e3s4.vad(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,17 +1300,17 @@
|
|
|
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.vad(value & 127 | 128);
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
1306
|
while (inductionVariable < l);
|
|
1307
|
-
_this__u8e3s4.
|
|
1307
|
+
_this__u8e3s4.vad(element & 127);
|
|
1308
1308
|
}
|
|
1309
1309
|
function writeOidElements$element($elements, index) {
|
|
1310
1310
|
return toInt($elements.h1(index));
|
|
1311
1311
|
}
|
|
1312
1312
|
function getElementContextSpecificTag(_this__u8e3s4, index) {
|
|
1313
|
-
var tmp0 = _this__u8e3s4.
|
|
1313
|
+
var tmp0 = _this__u8e3s4.su(index);
|
|
1314
1314
|
var tmp$ret$1;
|
|
1315
1315
|
$l$block: {
|
|
1316
1316
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -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.rac_1 < 31)) {
|
|
1338
|
+
var message = 'Context specific tag class must be less than 31, but was ' + annotation.rac_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.rac_1 | 128;
|
|
1345
1345
|
var tmp;
|
|
1346
|
-
switch (_this__u8e3s4.
|
|
1346
|
+
switch (_this__u8e3s4.sac_1.a1_1) {
|
|
1347
1347
|
case 0:
|
|
1348
1348
|
tmp = toByte(contextSpecificTag);
|
|
1349
1349
|
break;
|
|
@@ -1400,8 +1400,8 @@
|
|
|
1400
1400
|
return (_this__u8e3s4 & flag) === flag;
|
|
1401
1401
|
}
|
|
1402
1402
|
//region block: post-declaration
|
|
1403
|
-
protoOf($serializer).
|
|
1404
|
-
protoOf($serializer_0).
|
|
1403
|
+
protoOf($serializer).l14 = typeParametersSerializers;
|
|
1404
|
+
protoOf($serializer_0).l14 = typeParametersSerializers;
|
|
1405
1405
|
//endregion
|
|
1406
1406
|
//region block: init
|
|
1407
1407
|
Companion_instance = new Companion();
|