@solibo/solibo-sdk 1.1.67 → 1.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KmLogging-logging.mjs +99 -99
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/KotlinBigInteger-bignum.mjs +1114 -1114
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +4 -4
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +135 -135
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +240 -240
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs +224 -224
- package/ktor-ktor-client-logging.mjs +516 -516
- package/ktor-ktor-client-mock.mjs +39 -39
- package/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +20867 -20574
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +17 -0
- package/solibo-sdk-sdk.mjs +2493 -2493
|
@@ -36,38 +36,38 @@ protoOf(AbstractRandom).vl = function (array) {
|
|
|
36
36
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
37
37
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
38
38
|
if (!(array.length === 0)) {
|
|
39
|
-
this.
|
|
39
|
+
this.kpf(array);
|
|
40
40
|
}
|
|
41
41
|
return array;
|
|
42
42
|
};
|
|
43
43
|
function Default() {
|
|
44
44
|
Default_instance = this;
|
|
45
45
|
CryptographyRandom.call(this);
|
|
46
|
-
this.
|
|
46
|
+
this.lpf_1 = defaultCryptographyRandom();
|
|
47
47
|
}
|
|
48
48
|
protoOf(Default).rl = function (bitCount) {
|
|
49
|
-
return this.
|
|
49
|
+
return this.lpf_1.rl(bitCount);
|
|
50
50
|
};
|
|
51
51
|
protoOf(Default).hh = function () {
|
|
52
|
-
return this.
|
|
52
|
+
return this.lpf_1.hh();
|
|
53
53
|
};
|
|
54
54
|
protoOf(Default).sl = function () {
|
|
55
|
-
return this.
|
|
55
|
+
return this.lpf_1.sl();
|
|
56
56
|
};
|
|
57
57
|
protoOf(Default).tl = function (until) {
|
|
58
|
-
return this.
|
|
58
|
+
return this.lpf_1.tl(until);
|
|
59
59
|
};
|
|
60
60
|
protoOf(Default).ul = function (from, until) {
|
|
61
|
-
return this.
|
|
61
|
+
return this.lpf_1.ul(from, until);
|
|
62
62
|
};
|
|
63
63
|
protoOf(Default).vl = function (array) {
|
|
64
|
-
return this.
|
|
64
|
+
return this.lpf_1.vl(array);
|
|
65
65
|
};
|
|
66
66
|
protoOf(Default).xl = function (size) {
|
|
67
|
-
return this.
|
|
67
|
+
return this.lpf_1.xl(size);
|
|
68
68
|
};
|
|
69
69
|
protoOf(Default).wl = function (array, fromIndex, toIndex) {
|
|
70
|
-
return this.
|
|
70
|
+
return this.lpf_1.wl(array, fromIndex, toIndex);
|
|
71
71
|
};
|
|
72
72
|
var Default_instance;
|
|
73
73
|
function Default_getInstance() {
|
|
@@ -85,14 +85,14 @@ function defaultCryptographyRandom() {
|
|
|
85
85
|
function fillBytes($this, jsArray) {
|
|
86
86
|
var size = jsArray.length;
|
|
87
87
|
if (size <= 65536) {
|
|
88
|
-
$this.
|
|
88
|
+
$this.npf_1.getRandomValues(jsArray);
|
|
89
89
|
} else {
|
|
90
90
|
var filled = 0;
|
|
91
91
|
do {
|
|
92
92
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
93
93
|
var b = size - filled | 0;
|
|
94
94
|
var chunkSize = Math.min(65536, b);
|
|
95
|
-
$this.
|
|
95
|
+
$this.npf_1.getRandomValues(jsArray.subarray(filled, filled + chunkSize | 0));
|
|
96
96
|
filled = filled + chunkSize | 0;
|
|
97
97
|
}
|
|
98
98
|
while (filled < size);
|
|
@@ -101,10 +101,10 @@ function fillBytes($this, jsArray) {
|
|
|
101
101
|
function WebCryptoCryptographyRandom() {
|
|
102
102
|
WebCryptoCryptographyRandom_instance = this;
|
|
103
103
|
AbstractRandom.call(this);
|
|
104
|
-
this.
|
|
105
|
-
this.
|
|
104
|
+
this.mpf_1 = 65536;
|
|
105
|
+
this.npf_1 = getCrypto();
|
|
106
106
|
}
|
|
107
|
-
protoOf(WebCryptoCryptographyRandom).
|
|
107
|
+
protoOf(WebCryptoCryptographyRandom).kpf = function (array) {
|
|
108
108
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
109
109
|
// Inline function 'kotlin.js.asDynamic' call
|
|
110
110
|
fillBytes(this, array);
|
|
@@ -75,45 +75,45 @@ function AlgorithmIdentifierSerializer$descriptor$lambda($this$buildSerialDescri
|
|
|
75
75
|
function AlgorithmIdentifierSerializer() {
|
|
76
76
|
var tmp = this;
|
|
77
77
|
var tmp_0 = OPEN_getInstance();
|
|
78
|
-
tmp.
|
|
78
|
+
tmp.bpj_1 = buildSerialDescriptor('AlgorithmIdentifier', tmp_0, [], AlgorithmIdentifierSerializer$descriptor$lambda);
|
|
79
79
|
}
|
|
80
|
-
protoOf(AlgorithmIdentifierSerializer).
|
|
81
|
-
_this__u8e3s4.iy(this.
|
|
80
|
+
protoOf(AlgorithmIdentifierSerializer).epj = function (_this__u8e3s4, serializer, value) {
|
|
81
|
+
_this__u8e3s4.iy(this.bpj_1, 1, serializer, value);
|
|
82
82
|
};
|
|
83
|
-
protoOf(AlgorithmIdentifierSerializer).
|
|
84
|
-
return _this__u8e3s4.fx(this.
|
|
83
|
+
protoOf(AlgorithmIdentifierSerializer).fpj = function (_this__u8e3s4, serializer) {
|
|
84
|
+
return _this__u8e3s4.fx(this.bpj_1, 1, serializer);
|
|
85
85
|
};
|
|
86
86
|
protoOf(AlgorithmIdentifierSerializer).bt = function () {
|
|
87
|
-
return this.
|
|
87
|
+
return this.bpj_1;
|
|
88
88
|
};
|
|
89
|
-
protoOf(AlgorithmIdentifierSerializer).
|
|
89
|
+
protoOf(AlgorithmIdentifierSerializer).gpj = function (encoder, value) {
|
|
90
90
|
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
91
|
-
var descriptor = this.
|
|
91
|
+
var descriptor = this.bpj_1;
|
|
92
92
|
var composite = encoder.qw(descriptor);
|
|
93
|
-
composite.hy(this.
|
|
94
|
-
this.
|
|
93
|
+
composite.hy(this.bpj_1, 0, Companion_instance.b1h(), new ObjectIdentifier(value.apj()));
|
|
94
|
+
this.cpj(composite, value);
|
|
95
95
|
composite.rw(descriptor);
|
|
96
96
|
return Unit_instance;
|
|
97
97
|
};
|
|
98
98
|
protoOf(AlgorithmIdentifierSerializer).ot = function (encoder, value) {
|
|
99
|
-
return this.
|
|
99
|
+
return this.gpj(encoder, (!(value == null) ? isInterface(value, AlgorithmIdentifier) : false) ? value : THROW_CCE());
|
|
100
100
|
};
|
|
101
101
|
protoOf(AlgorithmIdentifierSerializer).pt = function (decoder) {
|
|
102
102
|
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
103
|
-
var descriptor = this.
|
|
103
|
+
var descriptor = this.bpj_1;
|
|
104
104
|
var composite = decoder.qw(descriptor);
|
|
105
105
|
// Inline function 'kotlin.check' call
|
|
106
|
-
if (!(composite.hx(this.
|
|
106
|
+
if (!(composite.hx(this.bpj_1) === 0)) {
|
|
107
107
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
108
108
|
}
|
|
109
|
-
var algorithm = composite.dx(this.
|
|
109
|
+
var algorithm = composite.dx(this.bpj_1, 0, Companion_instance.b1h()).wph_1;
|
|
110
110
|
// Inline function 'kotlin.check' call
|
|
111
|
-
if (!(composite.hx(this.
|
|
111
|
+
if (!(composite.hx(this.bpj_1) === 1)) {
|
|
112
112
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
113
113
|
}
|
|
114
|
-
var parameters = this.
|
|
114
|
+
var parameters = this.dpj(composite, algorithm);
|
|
115
115
|
// Inline function 'kotlin.check' call
|
|
116
|
-
if (!(composite.hx(this.
|
|
116
|
+
if (!(composite.hx(this.bpj_1) === -1)) {
|
|
117
117
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
118
118
|
}
|
|
119
119
|
var result = parameters;
|
|
@@ -130,9 +130,9 @@ function get_secp521r1(_this__u8e3s4) {
|
|
|
130
130
|
return _ObjectIdentifier___init__impl__7hutfr('1.3.132.0.35');
|
|
131
131
|
}
|
|
132
132
|
function EcKeyAlgorithmIdentifier(parameters) {
|
|
133
|
-
this.
|
|
133
|
+
this.hpj_1 = parameters;
|
|
134
134
|
}
|
|
135
|
-
protoOf(EcKeyAlgorithmIdentifier).
|
|
135
|
+
protoOf(EcKeyAlgorithmIdentifier).apj = function () {
|
|
136
136
|
return get_EC(Companion_instance);
|
|
137
137
|
};
|
|
138
138
|
function _EcParameters___init__impl__i4ww9z(namedCurve) {
|
|
@@ -154,10 +154,10 @@ function $serializer() {
|
|
|
154
154
|
$serializer_instance = this;
|
|
155
155
|
var tmp0_serialDesc = new InlineClassDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.EcParameters', this);
|
|
156
156
|
tmp0_serialDesc.d14('namedCurve', false);
|
|
157
|
-
this.
|
|
157
|
+
this.ipj_1 = tmp0_serialDesc;
|
|
158
158
|
}
|
|
159
|
-
protoOf($serializer).
|
|
160
|
-
var tmp0_inlineEncoder = encoder.wx(this.
|
|
159
|
+
protoOf($serializer).jpj = function (encoder, value) {
|
|
160
|
+
var tmp0_inlineEncoder = encoder.wx(this.ipj_1);
|
|
161
161
|
if (tmp0_inlineEncoder == null)
|
|
162
162
|
null;
|
|
163
163
|
else {
|
|
@@ -165,16 +165,16 @@ protoOf($serializer).jpi = function (encoder, value) {
|
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
protoOf($serializer).ot = function (encoder, value) {
|
|
168
|
-
return this.
|
|
168
|
+
return this.jpj(encoder, value instanceof EcParameters ? value.kpj_1 : THROW_CCE());
|
|
169
169
|
};
|
|
170
|
-
protoOf($serializer).
|
|
171
|
-
return _EcParameters___init__impl__i4ww9z(decoder.ow(this.
|
|
170
|
+
protoOf($serializer).lpj = function (decoder) {
|
|
171
|
+
return _EcParameters___init__impl__i4ww9z(decoder.ow(this.ipj_1).qt($serializer_getInstance()).wph_1);
|
|
172
172
|
};
|
|
173
173
|
protoOf($serializer).pt = function (decoder) {
|
|
174
|
-
return new EcParameters(this.
|
|
174
|
+
return new EcParameters(this.lpj(decoder));
|
|
175
175
|
};
|
|
176
176
|
protoOf($serializer).bt = function () {
|
|
177
|
-
return this.
|
|
177
|
+
return this.ipj_1;
|
|
178
178
|
};
|
|
179
179
|
protoOf($serializer).w14 = function () {
|
|
180
180
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -197,21 +197,21 @@ function EcParameters__hashCode_impl_prn1m($this) {
|
|
|
197
197
|
function EcParameters__equals_impl_5tm4e2($this, other) {
|
|
198
198
|
if (!(other instanceof EcParameters))
|
|
199
199
|
return false;
|
|
200
|
-
if (!($this === (other instanceof EcParameters ? other.
|
|
200
|
+
if (!($this === (other instanceof EcParameters ? other.kpj_1 : THROW_CCE())))
|
|
201
201
|
return false;
|
|
202
202
|
return true;
|
|
203
203
|
}
|
|
204
204
|
function EcParameters(namedCurve) {
|
|
205
|
-
this.
|
|
205
|
+
this.kpj_1 = namedCurve;
|
|
206
206
|
}
|
|
207
207
|
protoOf(EcParameters).toString = function () {
|
|
208
|
-
return EcParameters__toString_impl_mgxjuh(this.
|
|
208
|
+
return EcParameters__toString_impl_mgxjuh(this.kpj_1);
|
|
209
209
|
};
|
|
210
210
|
protoOf(EcParameters).hashCode = function () {
|
|
211
|
-
return EcParameters__hashCode_impl_prn1m(this.
|
|
211
|
+
return EcParameters__hashCode_impl_prn1m(this.kpj_1);
|
|
212
212
|
};
|
|
213
213
|
protoOf(EcParameters).equals = function (other) {
|
|
214
|
-
return EcParameters__equals_impl_5tm4e2(this.
|
|
214
|
+
return EcParameters__equals_impl_5tm4e2(this.kpj_1, other);
|
|
215
215
|
};
|
|
216
216
|
function Companion_0() {
|
|
217
217
|
}
|
|
@@ -231,35 +231,35 @@ function $serializer_0() {
|
|
|
231
231
|
tmp0_serialDesc.n13(new ContextSpecificTag(0, TagType_EXPLICIT_getInstance()));
|
|
232
232
|
tmp0_serialDesc.d14('publicKey', true);
|
|
233
233
|
tmp0_serialDesc.n13(new ContextSpecificTag(1, TagType_EXPLICIT_getInstance()));
|
|
234
|
-
this.
|
|
234
|
+
this.mpj_1 = tmp0_serialDesc;
|
|
235
235
|
}
|
|
236
|
-
protoOf($serializer_0).
|
|
237
|
-
var tmp0_desc = this.
|
|
236
|
+
protoOf($serializer_0).npj = function (encoder, value) {
|
|
237
|
+
var tmp0_desc = this.mpj_1;
|
|
238
238
|
var tmp1_output = encoder.qw(tmp0_desc);
|
|
239
|
-
tmp1_output.ay(tmp0_desc, 0, value.
|
|
240
|
-
tmp1_output.hy(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.
|
|
239
|
+
tmp1_output.ay(tmp0_desc, 0, value.opj_1);
|
|
240
|
+
tmp1_output.hy(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.ppj_1);
|
|
241
241
|
var tmp;
|
|
242
242
|
if (tmp1_output.my(tmp0_desc, 2)) {
|
|
243
243
|
tmp = true;
|
|
244
244
|
} else {
|
|
245
|
-
var tmp_0 = value.
|
|
245
|
+
var tmp_0 = value.qpj_1;
|
|
246
246
|
tmp = !((tmp_0 == null ? null : new EcParameters(tmp_0)) == null);
|
|
247
247
|
}
|
|
248
248
|
if (tmp) {
|
|
249
249
|
var tmp_1 = $serializer_getInstance_1();
|
|
250
|
-
var tmp_2 = value.
|
|
250
|
+
var tmp_2 = value.qpj_1;
|
|
251
251
|
tmp1_output.iy(tmp0_desc, 2, tmp_1, tmp_2 == null ? null : new EcParameters(tmp_2));
|
|
252
252
|
}
|
|
253
|
-
if (tmp1_output.my(tmp0_desc, 3) ? true : !(value.
|
|
254
|
-
tmp1_output.iy(tmp0_desc, 3, $serializer_getInstance_0(), value.
|
|
253
|
+
if (tmp1_output.my(tmp0_desc, 3) ? true : !(value.rpj_1 == null)) {
|
|
254
|
+
tmp1_output.iy(tmp0_desc, 3, $serializer_getInstance_0(), value.rpj_1);
|
|
255
255
|
}
|
|
256
256
|
tmp1_output.rw(tmp0_desc);
|
|
257
257
|
};
|
|
258
258
|
protoOf($serializer_0).ot = function (encoder, value) {
|
|
259
|
-
return this.
|
|
259
|
+
return this.npj(encoder, value instanceof EcPrivateKey ? value : THROW_CCE());
|
|
260
260
|
};
|
|
261
261
|
protoOf($serializer_0).pt = function (decoder) {
|
|
262
|
-
var tmp0_desc = this.
|
|
262
|
+
var tmp0_desc = this.mpj_1;
|
|
263
263
|
var tmp1_flag = true;
|
|
264
264
|
var tmp2_index = 0;
|
|
265
265
|
var tmp3_bitMask0 = 0;
|
|
@@ -276,7 +276,7 @@ protoOf($serializer_0).pt = function (decoder) {
|
|
|
276
276
|
var tmp = $serializer_getInstance_1();
|
|
277
277
|
var tmp_0 = tmp6_local2;
|
|
278
278
|
var tmp_1 = tmp8_input.ex(tmp0_desc, 2, tmp, tmp_0 == null ? null : new EcParameters(tmp_0));
|
|
279
|
-
tmp6_local2 = tmp_1 == null ? null : tmp_1.
|
|
279
|
+
tmp6_local2 = tmp_1 == null ? null : tmp_1.kpj_1;
|
|
280
280
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
281
281
|
tmp7_local3 = tmp8_input.ex(tmp0_desc, 3, $serializer_getInstance_0(), tmp7_local3);
|
|
282
282
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
@@ -299,7 +299,7 @@ protoOf($serializer_0).pt = function (decoder) {
|
|
|
299
299
|
var tmp_2 = $serializer_getInstance_1();
|
|
300
300
|
var tmp_3 = tmp6_local2;
|
|
301
301
|
var tmp_4 = tmp8_input.ex(tmp0_desc, 2, tmp_2, tmp_3 == null ? null : new EcParameters(tmp_3));
|
|
302
|
-
tmp6_local2 = tmp_4 == null ? null : tmp_4.
|
|
302
|
+
tmp6_local2 = tmp_4 == null ? null : tmp_4.kpj_1;
|
|
303
303
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
304
304
|
break;
|
|
305
305
|
case 3:
|
|
@@ -314,7 +314,7 @@ protoOf($serializer_0).pt = function (decoder) {
|
|
|
314
314
|
return EcPrivateKey_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
315
315
|
};
|
|
316
316
|
protoOf($serializer_0).bt = function () {
|
|
317
|
-
return this.
|
|
317
|
+
return this.mpj_1;
|
|
318
318
|
};
|
|
319
319
|
protoOf($serializer_0).w14 = function () {
|
|
320
320
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -330,18 +330,18 @@ function $serializer_getInstance_2() {
|
|
|
330
330
|
}
|
|
331
331
|
function EcPrivateKey_init_$Init$(seen0, version, privateKey, parameters, publicKey, serializationConstructorMarker, $this) {
|
|
332
332
|
if (!(3 === (3 & seen0))) {
|
|
333
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
333
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().mpj_1);
|
|
334
334
|
}
|
|
335
|
-
$this.
|
|
336
|
-
$this.
|
|
335
|
+
$this.opj_1 = version;
|
|
336
|
+
$this.ppj_1 = privateKey;
|
|
337
337
|
if (0 === (seen0 & 4))
|
|
338
|
-
$this.
|
|
338
|
+
$this.qpj_1 = null;
|
|
339
339
|
else
|
|
340
|
-
$this.
|
|
340
|
+
$this.qpj_1 = parameters;
|
|
341
341
|
if (0 === (seen0 & 8))
|
|
342
|
-
$this.
|
|
342
|
+
$this.rpj_1 = null;
|
|
343
343
|
else
|
|
344
|
-
$this.
|
|
344
|
+
$this.rpj_1 = publicKey;
|
|
345
345
|
return $this;
|
|
346
346
|
}
|
|
347
347
|
function EcPrivateKey_init_$Create$(seen0, version, privateKey, parameters, publicKey, serializationConstructorMarker) {
|
|
@@ -350,10 +350,10 @@ function EcPrivateKey_init_$Create$(seen0, version, privateKey, parameters, publ
|
|
|
350
350
|
function EcPrivateKey(version, privateKey, parameters, publicKey) {
|
|
351
351
|
parameters = parameters === VOID ? null : parameters;
|
|
352
352
|
publicKey = publicKey === VOID ? null : publicKey;
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
356
|
-
this.
|
|
353
|
+
this.opj_1 = version;
|
|
354
|
+
this.ppj_1 = privateKey;
|
|
355
|
+
this.qpj_1 = parameters;
|
|
356
|
+
this.rpj_1 = publicKey;
|
|
357
357
|
}
|
|
358
358
|
function get_EC(_this__u8e3s4) {
|
|
359
359
|
return _ObjectIdentifier___init__impl__7hutfr('1.2.840.10045.2.1');
|
|
@@ -361,52 +361,52 @@ function get_EC(_this__u8e3s4) {
|
|
|
361
361
|
function KeyAlgorithmIdentifier() {
|
|
362
362
|
}
|
|
363
363
|
function UnknownKeyAlgorithmIdentifier(algorithm) {
|
|
364
|
-
this.
|
|
364
|
+
this.spj_1 = algorithm;
|
|
365
365
|
}
|
|
366
|
-
protoOf(UnknownKeyAlgorithmIdentifier).
|
|
367
|
-
return this.
|
|
366
|
+
protoOf(UnknownKeyAlgorithmIdentifier).apj = function () {
|
|
367
|
+
return this.spj_1;
|
|
368
368
|
};
|
|
369
|
-
protoOf(UnknownKeyAlgorithmIdentifier).
|
|
369
|
+
protoOf(UnknownKeyAlgorithmIdentifier).tpj = function () {
|
|
370
370
|
return null;
|
|
371
371
|
};
|
|
372
372
|
function KeyAlgorithmIdentifierSerializer() {
|
|
373
373
|
KeyAlgorithmIdentifierSerializer_instance = this;
|
|
374
374
|
AlgorithmIdentifierSerializer.call(this);
|
|
375
375
|
}
|
|
376
|
-
protoOf(KeyAlgorithmIdentifierSerializer).
|
|
376
|
+
protoOf(KeyAlgorithmIdentifierSerializer).vpj = function (_this__u8e3s4, value) {
|
|
377
377
|
var tmp;
|
|
378
378
|
if (value instanceof RsaKeyAlgorithmIdentifier) {
|
|
379
|
-
this.
|
|
379
|
+
this.epj(_this__u8e3s4, NothingSerializer(), RsaKeyAlgorithmIdentifier_instance.tpj());
|
|
380
380
|
tmp = Unit_instance;
|
|
381
381
|
} else {
|
|
382
382
|
if (value instanceof EcKeyAlgorithmIdentifier) {
|
|
383
383
|
var tmp_0 = Companion_instance_0.b1h();
|
|
384
|
-
var tmp_1 = value.
|
|
385
|
-
this.
|
|
384
|
+
var tmp_1 = value.hpj_1;
|
|
385
|
+
this.epj(_this__u8e3s4, tmp_0, tmp_1 == null ? null : new EcParameters(tmp_1));
|
|
386
386
|
tmp = Unit_instance;
|
|
387
387
|
} else {
|
|
388
388
|
if (value instanceof UnknownKeyAlgorithmIdentifier) {
|
|
389
|
-
this.
|
|
389
|
+
this.epj(_this__u8e3s4, NothingSerializer(), value.tpj());
|
|
390
390
|
tmp = Unit_instance;
|
|
391
391
|
} else {
|
|
392
|
-
this.
|
|
392
|
+
this.epj(_this__u8e3s4, NothingSerializer(), null);
|
|
393
393
|
tmp = Unit_instance;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
return tmp;
|
|
398
398
|
};
|
|
399
|
-
protoOf(KeyAlgorithmIdentifierSerializer).
|
|
400
|
-
return this.
|
|
399
|
+
protoOf(KeyAlgorithmIdentifierSerializer).cpj = function (_this__u8e3s4, value) {
|
|
400
|
+
return this.vpj(_this__u8e3s4, isInterface(value, KeyAlgorithmIdentifier) ? value : THROW_CCE());
|
|
401
401
|
};
|
|
402
|
-
protoOf(KeyAlgorithmIdentifierSerializer).
|
|
402
|
+
protoOf(KeyAlgorithmIdentifierSerializer).dpj = function (_this__u8e3s4, algorithm) {
|
|
403
403
|
var tmp;
|
|
404
404
|
if (algorithm === get_RSA(Companion_instance)) {
|
|
405
|
-
this.
|
|
405
|
+
this.fpj(_this__u8e3s4, NothingSerializer());
|
|
406
406
|
tmp = RsaKeyAlgorithmIdentifier_instance;
|
|
407
407
|
} else if (algorithm === get_EC(Companion_instance)) {
|
|
408
|
-
var tmp_0 = this.
|
|
409
|
-
tmp = new EcKeyAlgorithmIdentifier(tmp_0 == null ? null : tmp_0.
|
|
408
|
+
var tmp_0 = this.fpj(_this__u8e3s4, Companion_instance_0.b1h());
|
|
409
|
+
tmp = new EcKeyAlgorithmIdentifier(tmp_0 == null ? null : tmp_0.kpj_1);
|
|
410
410
|
} else {
|
|
411
411
|
tmp = new UnknownKeyAlgorithmIdentifier(algorithm);
|
|
412
412
|
}
|
|
@@ -434,7 +434,7 @@ function Companion_1() {
|
|
|
434
434
|
// Inline function 'kotlin.arrayOf' call
|
|
435
435
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
436
436
|
// Inline function 'kotlin.js.asDynamic' call
|
|
437
|
-
tmp.
|
|
437
|
+
tmp.wpj_1 = [null, lazy(tmp_0, PrivateKeyInfo$Companion$$childSerializers$_anonymous__z2jngg), null];
|
|
438
438
|
}
|
|
439
439
|
protoOf(Companion_1).b1h = function () {
|
|
440
440
|
return $serializer_getInstance_3();
|
|
@@ -451,22 +451,22 @@ function $serializer_1() {
|
|
|
451
451
|
tmp0_serialDesc.d14('version', false);
|
|
452
452
|
tmp0_serialDesc.d14('privateKeyAlgorithm', false);
|
|
453
453
|
tmp0_serialDesc.d14('privateKey', false);
|
|
454
|
-
this.
|
|
454
|
+
this.xpj_1 = tmp0_serialDesc;
|
|
455
455
|
}
|
|
456
|
-
protoOf($serializer_1).
|
|
457
|
-
var tmp0_desc = this.
|
|
456
|
+
protoOf($serializer_1).ypj = function (encoder, value) {
|
|
457
|
+
var tmp0_desc = this.xpj_1;
|
|
458
458
|
var tmp1_output = encoder.qw(tmp0_desc);
|
|
459
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
460
|
-
tmp1_output.ay(tmp0_desc, 0, value.
|
|
461
|
-
tmp1_output.hy(tmp0_desc, 1, tmp2_cached[1].n1(), value.
|
|
462
|
-
tmp1_output.hy(tmp0_desc, 2, ByteArraySerializer_getInstance(), value.
|
|
459
|
+
var tmp2_cached = Companion_getInstance_1().wpj_1;
|
|
460
|
+
tmp1_output.ay(tmp0_desc, 0, value.zpj_1);
|
|
461
|
+
tmp1_output.hy(tmp0_desc, 1, tmp2_cached[1].n1(), value.apk_1);
|
|
462
|
+
tmp1_output.hy(tmp0_desc, 2, ByteArraySerializer_getInstance(), value.bpk_1);
|
|
463
463
|
tmp1_output.rw(tmp0_desc);
|
|
464
464
|
};
|
|
465
465
|
protoOf($serializer_1).ot = function (encoder, value) {
|
|
466
|
-
return this.
|
|
466
|
+
return this.ypj(encoder, value instanceof PrivateKeyInfo ? value : THROW_CCE());
|
|
467
467
|
};
|
|
468
468
|
protoOf($serializer_1).pt = function (decoder) {
|
|
469
|
-
var tmp0_desc = this.
|
|
469
|
+
var tmp0_desc = this.xpj_1;
|
|
470
470
|
var tmp1_flag = true;
|
|
471
471
|
var tmp2_index = 0;
|
|
472
472
|
var tmp3_bitMask0 = 0;
|
|
@@ -474,7 +474,7 @@ protoOf($serializer_1).pt = function (decoder) {
|
|
|
474
474
|
var tmp5_local1 = null;
|
|
475
475
|
var tmp6_local2 = null;
|
|
476
476
|
var tmp7_input = decoder.qw(tmp0_desc);
|
|
477
|
-
var tmp8_cached = Companion_getInstance_1().
|
|
477
|
+
var tmp8_cached = Companion_getInstance_1().wpj_1;
|
|
478
478
|
if (tmp7_input.gx()) {
|
|
479
479
|
tmp4_local0 = tmp7_input.vw(tmp0_desc, 0);
|
|
480
480
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -509,10 +509,10 @@ protoOf($serializer_1).pt = function (decoder) {
|
|
|
509
509
|
return PrivateKeyInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
510
510
|
};
|
|
511
511
|
protoOf($serializer_1).bt = function () {
|
|
512
|
-
return this.
|
|
512
|
+
return this.xpj_1;
|
|
513
513
|
};
|
|
514
514
|
protoOf($serializer_1).w14 = function () {
|
|
515
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
515
|
+
var tmp0_cached = Companion_getInstance_1().wpj_1;
|
|
516
516
|
// Inline function 'kotlin.arrayOf' call
|
|
517
517
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
518
518
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -526,11 +526,11 @@ function $serializer_getInstance_3() {
|
|
|
526
526
|
}
|
|
527
527
|
function PrivateKeyInfo_init_$Init$(seen0, version, privateKeyAlgorithm, privateKey, serializationConstructorMarker, $this) {
|
|
528
528
|
if (!(7 === (7 & seen0))) {
|
|
529
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().
|
|
529
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().xpj_1);
|
|
530
530
|
}
|
|
531
|
-
$this.
|
|
532
|
-
$this.
|
|
533
|
-
$this.
|
|
531
|
+
$this.zpj_1 = version;
|
|
532
|
+
$this.apk_1 = privateKeyAlgorithm;
|
|
533
|
+
$this.bpk_1 = privateKey;
|
|
534
534
|
return $this;
|
|
535
535
|
}
|
|
536
536
|
function PrivateKeyInfo_init_$Create$(seen0, version, privateKeyAlgorithm, privateKey, serializationConstructorMarker) {
|
|
@@ -538,9 +538,9 @@ function PrivateKeyInfo_init_$Create$(seen0, version, privateKeyAlgorithm, priva
|
|
|
538
538
|
}
|
|
539
539
|
function PrivateKeyInfo(version, privateKeyAlgorithm, privateKey) {
|
|
540
540
|
Companion_getInstance_1();
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
541
|
+
this.zpj_1 = version;
|
|
542
|
+
this.apk_1 = privateKeyAlgorithm;
|
|
543
|
+
this.bpk_1 = privateKey;
|
|
544
544
|
}
|
|
545
545
|
function SubjectPublicKeyInfo$Companion$$childSerializers$_anonymous__ezpjw2() {
|
|
546
546
|
var tmp = getKClass(KeyAlgorithmIdentifier);
|
|
@@ -558,7 +558,7 @@ function Companion_2() {
|
|
|
558
558
|
// Inline function 'kotlin.arrayOf' call
|
|
559
559
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
560
560
|
// Inline function 'kotlin.js.asDynamic' call
|
|
561
|
-
tmp.
|
|
561
|
+
tmp.cpk_1 = [lazy(tmp_0, SubjectPublicKeyInfo$Companion$$childSerializers$_anonymous__ezpjw2), null];
|
|
562
562
|
}
|
|
563
563
|
protoOf(Companion_2).b1h = function () {
|
|
564
564
|
return $serializer_getInstance_4();
|
|
@@ -574,28 +574,28 @@ function $serializer_2() {
|
|
|
574
574
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.SubjectPublicKeyInfo', this, 2);
|
|
575
575
|
tmp0_serialDesc.d14('algorithm', false);
|
|
576
576
|
tmp0_serialDesc.d14('subjectPublicKey', false);
|
|
577
|
-
this.
|
|
577
|
+
this.dpk_1 = tmp0_serialDesc;
|
|
578
578
|
}
|
|
579
|
-
protoOf($serializer_2).
|
|
580
|
-
var tmp0_desc = this.
|
|
579
|
+
protoOf($serializer_2).epk = function (encoder, value) {
|
|
580
|
+
var tmp0_desc = this.dpk_1;
|
|
581
581
|
var tmp1_output = encoder.qw(tmp0_desc);
|
|
582
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
583
|
-
tmp1_output.hy(tmp0_desc, 0, tmp2_cached[0].n1(), value.
|
|
584
|
-
tmp1_output.hy(tmp0_desc, 1, $serializer_getInstance_0(), value.
|
|
582
|
+
var tmp2_cached = Companion_getInstance_2().cpk_1;
|
|
583
|
+
tmp1_output.hy(tmp0_desc, 0, tmp2_cached[0].n1(), value.fpk_1);
|
|
584
|
+
tmp1_output.hy(tmp0_desc, 1, $serializer_getInstance_0(), value.gpk_1);
|
|
585
585
|
tmp1_output.rw(tmp0_desc);
|
|
586
586
|
};
|
|
587
587
|
protoOf($serializer_2).ot = function (encoder, value) {
|
|
588
|
-
return this.
|
|
588
|
+
return this.epk(encoder, value instanceof SubjectPublicKeyInfo ? value : THROW_CCE());
|
|
589
589
|
};
|
|
590
590
|
protoOf($serializer_2).pt = function (decoder) {
|
|
591
|
-
var tmp0_desc = this.
|
|
591
|
+
var tmp0_desc = this.dpk_1;
|
|
592
592
|
var tmp1_flag = true;
|
|
593
593
|
var tmp2_index = 0;
|
|
594
594
|
var tmp3_bitMask0 = 0;
|
|
595
595
|
var tmp4_local0 = null;
|
|
596
596
|
var tmp5_local1 = null;
|
|
597
597
|
var tmp6_input = decoder.qw(tmp0_desc);
|
|
598
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
598
|
+
var tmp7_cached = Companion_getInstance_2().cpk_1;
|
|
599
599
|
if (tmp6_input.gx()) {
|
|
600
600
|
tmp4_local0 = tmp6_input.cx(tmp0_desc, 0, tmp7_cached[0].n1(), tmp4_local0);
|
|
601
601
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -624,13 +624,13 @@ protoOf($serializer_2).pt = function (decoder) {
|
|
|
624
624
|
return SubjectPublicKeyInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
625
625
|
};
|
|
626
626
|
protoOf($serializer_2).bt = function () {
|
|
627
|
-
return this.
|
|
627
|
+
return this.dpk_1;
|
|
628
628
|
};
|
|
629
629
|
protoOf($serializer_2).w14 = function () {
|
|
630
630
|
// Inline function 'kotlin.arrayOf' call
|
|
631
631
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
632
632
|
// Inline function 'kotlin.js.asDynamic' call
|
|
633
|
-
return [Companion_getInstance_2().
|
|
633
|
+
return [Companion_getInstance_2().cpk_1[0].n1(), $serializer_getInstance_0()];
|
|
634
634
|
};
|
|
635
635
|
var $serializer_instance_2;
|
|
636
636
|
function $serializer_getInstance_4() {
|
|
@@ -640,10 +640,10 @@ function $serializer_getInstance_4() {
|
|
|
640
640
|
}
|
|
641
641
|
function SubjectPublicKeyInfo_init_$Init$(seen0, algorithm, subjectPublicKey, serializationConstructorMarker, $this) {
|
|
642
642
|
if (!(3 === (3 & seen0))) {
|
|
643
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().
|
|
643
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().dpk_1);
|
|
644
644
|
}
|
|
645
|
-
$this.
|
|
646
|
-
$this.
|
|
645
|
+
$this.fpk_1 = algorithm;
|
|
646
|
+
$this.gpk_1 = subjectPublicKey;
|
|
647
647
|
return $this;
|
|
648
648
|
}
|
|
649
649
|
function SubjectPublicKeyInfo_init_$Create$(seen0, algorithm, subjectPublicKey, serializationConstructorMarker) {
|
|
@@ -651,15 +651,15 @@ function SubjectPublicKeyInfo_init_$Create$(seen0, algorithm, subjectPublicKey,
|
|
|
651
651
|
}
|
|
652
652
|
function SubjectPublicKeyInfo(algorithm, subjectPublicKey) {
|
|
653
653
|
Companion_getInstance_2();
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
654
|
+
this.fpk_1 = algorithm;
|
|
655
|
+
this.gpk_1 = subjectPublicKey;
|
|
656
656
|
}
|
|
657
657
|
function RsaKeyAlgorithmIdentifier() {
|
|
658
658
|
}
|
|
659
|
-
protoOf(RsaKeyAlgorithmIdentifier).
|
|
659
|
+
protoOf(RsaKeyAlgorithmIdentifier).apj = function () {
|
|
660
660
|
return get_RSA(Companion_instance);
|
|
661
661
|
};
|
|
662
|
-
protoOf(RsaKeyAlgorithmIdentifier).
|
|
662
|
+
protoOf(RsaKeyAlgorithmIdentifier).tpj = function () {
|
|
663
663
|
return null;
|
|
664
664
|
};
|
|
665
665
|
var RsaKeyAlgorithmIdentifier_instance;
|