@solibo/solibo-sdk 1.0.34 → 1.0.35
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 +108 -108
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1426 -1426
- package/KotlinBigInteger-bignum.js +1115 -1115
- package/MultiplatformSettings-multiplatform-settings.js +17 -17
- package/Stately-stately-concurrency.js +5 -5
- package/cryptography-kotlin-cryptography-bigint.js +28 -28
- package/cryptography-kotlin-cryptography-core.js +47 -47
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +136 -136
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +118 -118
- package/cryptography-kotlin-cryptography-serialization-asn1.js +256 -256
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -15
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/kotlin-kotlin-stdlib.js +20 -20
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +1819 -1819
- package/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlinx-io-kotlinx-io-core.js +451 -451
- package/kotlinx-serialization-kotlinx-serialization-json.js +1095 -1111
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +258 -258
- package/ktor-ktor-client-content-negotiation.js +45 -45
- package/ktor-ktor-client-core.js +2687 -2687
- package/ktor-ktor-client-logging.js +621 -621
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http-cio.js +320 -320
- package/ktor-ktor-http.js +901 -901
- package/ktor-ktor-io.js +632 -632
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +36 -36
- package/ktor-ktor-serialization.js +57 -57
- package/ktor-ktor-utils.js +671 -671
- package/ktor-ktor-websockets.js +383 -383
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +11791 -11474
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +18 -0
- package/solibo-sdk-sdk.js +1471 -1471
|
@@ -29,45 +29,45 @@
|
|
|
29
29
|
tmp = delegate;
|
|
30
30
|
}
|
|
31
31
|
delegate = tmp;
|
|
32
|
-
this.
|
|
32
|
+
this.pnm_1 = delegate;
|
|
33
33
|
}
|
|
34
|
-
protoOf(StorageSettings).
|
|
35
|
-
return this.
|
|
34
|
+
protoOf(StorageSettings).x36 = function (key) {
|
|
35
|
+
return this.pnm_1.removeItem(key);
|
|
36
36
|
};
|
|
37
|
-
protoOf(StorageSettings).
|
|
38
|
-
var tmp0 = this.
|
|
37
|
+
protoOf(StorageSettings).qnm = function (key, value) {
|
|
38
|
+
var tmp0 = this.pnm_1;
|
|
39
39
|
// Inline function 'com.russhwolf.settings.set' call
|
|
40
40
|
var value_0 = value.toString();
|
|
41
41
|
tmp0.setItem(key, value_0);
|
|
42
42
|
};
|
|
43
|
-
protoOf(StorageSettings).
|
|
44
|
-
var tmp0 = this.
|
|
43
|
+
protoOf(StorageSettings).rnm = function (key, value) {
|
|
44
|
+
var tmp0 = this.pnm_1;
|
|
45
45
|
// Inline function 'com.russhwolf.settings.set' call
|
|
46
46
|
var value_0 = value.toString();
|
|
47
47
|
tmp0.setItem(key, value_0);
|
|
48
48
|
};
|
|
49
|
-
protoOf(StorageSettings).
|
|
49
|
+
protoOf(StorageSettings).snm = function (key, value) {
|
|
50
50
|
// Inline function 'com.russhwolf.settings.set' call
|
|
51
|
-
this.
|
|
51
|
+
this.pnm_1.setItem(key, value);
|
|
52
52
|
};
|
|
53
|
-
protoOf(StorageSettings).
|
|
53
|
+
protoOf(StorageSettings).tnm = function (key) {
|
|
54
54
|
// Inline function 'com.russhwolf.settings.get' call
|
|
55
|
-
return this.
|
|
55
|
+
return this.pnm_1.getItem(key);
|
|
56
56
|
};
|
|
57
|
-
protoOf(StorageSettings).
|
|
58
|
-
var tmp0 = this.
|
|
57
|
+
protoOf(StorageSettings).unm = function (key, value) {
|
|
58
|
+
var tmp0 = this.pnm_1;
|
|
59
59
|
// Inline function 'com.russhwolf.settings.set' call
|
|
60
60
|
var value_0 = value.toString();
|
|
61
61
|
tmp0.setItem(key, value_0);
|
|
62
62
|
};
|
|
63
|
-
protoOf(StorageSettings).
|
|
64
|
-
var tmp0 = this.
|
|
63
|
+
protoOf(StorageSettings).vnm = function (key, value) {
|
|
64
|
+
var tmp0 = this.pnm_1;
|
|
65
65
|
// Inline function 'com.russhwolf.settings.set' call
|
|
66
66
|
var value_0 = value.toString();
|
|
67
67
|
tmp0.setItem(key, value_0);
|
|
68
68
|
};
|
|
69
|
-
protoOf(StorageSettings).
|
|
70
|
-
var tmp0 = this.
|
|
69
|
+
protoOf(StorageSettings).wnm = function (key, value) {
|
|
70
|
+
var tmp0 = this.pnm_1;
|
|
71
71
|
// Inline function 'com.russhwolf.settings.set' call
|
|
72
72
|
var value_0 = value.toString();
|
|
73
73
|
tmp0.setItem(key, value_0);
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
initMetadataForClass(AtomicReference, 'AtomicReference');
|
|
20
20
|
//endregion
|
|
21
21
|
function AtomicReference(initialValue) {
|
|
22
|
-
this.
|
|
22
|
+
this.kmy_1 = initialValue;
|
|
23
23
|
}
|
|
24
|
-
protoOf(AtomicReference).
|
|
25
|
-
return this.
|
|
24
|
+
protoOf(AtomicReference).s24 = function () {
|
|
25
|
+
return this.kmy_1;
|
|
26
26
|
};
|
|
27
|
-
protoOf(AtomicReference).
|
|
28
|
-
this.
|
|
27
|
+
protoOf(AtomicReference).lmy = function (value_) {
|
|
28
|
+
this.kmy_1 = value_;
|
|
29
29
|
};
|
|
30
30
|
//region block: exports
|
|
31
31
|
_.$_$ = _.$_$ || {};
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
//endregion
|
|
49
49
|
function BigIntAsStringSerializer() {
|
|
50
50
|
BigIntAsStringSerializer_instance = this;
|
|
51
|
-
this.
|
|
51
|
+
this.xnx_1 = PrimitiveSerialDescriptor('BigInt', STRING_getInstance());
|
|
52
52
|
}
|
|
53
53
|
protoOf(BigIntAsStringSerializer).ps = function () {
|
|
54
|
-
return this.
|
|
54
|
+
return this.xnx_1;
|
|
55
55
|
};
|
|
56
|
-
protoOf(BigIntAsStringSerializer).
|
|
56
|
+
protoOf(BigIntAsStringSerializer).ynx = function (encoder, value) {
|
|
57
57
|
encoder.ix(value.toString());
|
|
58
58
|
};
|
|
59
59
|
protoOf(BigIntAsStringSerializer).ct = function (encoder, value) {
|
|
60
|
-
return this.
|
|
60
|
+
return this.ynx(encoder, value instanceof BigInt_0 ? value : THROW_CCE());
|
|
61
61
|
};
|
|
62
62
|
protoOf(BigIntAsStringSerializer).dt = function (decoder) {
|
|
63
63
|
return toBigInt_3(decoder.aw());
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
return BigIntAsStringSerializer_instance;
|
|
70
70
|
}
|
|
71
71
|
function encodeToByteArray(_this__u8e3s4) {
|
|
72
|
-
var positive = _this__u8e3s4.
|
|
73
|
-
var bytes = positive ? encodeToByteArray$decodeFromHex(_this__u8e3s4.
|
|
72
|
+
var positive = _this__u8e3s4.any(0) >= 0;
|
|
73
|
+
var bytes = positive ? encodeToByteArray$decodeFromHex(_this__u8e3s4.znx_1.toString(16)) : invertTwoComplement(encodeToByteArray$decodeFromHex(jsBigIntNegate(_this__u8e3s4.znx_1).toString(16)));
|
|
74
74
|
var firstBytePositive = bytes[0] >= 0;
|
|
75
75
|
if (positive === firstBytePositive)
|
|
76
76
|
return bytes;
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
}
|
|
90
90
|
function Companion() {
|
|
91
91
|
Companion_instance = this;
|
|
92
|
-
this.
|
|
92
|
+
this.bny_1 = new BigInt_0(BigInt(0));
|
|
93
93
|
}
|
|
94
|
-
protoOf(Companion).
|
|
94
|
+
protoOf(Companion).g63 = function () {
|
|
95
95
|
return BigIntAsStringSerializer_getInstance();
|
|
96
96
|
};
|
|
97
97
|
var Companion_instance;
|
|
@@ -103,39 +103,39 @@
|
|
|
103
103
|
function BigInt_0(jsBigInt) {
|
|
104
104
|
Companion_getInstance();
|
|
105
105
|
Number_0.call(this);
|
|
106
|
-
this.
|
|
106
|
+
this.znx_1 = jsBigInt;
|
|
107
107
|
}
|
|
108
|
-
protoOf(BigInt_0).
|
|
109
|
-
return this.
|
|
108
|
+
protoOf(BigInt_0).any = function (other) {
|
|
109
|
+
return this.cny(toBigInt(other));
|
|
110
110
|
};
|
|
111
|
-
protoOf(BigInt_0).
|
|
112
|
-
return jsBigIntCompareTo(this.
|
|
111
|
+
protoOf(BigInt_0).cny = function (other) {
|
|
112
|
+
return jsBigIntCompareTo(this.znx_1, other.znx_1);
|
|
113
113
|
};
|
|
114
114
|
protoOf(BigInt_0).d = function (other) {
|
|
115
|
-
return this.
|
|
115
|
+
return this.cny(other instanceof BigInt_0 ? other : THROW_CCE());
|
|
116
116
|
};
|
|
117
|
-
protoOf(BigInt_0).
|
|
118
|
-
return toByte(jsBigIntAsInt(this.
|
|
117
|
+
protoOf(BigInt_0).dny = function () {
|
|
118
|
+
return toByte(jsBigIntAsInt(this.znx_1, 8).toString());
|
|
119
119
|
};
|
|
120
|
-
protoOf(BigInt_0).
|
|
121
|
-
return toShort(jsBigIntAsInt(this.
|
|
120
|
+
protoOf(BigInt_0).eny = function () {
|
|
121
|
+
return toShort(jsBigIntAsInt(this.znx_1, 16).toString());
|
|
122
122
|
};
|
|
123
|
-
protoOf(BigInt_0).
|
|
124
|
-
return toInt(jsBigIntAsInt(this.
|
|
123
|
+
protoOf(BigInt_0).fny = function () {
|
|
124
|
+
return toInt(jsBigIntAsInt(this.znx_1, 32).toString());
|
|
125
125
|
};
|
|
126
|
-
protoOf(BigInt_0).
|
|
127
|
-
return toLong(jsBigIntAsInt(this.
|
|
126
|
+
protoOf(BigInt_0).gny = function () {
|
|
127
|
+
return toLong(jsBigIntAsInt(this.znx_1, 64).toString());
|
|
128
128
|
};
|
|
129
129
|
protoOf(BigInt_0).toString = function () {
|
|
130
|
-
return this.
|
|
130
|
+
return this.znx_1.toString();
|
|
131
131
|
};
|
|
132
132
|
protoOf(BigInt_0).hashCode = function () {
|
|
133
|
-
return getStringHashCode(this.
|
|
133
|
+
return getStringHashCode(this.znx_1.toString(36));
|
|
134
134
|
};
|
|
135
135
|
protoOf(BigInt_0).equals = function (other) {
|
|
136
136
|
if (!(other instanceof BigInt_0))
|
|
137
137
|
return false;
|
|
138
|
-
return jsBigIntEquals(this.
|
|
138
|
+
return jsBigIntEquals(this.znx_1, other.znx_1);
|
|
139
139
|
};
|
|
140
140
|
function decodeToBigInt(_this__u8e3s4) {
|
|
141
141
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
147
147
|
}
|
|
148
148
|
if (_this__u8e3s4.length === 1 && _this__u8e3s4[0] === 0)
|
|
149
|
-
return Companion_getInstance().
|
|
149
|
+
return Companion_getInstance().bny_1;
|
|
150
150
|
var positive = _this__u8e3s4[0] >= 0;
|
|
151
151
|
var tmp;
|
|
152
152
|
if (positive) {
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
return new BigInt_0(jsBigInt);
|
|
162
162
|
}
|
|
163
163
|
function toBigInt(_this__u8e3s4) {
|
|
164
|
-
return _this__u8e3s4 === 0 ? Companion_getInstance().
|
|
164
|
+
return _this__u8e3s4 === 0 ? Companion_getInstance().bny_1 : new BigInt_0(BigInt(_this__u8e3s4));
|
|
165
165
|
}
|
|
166
166
|
function toBigInt_0(_this__u8e3s4) {
|
|
167
167
|
return toBigInt(_this__u8e3s4);
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
return toBigInt(_this__u8e3s4);
|
|
171
171
|
}
|
|
172
172
|
function toBigInt_2(_this__u8e3s4) {
|
|
173
|
-
return _this__u8e3s4 === 0n ? Companion_getInstance().
|
|
173
|
+
return _this__u8e3s4 === 0n ? Companion_getInstance().bny_1 : new BigInt_0(BigInt(_this__u8e3s4.toString()));
|
|
174
174
|
}
|
|
175
175
|
function toBigInt_3(_this__u8e3s4) {
|
|
176
176
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
@@ -104,21 +104,21 @@
|
|
|
104
104
|
initMetadataForCompanion(Companion_10, CryptographyAlgorithmId);
|
|
105
105
|
initMetadataForCompanion(Companion_11, CryptographyAlgorithmId);
|
|
106
106
|
function decodeFromByteArray(format, bytes, $completion) {
|
|
107
|
-
return this.
|
|
107
|
+
return this.anz(format, bytes);
|
|
108
108
|
}
|
|
109
109
|
initMetadataForInterface(KeyDecoder, 'KeyDecoder', VOID, VOID, VOID, [2]);
|
|
110
110
|
function hash(data, $completion) {
|
|
111
|
-
return this.
|
|
111
|
+
return this.dnz(data);
|
|
112
112
|
}
|
|
113
113
|
function hashBlocking(data) {
|
|
114
|
-
var tmp0 = this.
|
|
114
|
+
var tmp0 = this.bnz();
|
|
115
115
|
var tmp$ret$1;
|
|
116
116
|
$l$block: {
|
|
117
117
|
// Inline function 'kotlin.use' call
|
|
118
118
|
var exception = null;
|
|
119
119
|
try {
|
|
120
|
-
tmp0.
|
|
121
|
-
tmp$ret$1 = tmp0.
|
|
120
|
+
tmp0.enz(data);
|
|
121
|
+
tmp$ret$1 = tmp0.fnz();
|
|
122
122
|
break $l$block;
|
|
123
123
|
} catch ($p) {
|
|
124
124
|
if ($p instanceof Error) {
|
|
@@ -137,17 +137,17 @@
|
|
|
137
137
|
}
|
|
138
138
|
initMetadataForInterface(Hasher, 'Hasher', VOID, VOID, VOID, [1]);
|
|
139
139
|
function generateSignature(data, $completion) {
|
|
140
|
-
return this.
|
|
140
|
+
return this.inz(data);
|
|
141
141
|
}
|
|
142
142
|
function generateSignatureBlocking(data) {
|
|
143
|
-
var tmp0 = this.
|
|
143
|
+
var tmp0 = this.gnz();
|
|
144
144
|
var tmp$ret$1;
|
|
145
145
|
$l$block: {
|
|
146
146
|
// Inline function 'kotlin.use' call
|
|
147
147
|
var exception = null;
|
|
148
148
|
try {
|
|
149
|
-
tmp0.
|
|
150
|
-
tmp$ret$1 = tmp0.
|
|
149
|
+
tmp0.enz(data);
|
|
150
|
+
tmp$ret$1 = tmp0.jnz();
|
|
151
151
|
break $l$block;
|
|
152
152
|
} catch ($p) {
|
|
153
153
|
if ($p instanceof Error) {
|
|
@@ -170,10 +170,10 @@
|
|
|
170
170
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
171
171
|
var tmp;
|
|
172
172
|
if ($super === VOID) {
|
|
173
|
-
this.
|
|
173
|
+
this.knz(source, startIndex, endIndex);
|
|
174
174
|
tmp = Unit_instance;
|
|
175
175
|
} else {
|
|
176
|
-
tmp = $super.
|
|
176
|
+
tmp = $super.knz.call(this, source, startIndex, endIndex);
|
|
177
177
|
}
|
|
178
178
|
return tmp;
|
|
179
179
|
}
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
function CryptographyAlgorithm() {
|
|
183
183
|
}
|
|
184
184
|
function CryptographyAlgorithmId(name) {
|
|
185
|
-
this.
|
|
185
|
+
this.hny_1 = name;
|
|
186
186
|
}
|
|
187
187
|
function Companion() {
|
|
188
188
|
}
|
|
189
|
-
protoOf(Companion).
|
|
190
|
-
return CryptographySystem_getInstance().
|
|
189
|
+
protoOf(Companion).iny = function () {
|
|
190
|
+
return CryptographySystem_getInstance().kny();
|
|
191
191
|
};
|
|
192
192
|
var Companion_instance;
|
|
193
193
|
function Companion_getInstance() {
|
|
@@ -195,8 +195,8 @@
|
|
|
195
195
|
}
|
|
196
196
|
function CryptographyProvider() {
|
|
197
197
|
}
|
|
198
|
-
protoOf(CryptographyProvider).
|
|
199
|
-
var tmp0_elvis_lhs = this.
|
|
198
|
+
protoOf(CryptographyProvider).mny = function (identifier) {
|
|
199
|
+
var tmp0_elvis_lhs = this.lny(identifier);
|
|
200
200
|
var tmp;
|
|
201
201
|
if (tmp0_elvis_lhs == null) {
|
|
202
202
|
throw IllegalStateException_init_$Create$('Algorithm not found: ' + toString(identifier));
|
|
@@ -207,14 +207,14 @@
|
|
|
207
207
|
};
|
|
208
208
|
function CryptographySystem() {
|
|
209
209
|
CryptographySystem_instance = this;
|
|
210
|
-
this.
|
|
210
|
+
this.jny_1 = new CryptographySystemImpl();
|
|
211
211
|
loadProviders(this);
|
|
212
212
|
}
|
|
213
|
-
protoOf(CryptographySystem).
|
|
214
|
-
return this.
|
|
213
|
+
protoOf(CryptographySystem).kny = function () {
|
|
214
|
+
return this.jny_1.kny();
|
|
215
215
|
};
|
|
216
|
-
protoOf(CryptographySystem).
|
|
217
|
-
return this.
|
|
216
|
+
protoOf(CryptographySystem).tny = function (provider, priority) {
|
|
217
|
+
return this.jny_1.tny(provider, priority);
|
|
218
218
|
};
|
|
219
219
|
var CryptographySystem_instance;
|
|
220
220
|
function CryptographySystem_getInstance() {
|
|
@@ -224,17 +224,17 @@
|
|
|
224
224
|
}
|
|
225
225
|
function CompositeProvider(providers) {
|
|
226
226
|
CryptographyProvider.call(this);
|
|
227
|
-
this.
|
|
227
|
+
this.uny_1 = providers;
|
|
228
228
|
}
|
|
229
|
-
protoOf(CompositeProvider).
|
|
230
|
-
var tmp0 = this.
|
|
229
|
+
protoOf(CompositeProvider).lny = function (identifier) {
|
|
230
|
+
var tmp0 = this.uny_1;
|
|
231
231
|
var tmp$ret$1;
|
|
232
232
|
$l$block: {
|
|
233
233
|
// Inline function 'kotlin.collections.firstNotNullOfOrNull' call
|
|
234
234
|
var _iterator__ex2g4s = tmp0.t();
|
|
235
235
|
while (_iterator__ex2g4s.u()) {
|
|
236
236
|
var element = _iterator__ex2g4s.v();
|
|
237
|
-
var result = element.
|
|
237
|
+
var result = element.lny(identifier);
|
|
238
238
|
if (!(result == null)) {
|
|
239
239
|
tmp$ret$1 = result;
|
|
240
240
|
break $l$block;
|
|
@@ -245,16 +245,16 @@
|
|
|
245
245
|
return tmp$ret$1;
|
|
246
246
|
};
|
|
247
247
|
function sam$kotlin_Comparator$0(function_0) {
|
|
248
|
-
this.
|
|
248
|
+
this.vny_1 = function_0;
|
|
249
249
|
}
|
|
250
250
|
protoOf(sam$kotlin_Comparator$0).le = function (a, b) {
|
|
251
|
-
return this.
|
|
251
|
+
return this.vny_1(a, b);
|
|
252
252
|
};
|
|
253
253
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
254
254
|
return this.le(a, b);
|
|
255
255
|
};
|
|
256
256
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
257
|
-
return this.
|
|
257
|
+
return this.vny_1;
|
|
258
258
|
};
|
|
259
259
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
260
260
|
var tmp;
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
function CryptographySystemImpl$lazyRegisteredProviders$lambda(this$0) {
|
|
284
284
|
return function () {
|
|
285
285
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
286
|
-
var this_0 = this$0.
|
|
286
|
+
var this_0 = this$0.nny_1.l1();
|
|
287
287
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
288
288
|
var tmp = CryptographySystemImpl$lazyRegisteredProviders$lambda$lambda;
|
|
289
289
|
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
@@ -302,11 +302,11 @@
|
|
|
302
302
|
}
|
|
303
303
|
function CryptographySystemImpl$lazyDefaultProvider$lambda(this$0) {
|
|
304
304
|
return function () {
|
|
305
|
-
var tmp0_elvis_lhs = this$0.
|
|
305
|
+
var tmp0_elvis_lhs = this$0.pny_1;
|
|
306
306
|
var tmp;
|
|
307
307
|
if (tmp0_elvis_lhs == null) {
|
|
308
308
|
// Inline function 'kotlin.let' call
|
|
309
|
-
var it = this$0.
|
|
309
|
+
var it = this$0.ony_1.n1();
|
|
310
310
|
var tmp_0;
|
|
311
311
|
switch (it.g1()) {
|
|
312
312
|
case 0:
|
|
@@ -328,27 +328,27 @@
|
|
|
328
328
|
}
|
|
329
329
|
function CryptographySystemImpl$lazyDefaultRandom$lambda(this$0) {
|
|
330
330
|
return function () {
|
|
331
|
-
var tmp0_elvis_lhs = this$0.
|
|
331
|
+
var tmp0_elvis_lhs = this$0.rny_1;
|
|
332
332
|
return tmp0_elvis_lhs == null ? Default_getInstance() : tmp0_elvis_lhs;
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
function CryptographySystemImpl() {
|
|
336
336
|
var tmp = this;
|
|
337
337
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
338
|
-
tmp.
|
|
338
|
+
tmp.nny_1 = LinkedHashMap_init_$Create$();
|
|
339
339
|
var tmp_0 = this;
|
|
340
|
-
tmp_0.
|
|
341
|
-
this.
|
|
340
|
+
tmp_0.ony_1 = lazy(CryptographySystemImpl$lazyRegisteredProviders$lambda(this));
|
|
341
|
+
this.pny_1 = null;
|
|
342
342
|
var tmp_1 = this;
|
|
343
|
-
tmp_1.
|
|
344
|
-
this.
|
|
343
|
+
tmp_1.qny_1 = lazy(CryptographySystemImpl$lazyDefaultProvider$lambda(this));
|
|
344
|
+
this.rny_1 = null;
|
|
345
345
|
var tmp_2 = this;
|
|
346
|
-
tmp_2.
|
|
346
|
+
tmp_2.sny_1 = lazy(CryptographySystemImpl$lazyDefaultRandom$lambda(this));
|
|
347
347
|
}
|
|
348
|
-
protoOf(CryptographySystemImpl).
|
|
349
|
-
return this.
|
|
348
|
+
protoOf(CryptographySystemImpl).kny = function () {
|
|
349
|
+
return this.qny_1.n1();
|
|
350
350
|
};
|
|
351
|
-
protoOf(CryptographySystemImpl).
|
|
351
|
+
protoOf(CryptographySystemImpl).tny = function (provider, priority) {
|
|
352
352
|
// Inline function 'kotlin.require' call
|
|
353
353
|
if (!(priority >= 0)) {
|
|
354
354
|
var message = 'Priority must be greater or equal to 0';
|
|
@@ -356,19 +356,19 @@
|
|
|
356
356
|
}
|
|
357
357
|
// Inline function 'kotlin.collections.contains' call
|
|
358
358
|
// Inline function 'kotlin.collections.containsKey' call
|
|
359
|
-
var this_0 = this.
|
|
359
|
+
var this_0 = this.nny_1;
|
|
360
360
|
// Inline function 'kotlin.require' call
|
|
361
361
|
if (!!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).x2(priority)) {
|
|
362
362
|
var message_0 = 'Provider with priority ' + priority + ' already registered. Every registered provider should have unique priority.';
|
|
363
363
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
364
364
|
}
|
|
365
365
|
// Inline function 'kotlin.check' call
|
|
366
|
-
if (!!this.
|
|
366
|
+
if (!!this.ony_1.dq()) {
|
|
367
367
|
var message_1 = 'Cannot register provider after `getRegisteredProviders` was called';
|
|
368
368
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
369
369
|
}
|
|
370
370
|
// Inline function 'kotlin.collections.set' call
|
|
371
|
-
this.
|
|
371
|
+
this.nny_1.c3(priority, provider);
|
|
372
372
|
};
|
|
373
373
|
function Format() {
|
|
374
374
|
}
|
|
@@ -450,13 +450,13 @@
|
|
|
450
450
|
}
|
|
451
451
|
function Companion_3() {
|
|
452
452
|
}
|
|
453
|
-
protoOf(Companion_3).
|
|
453
|
+
protoOf(Companion_3).wny = function () {
|
|
454
454
|
return _Curve___init__impl__ygix12('P-256');
|
|
455
455
|
};
|
|
456
|
-
protoOf(Companion_3).
|
|
456
|
+
protoOf(Companion_3).xny = function () {
|
|
457
457
|
return _Curve___init__impl__ygix12('P-384');
|
|
458
458
|
};
|
|
459
|
-
protoOf(Companion_3).
|
|
459
|
+
protoOf(Companion_3).yny = function () {
|
|
460
460
|
return _Curve___init__impl__ygix12('P-521');
|
|
461
461
|
};
|
|
462
462
|
var Companion_instance_3;
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
//region block: pre-declaration
|
|
40
40
|
//endregion
|
|
41
41
|
function convertEcPrivateKeyFromSec1ToPkcs8(input) {
|
|
42
|
-
var ecPrivateKey = Default_getInstance().zt(Companion_instance.
|
|
43
|
-
var tmp = ecPrivateKey.
|
|
42
|
+
var ecPrivateKey = Default_getInstance().zt(Companion_instance.g63(), input);
|
|
43
|
+
var tmp = ecPrivateKey.zo1_1;
|
|
44
44
|
var tmp0 = tmp == null ? null : new EcParameters(tmp);
|
|
45
45
|
$l$block: {
|
|
46
46
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
var message = 'EC Parameters are not present in the key';
|
|
49
49
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
50
50
|
} else {
|
|
51
|
-
tmp0.
|
|
51
|
+
tmp0.to1_1;
|
|
52
52
|
break $l$block;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
var privateKeyInfo = new PrivateKeyInfo(0, new EcKeyAlgorithmIdentifier(ecPrivateKey.
|
|
56
|
-
return Default_getInstance().yt(Companion_getInstance().
|
|
55
|
+
var privateKeyInfo = new PrivateKeyInfo(0, new EcKeyAlgorithmIdentifier(ecPrivateKey.zo1_1), input);
|
|
56
|
+
return Default_getInstance().yt(Companion_getInstance().g63(), privateKeyInfo);
|
|
57
57
|
}
|
|
58
58
|
function unwrapPem(label, key) {
|
|
59
|
-
return ensurePemLabel(Pem_instance.
|
|
59
|
+
return ensurePemLabel(Pem_instance.to2(key), label).wo2_1;
|
|
60
60
|
}
|
|
61
61
|
function wrapPrivateKeyInfo(version, identifier, key) {
|
|
62
|
-
return Default_getInstance().yt(Companion_getInstance().
|
|
62
|
+
return Default_getInstance().yt(Companion_getInstance().g63(), new PrivateKeyInfo(version, identifier, key));
|
|
63
63
|
}
|
|
64
64
|
function wrapSubjectPublicKeyInfo(identifier, key) {
|
|
65
|
-
return Default_getInstance().yt(Companion_getInstance_0().
|
|
65
|
+
return Default_getInstance().yt(Companion_getInstance_0().g63(), new SubjectPublicKeyInfo(identifier, new BitArray(0, key)));
|
|
66
66
|
}
|
|
67
67
|
//region block: exports
|
|
68
68
|
_.$_$ = _.$_$ || {};
|