@solibo/solibo-sdk 1.1.12 → 1.1.13
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/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/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +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/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +18823 -18393
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +42 -15
- package/solibo-sdk-sdk.mjs +2163 -2163
|
@@ -18,45 +18,45 @@ function StorageSettings(delegate) {
|
|
|
18
18
|
tmp = delegate;
|
|
19
19
|
}
|
|
20
20
|
delegate = tmp;
|
|
21
|
-
this.
|
|
21
|
+
this.com_1 = delegate;
|
|
22
22
|
}
|
|
23
23
|
protoOf(StorageSettings).k37 = function (key) {
|
|
24
|
-
return this.
|
|
24
|
+
return this.com_1.removeItem(key);
|
|
25
25
|
};
|
|
26
|
-
protoOf(StorageSettings).
|
|
27
|
-
var tmp0 = this.
|
|
26
|
+
protoOf(StorageSettings).dom = function (key, value) {
|
|
27
|
+
var tmp0 = this.com_1;
|
|
28
28
|
// Inline function 'com.russhwolf.settings.set' call
|
|
29
29
|
var value_0 = value.toString();
|
|
30
30
|
tmp0.setItem(key, value_0);
|
|
31
31
|
};
|
|
32
|
-
protoOf(StorageSettings).
|
|
33
|
-
var tmp0 = this.
|
|
32
|
+
protoOf(StorageSettings).eom = function (key, value) {
|
|
33
|
+
var tmp0 = this.com_1;
|
|
34
34
|
// Inline function 'com.russhwolf.settings.set' call
|
|
35
35
|
var value_0 = value.toString();
|
|
36
36
|
tmp0.setItem(key, value_0);
|
|
37
37
|
};
|
|
38
|
-
protoOf(StorageSettings).
|
|
38
|
+
protoOf(StorageSettings).fom = function (key, value) {
|
|
39
39
|
// Inline function 'com.russhwolf.settings.set' call
|
|
40
|
-
this.
|
|
40
|
+
this.com_1.setItem(key, value);
|
|
41
41
|
};
|
|
42
|
-
protoOf(StorageSettings).
|
|
42
|
+
protoOf(StorageSettings).gom = function (key) {
|
|
43
43
|
// Inline function 'com.russhwolf.settings.get' call
|
|
44
|
-
return this.
|
|
44
|
+
return this.com_1.getItem(key);
|
|
45
45
|
};
|
|
46
|
-
protoOf(StorageSettings).
|
|
47
|
-
var tmp0 = this.
|
|
46
|
+
protoOf(StorageSettings).hom = function (key, value) {
|
|
47
|
+
var tmp0 = this.com_1;
|
|
48
48
|
// Inline function 'com.russhwolf.settings.set' call
|
|
49
49
|
var value_0 = value.toString();
|
|
50
50
|
tmp0.setItem(key, value_0);
|
|
51
51
|
};
|
|
52
|
-
protoOf(StorageSettings).
|
|
53
|
-
var tmp0 = this.
|
|
52
|
+
protoOf(StorageSettings).iom = function (key, value) {
|
|
53
|
+
var tmp0 = this.com_1;
|
|
54
54
|
// Inline function 'com.russhwolf.settings.set' call
|
|
55
55
|
var value_0 = value.toString();
|
|
56
56
|
tmp0.setItem(key, value_0);
|
|
57
57
|
};
|
|
58
|
-
protoOf(StorageSettings).
|
|
59
|
-
var tmp0 = this.
|
|
58
|
+
protoOf(StorageSettings).jom = function (key, value) {
|
|
59
|
+
var tmp0 = this.com_1;
|
|
60
60
|
// Inline function 'com.russhwolf.settings.set' call
|
|
61
61
|
var value_0 = value.toString();
|
|
62
62
|
tmp0.setItem(key, value_0);
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
initMetadataForClass(AtomicReference, 'AtomicReference');
|
|
9
9
|
//endregion
|
|
10
10
|
function AtomicReference(initialValue) {
|
|
11
|
-
this.
|
|
11
|
+
this.hnw_1 = initialValue;
|
|
12
12
|
}
|
|
13
13
|
protoOf(AtomicReference).b25 = function () {
|
|
14
|
-
return this.
|
|
14
|
+
return this.hnw_1;
|
|
15
15
|
};
|
|
16
|
-
protoOf(AtomicReference).
|
|
17
|
-
this.
|
|
16
|
+
protoOf(AtomicReference).inw = function (value_) {
|
|
17
|
+
this.hnw_1 = value_;
|
|
18
18
|
};
|
|
19
19
|
//region block: exports
|
|
20
20
|
export {
|
|
@@ -36,16 +36,16 @@ initMetadataForClass(BigInt_0, 'BigInt', VOID, Number_0, [Number_0, Comparable],
|
|
|
36
36
|
//endregion
|
|
37
37
|
function BigIntAsStringSerializer() {
|
|
38
38
|
BigIntAsStringSerializer_instance = this;
|
|
39
|
-
this.
|
|
39
|
+
this.cox_1 = PrimitiveSerialDescriptor('BigInt', STRING_getInstance());
|
|
40
40
|
}
|
|
41
41
|
protoOf(BigIntAsStringSerializer).ys = function () {
|
|
42
|
-
return this.
|
|
42
|
+
return this.cox_1;
|
|
43
43
|
};
|
|
44
|
-
protoOf(BigIntAsStringSerializer).
|
|
44
|
+
protoOf(BigIntAsStringSerializer).dox = function (encoder, value) {
|
|
45
45
|
encoder.rx(value.toString());
|
|
46
46
|
};
|
|
47
47
|
protoOf(BigIntAsStringSerializer).lt = function (encoder, value) {
|
|
48
|
-
return this.
|
|
48
|
+
return this.dox(encoder, value instanceof BigInt_0 ? value : THROW_CCE());
|
|
49
49
|
};
|
|
50
50
|
protoOf(BigIntAsStringSerializer).mt = function (decoder) {
|
|
51
51
|
return toBigInt_3(decoder.jw());
|
|
@@ -57,8 +57,8 @@ function BigIntAsStringSerializer_getInstance() {
|
|
|
57
57
|
return BigIntAsStringSerializer_instance;
|
|
58
58
|
}
|
|
59
59
|
function encodeToByteArray(_this__u8e3s4) {
|
|
60
|
-
var positive = _this__u8e3s4.
|
|
61
|
-
var bytes = positive ? encodeToByteArray$decodeFromHex(_this__u8e3s4.
|
|
60
|
+
var positive = _this__u8e3s4.fox(0) >= 0;
|
|
61
|
+
var bytes = positive ? encodeToByteArray$decodeFromHex(_this__u8e3s4.eox_1.toString(16)) : invertTwoComplement(encodeToByteArray$decodeFromHex(jsBigIntNegate(_this__u8e3s4.eox_1).toString(16)));
|
|
62
62
|
var firstBytePositive = bytes[0] >= 0;
|
|
63
63
|
if (positive === firstBytePositive)
|
|
64
64
|
return bytes;
|
|
@@ -77,7 +77,7 @@ function encodeToByteArray(_this__u8e3s4) {
|
|
|
77
77
|
}
|
|
78
78
|
function Companion() {
|
|
79
79
|
Companion_instance = this;
|
|
80
|
-
this.
|
|
80
|
+
this.gox_1 = new BigInt_0(BigInt(0));
|
|
81
81
|
}
|
|
82
82
|
protoOf(Companion).t63 = function () {
|
|
83
83
|
return BigIntAsStringSerializer_getInstance();
|
|
@@ -91,39 +91,39 @@ function Companion_getInstance() {
|
|
|
91
91
|
function BigInt_0(jsBigInt) {
|
|
92
92
|
Companion_getInstance();
|
|
93
93
|
Number_0.call(this);
|
|
94
|
-
this.
|
|
94
|
+
this.eox_1 = jsBigInt;
|
|
95
95
|
}
|
|
96
|
-
protoOf(BigInt_0).
|
|
97
|
-
return this.
|
|
96
|
+
protoOf(BigInt_0).fox = function (other) {
|
|
97
|
+
return this.hox(toBigInt(other));
|
|
98
98
|
};
|
|
99
|
-
protoOf(BigInt_0).
|
|
100
|
-
return jsBigIntCompareTo(this.
|
|
99
|
+
protoOf(BigInt_0).hox = function (other) {
|
|
100
|
+
return jsBigIntCompareTo(this.eox_1, other.eox_1);
|
|
101
101
|
};
|
|
102
102
|
protoOf(BigInt_0).d = function (other) {
|
|
103
|
-
return this.
|
|
103
|
+
return this.hox(other instanceof BigInt_0 ? other : THROW_CCE());
|
|
104
104
|
};
|
|
105
|
-
protoOf(BigInt_0).
|
|
106
|
-
return toByte(jsBigIntAsInt(this.
|
|
105
|
+
protoOf(BigInt_0).iox = function () {
|
|
106
|
+
return toByte(jsBigIntAsInt(this.eox_1, 8).toString());
|
|
107
107
|
};
|
|
108
|
-
protoOf(BigInt_0).
|
|
109
|
-
return toShort(jsBigIntAsInt(this.
|
|
108
|
+
protoOf(BigInt_0).jox = function () {
|
|
109
|
+
return toShort(jsBigIntAsInt(this.eox_1, 16).toString());
|
|
110
110
|
};
|
|
111
|
-
protoOf(BigInt_0).
|
|
112
|
-
return toInt(jsBigIntAsInt(this.
|
|
111
|
+
protoOf(BigInt_0).kox = function () {
|
|
112
|
+
return toInt(jsBigIntAsInt(this.eox_1, 32).toString());
|
|
113
113
|
};
|
|
114
|
-
protoOf(BigInt_0).
|
|
115
|
-
return toLong(jsBigIntAsInt(this.
|
|
114
|
+
protoOf(BigInt_0).lox = function () {
|
|
115
|
+
return toLong(jsBigIntAsInt(this.eox_1, 64).toString());
|
|
116
116
|
};
|
|
117
117
|
protoOf(BigInt_0).toString = function () {
|
|
118
|
-
return this.
|
|
118
|
+
return this.eox_1.toString();
|
|
119
119
|
};
|
|
120
120
|
protoOf(BigInt_0).hashCode = function () {
|
|
121
|
-
return getStringHashCode(this.
|
|
121
|
+
return getStringHashCode(this.eox_1.toString(36));
|
|
122
122
|
};
|
|
123
123
|
protoOf(BigInt_0).equals = function (other) {
|
|
124
124
|
if (!(other instanceof BigInt_0))
|
|
125
125
|
return false;
|
|
126
|
-
return jsBigIntEquals(this.
|
|
126
|
+
return jsBigIntEquals(this.eox_1, other.eox_1);
|
|
127
127
|
};
|
|
128
128
|
function decodeToBigInt(_this__u8e3s4) {
|
|
129
129
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -134,7 +134,7 @@ function decodeToBigInt(_this__u8e3s4) {
|
|
|
134
134
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
135
135
|
}
|
|
136
136
|
if (_this__u8e3s4.length === 1 && _this__u8e3s4[0] === 0)
|
|
137
|
-
return Companion_getInstance().
|
|
137
|
+
return Companion_getInstance().gox_1;
|
|
138
138
|
var positive = _this__u8e3s4[0] >= 0;
|
|
139
139
|
var tmp;
|
|
140
140
|
if (positive) {
|
|
@@ -149,7 +149,7 @@ function decodeToBigInt(_this__u8e3s4) {
|
|
|
149
149
|
return new BigInt_0(jsBigInt);
|
|
150
150
|
}
|
|
151
151
|
function toBigInt(_this__u8e3s4) {
|
|
152
|
-
return _this__u8e3s4 === 0 ? Companion_getInstance().
|
|
152
|
+
return _this__u8e3s4 === 0 ? Companion_getInstance().gox_1 : new BigInt_0(BigInt(_this__u8e3s4));
|
|
153
153
|
}
|
|
154
154
|
function toBigInt_0(_this__u8e3s4) {
|
|
155
155
|
return toBigInt(_this__u8e3s4);
|
|
@@ -158,7 +158,7 @@ function toBigInt_1(_this__u8e3s4) {
|
|
|
158
158
|
return toBigInt(_this__u8e3s4);
|
|
159
159
|
}
|
|
160
160
|
function toBigInt_2(_this__u8e3s4) {
|
|
161
|
-
return _this__u8e3s4 === 0n ? Companion_getInstance().
|
|
161
|
+
return _this__u8e3s4 === 0n ? Companion_getInstance().gox_1 : new BigInt_0(BigInt(_this__u8e3s4.toString()));
|
|
162
162
|
}
|
|
163
163
|
function toBigInt_3(_this__u8e3s4) {
|
|
164
164
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
@@ -90,21 +90,21 @@ initMetadataForCompanion(Companion_9, CryptographyAlgorithmId);
|
|
|
90
90
|
initMetadataForCompanion(Companion_10, CryptographyAlgorithmId);
|
|
91
91
|
initMetadataForCompanion(Companion_11, CryptographyAlgorithmId);
|
|
92
92
|
function decodeFromByteArray(format, bytes, $completion) {
|
|
93
|
-
return this.
|
|
93
|
+
return this.foy(format, bytes);
|
|
94
94
|
}
|
|
95
95
|
initMetadataForInterface(KeyDecoder, 'KeyDecoder', VOID, VOID, VOID, [2]);
|
|
96
96
|
function hash(data, $completion) {
|
|
97
|
-
return this.
|
|
97
|
+
return this.ioy(data);
|
|
98
98
|
}
|
|
99
99
|
function hashBlocking(data) {
|
|
100
|
-
var tmp0 = this.
|
|
100
|
+
var tmp0 = this.goy();
|
|
101
101
|
var tmp$ret$1;
|
|
102
102
|
$l$block: {
|
|
103
103
|
// Inline function 'kotlin.use' call
|
|
104
104
|
var exception = null;
|
|
105
105
|
try {
|
|
106
|
-
tmp0.
|
|
107
|
-
tmp$ret$1 = tmp0.
|
|
106
|
+
tmp0.joy(data);
|
|
107
|
+
tmp$ret$1 = tmp0.koy();
|
|
108
108
|
break $l$block;
|
|
109
109
|
} catch ($p) {
|
|
110
110
|
if ($p instanceof Error) {
|
|
@@ -123,17 +123,17 @@ function hashBlocking(data) {
|
|
|
123
123
|
}
|
|
124
124
|
initMetadataForInterface(Hasher, 'Hasher', VOID, VOID, VOID, [1]);
|
|
125
125
|
function generateSignature(data, $completion) {
|
|
126
|
-
return this.
|
|
126
|
+
return this.noy(data);
|
|
127
127
|
}
|
|
128
128
|
function generateSignatureBlocking(data) {
|
|
129
|
-
var tmp0 = this.
|
|
129
|
+
var tmp0 = this.loy();
|
|
130
130
|
var tmp$ret$1;
|
|
131
131
|
$l$block: {
|
|
132
132
|
// Inline function 'kotlin.use' call
|
|
133
133
|
var exception = null;
|
|
134
134
|
try {
|
|
135
|
-
tmp0.
|
|
136
|
-
tmp$ret$1 = tmp0.
|
|
135
|
+
tmp0.joy(data);
|
|
136
|
+
tmp$ret$1 = tmp0.ooy();
|
|
137
137
|
break $l$block;
|
|
138
138
|
} catch ($p) {
|
|
139
139
|
if ($p instanceof Error) {
|
|
@@ -156,10 +156,10 @@ function update$default(source, startIndex, endIndex, $super) {
|
|
|
156
156
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
157
157
|
var tmp;
|
|
158
158
|
if ($super === VOID) {
|
|
159
|
-
this.
|
|
159
|
+
this.poy(source, startIndex, endIndex);
|
|
160
160
|
tmp = Unit_instance;
|
|
161
161
|
} else {
|
|
162
|
-
tmp = $super.
|
|
162
|
+
tmp = $super.poy.call(this, source, startIndex, endIndex);
|
|
163
163
|
}
|
|
164
164
|
return tmp;
|
|
165
165
|
}
|
|
@@ -168,12 +168,12 @@ initMetadataForInterface(UpdateFunction, 'UpdateFunction', VOID, VOID, [AutoClos
|
|
|
168
168
|
function CryptographyAlgorithm() {
|
|
169
169
|
}
|
|
170
170
|
function CryptographyAlgorithmId(name) {
|
|
171
|
-
this.
|
|
171
|
+
this.mox_1 = name;
|
|
172
172
|
}
|
|
173
173
|
function Companion() {
|
|
174
174
|
}
|
|
175
|
-
protoOf(Companion).
|
|
176
|
-
return CryptographySystem_getInstance().
|
|
175
|
+
protoOf(Companion).nox = function () {
|
|
176
|
+
return CryptographySystem_getInstance().pox();
|
|
177
177
|
};
|
|
178
178
|
var Companion_instance;
|
|
179
179
|
function Companion_getInstance() {
|
|
@@ -181,8 +181,8 @@ function Companion_getInstance() {
|
|
|
181
181
|
}
|
|
182
182
|
function CryptographyProvider() {
|
|
183
183
|
}
|
|
184
|
-
protoOf(CryptographyProvider).
|
|
185
|
-
var tmp0_elvis_lhs = this.
|
|
184
|
+
protoOf(CryptographyProvider).rox = function (identifier) {
|
|
185
|
+
var tmp0_elvis_lhs = this.qox(identifier);
|
|
186
186
|
var tmp;
|
|
187
187
|
if (tmp0_elvis_lhs == null) {
|
|
188
188
|
throw IllegalStateException_init_$Create$('Algorithm not found: ' + toString(identifier));
|
|
@@ -193,14 +193,14 @@ protoOf(CryptographyProvider).fow = function (identifier) {
|
|
|
193
193
|
};
|
|
194
194
|
function CryptographySystem() {
|
|
195
195
|
CryptographySystem_instance = this;
|
|
196
|
-
this.
|
|
196
|
+
this.oox_1 = new CryptographySystemImpl();
|
|
197
197
|
loadProviders(this);
|
|
198
198
|
}
|
|
199
|
-
protoOf(CryptographySystem).
|
|
200
|
-
return this.
|
|
199
|
+
protoOf(CryptographySystem).pox = function () {
|
|
200
|
+
return this.oox_1.pox();
|
|
201
201
|
};
|
|
202
|
-
protoOf(CryptographySystem).
|
|
203
|
-
return this.
|
|
202
|
+
protoOf(CryptographySystem).yox = function (provider, priority) {
|
|
203
|
+
return this.oox_1.yox(provider, priority);
|
|
204
204
|
};
|
|
205
205
|
var CryptographySystem_instance;
|
|
206
206
|
function CryptographySystem_getInstance() {
|
|
@@ -210,17 +210,17 @@ function CryptographySystem_getInstance() {
|
|
|
210
210
|
}
|
|
211
211
|
function CompositeProvider(providers) {
|
|
212
212
|
CryptographyProvider.call(this);
|
|
213
|
-
this.
|
|
213
|
+
this.zox_1 = providers;
|
|
214
214
|
}
|
|
215
|
-
protoOf(CompositeProvider).
|
|
216
|
-
var tmp0 = this.
|
|
215
|
+
protoOf(CompositeProvider).qox = function (identifier) {
|
|
216
|
+
var tmp0 = this.zox_1;
|
|
217
217
|
var tmp$ret$1;
|
|
218
218
|
$l$block: {
|
|
219
219
|
// Inline function 'kotlin.collections.firstNotNullOfOrNull' call
|
|
220
220
|
var _iterator__ex2g4s = tmp0.t();
|
|
221
221
|
while (_iterator__ex2g4s.u()) {
|
|
222
222
|
var element = _iterator__ex2g4s.v();
|
|
223
|
-
var result = element.
|
|
223
|
+
var result = element.qox(identifier);
|
|
224
224
|
if (!(result == null)) {
|
|
225
225
|
tmp$ret$1 = result;
|
|
226
226
|
break $l$block;
|
|
@@ -231,16 +231,16 @@ protoOf(CompositeProvider).eow = function (identifier) {
|
|
|
231
231
|
return tmp$ret$1;
|
|
232
232
|
};
|
|
233
233
|
function sam$kotlin_Comparator$0(function_0) {
|
|
234
|
-
this.
|
|
234
|
+
this.aoy_1 = function_0;
|
|
235
235
|
}
|
|
236
236
|
protoOf(sam$kotlin_Comparator$0).re = function (a, b) {
|
|
237
|
-
return this.
|
|
237
|
+
return this.aoy_1(a, b);
|
|
238
238
|
};
|
|
239
239
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
240
240
|
return this.re(a, b);
|
|
241
241
|
};
|
|
242
242
|
protoOf(sam$kotlin_Comparator$0).t3 = function () {
|
|
243
|
-
return this.
|
|
243
|
+
return this.aoy_1;
|
|
244
244
|
};
|
|
245
245
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
246
246
|
var tmp;
|
|
@@ -269,7 +269,7 @@ function CryptographySystemImpl$lazyRegisteredProviders$lambda$lambda(a, b) {
|
|
|
269
269
|
function CryptographySystemImpl$lazyRegisteredProviders$lambda(this$0) {
|
|
270
270
|
return function () {
|
|
271
271
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
272
|
-
var this_0 = this$0.
|
|
272
|
+
var this_0 = this$0.sox_1.l1();
|
|
273
273
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
274
274
|
var tmp = CryptographySystemImpl$lazyRegisteredProviders$lambda$lambda;
|
|
275
275
|
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
@@ -288,11 +288,11 @@ function CryptographySystemImpl$lazyRegisteredProviders$lambda(this$0) {
|
|
|
288
288
|
}
|
|
289
289
|
function CryptographySystemImpl$lazyDefaultProvider$lambda(this$0) {
|
|
290
290
|
return function () {
|
|
291
|
-
var tmp0_elvis_lhs = this$0.
|
|
291
|
+
var tmp0_elvis_lhs = this$0.uox_1;
|
|
292
292
|
var tmp;
|
|
293
293
|
if (tmp0_elvis_lhs == null) {
|
|
294
294
|
// Inline function 'kotlin.let' call
|
|
295
|
-
var it = this$0.
|
|
295
|
+
var it = this$0.tox_1.n1();
|
|
296
296
|
var tmp_0;
|
|
297
297
|
switch (it.g1()) {
|
|
298
298
|
case 0:
|
|
@@ -314,27 +314,27 @@ function CryptographySystemImpl$lazyDefaultProvider$lambda(this$0) {
|
|
|
314
314
|
}
|
|
315
315
|
function CryptographySystemImpl$lazyDefaultRandom$lambda(this$0) {
|
|
316
316
|
return function () {
|
|
317
|
-
var tmp0_elvis_lhs = this$0.
|
|
317
|
+
var tmp0_elvis_lhs = this$0.wox_1;
|
|
318
318
|
return tmp0_elvis_lhs == null ? Default_getInstance() : tmp0_elvis_lhs;
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
function CryptographySystemImpl() {
|
|
322
322
|
var tmp = this;
|
|
323
323
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
324
|
-
tmp.
|
|
324
|
+
tmp.sox_1 = LinkedHashMap_init_$Create$();
|
|
325
325
|
var tmp_0 = this;
|
|
326
|
-
tmp_0.
|
|
327
|
-
this.
|
|
326
|
+
tmp_0.tox_1 = lazy(CryptographySystemImpl$lazyRegisteredProviders$lambda(this));
|
|
327
|
+
this.uox_1 = null;
|
|
328
328
|
var tmp_1 = this;
|
|
329
|
-
tmp_1.
|
|
330
|
-
this.
|
|
329
|
+
tmp_1.vox_1 = lazy(CryptographySystemImpl$lazyDefaultProvider$lambda(this));
|
|
330
|
+
this.wox_1 = null;
|
|
331
331
|
var tmp_2 = this;
|
|
332
|
-
tmp_2.
|
|
332
|
+
tmp_2.xox_1 = lazy(CryptographySystemImpl$lazyDefaultRandom$lambda(this));
|
|
333
333
|
}
|
|
334
|
-
protoOf(CryptographySystemImpl).
|
|
335
|
-
return this.
|
|
334
|
+
protoOf(CryptographySystemImpl).pox = function () {
|
|
335
|
+
return this.vox_1.n1();
|
|
336
336
|
};
|
|
337
|
-
protoOf(CryptographySystemImpl).
|
|
337
|
+
protoOf(CryptographySystemImpl).yox = function (provider, priority) {
|
|
338
338
|
// Inline function 'kotlin.require' call
|
|
339
339
|
if (!(priority >= 0)) {
|
|
340
340
|
var message = 'Priority must be greater or equal to 0';
|
|
@@ -342,19 +342,19 @@ protoOf(CryptographySystemImpl).mow = function (provider, priority) {
|
|
|
342
342
|
}
|
|
343
343
|
// Inline function 'kotlin.collections.contains' call
|
|
344
344
|
// Inline function 'kotlin.collections.containsKey' call
|
|
345
|
-
var this_0 = this.
|
|
345
|
+
var this_0 = this.sox_1;
|
|
346
346
|
// Inline function 'kotlin.require' call
|
|
347
347
|
if (!!(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).x2(priority)) {
|
|
348
348
|
var message_0 = 'Provider with priority ' + priority + ' already registered. Every registered provider should have unique priority.';
|
|
349
349
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
350
350
|
}
|
|
351
351
|
// Inline function 'kotlin.check' call
|
|
352
|
-
if (!!this.
|
|
352
|
+
if (!!this.tox_1.jq()) {
|
|
353
353
|
var message_1 = 'Cannot register provider after `getRegisteredProviders` was called';
|
|
354
354
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
355
355
|
}
|
|
356
356
|
// Inline function 'kotlin.collections.set' call
|
|
357
|
-
this.
|
|
357
|
+
this.sox_1.c3(priority, provider);
|
|
358
358
|
};
|
|
359
359
|
function Format() {
|
|
360
360
|
}
|
|
@@ -436,13 +436,13 @@ function _Curve___get_name__impl__klrusc($this) {
|
|
|
436
436
|
}
|
|
437
437
|
function Companion_3() {
|
|
438
438
|
}
|
|
439
|
-
protoOf(Companion_3).
|
|
439
|
+
protoOf(Companion_3).boy = function () {
|
|
440
440
|
return _Curve___init__impl__ygix12('P-256');
|
|
441
441
|
};
|
|
442
|
-
protoOf(Companion_3).
|
|
442
|
+
protoOf(Companion_3).coy = function () {
|
|
443
443
|
return _Curve___init__impl__ygix12('P-384');
|
|
444
444
|
};
|
|
445
|
-
protoOf(Companion_3).
|
|
445
|
+
protoOf(Companion_3).doy = function () {
|
|
446
446
|
return _Curve___init__impl__ygix12('P-521');
|
|
447
447
|
};
|
|
448
448
|
var Companion_instance_3;
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
//endregion
|
|
27
27
|
function convertEcPrivateKeyFromSec1ToPkcs8(input) {
|
|
28
28
|
var ecPrivateKey = Default_getInstance().iu(Companion_instance.t63(), input);
|
|
29
|
-
var tmp = ecPrivateKey.
|
|
29
|
+
var tmp = ecPrivateKey.ep1_1;
|
|
30
30
|
var tmp0 = tmp == null ? null : new EcParameters(tmp);
|
|
31
31
|
$l$block: {
|
|
32
32
|
// Inline function 'kotlin.checkNotNull' call
|
|
@@ -34,15 +34,15 @@ function convertEcPrivateKeyFromSec1ToPkcs8(input) {
|
|
|
34
34
|
var message = 'EC Parameters are not present in the key';
|
|
35
35
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
36
36
|
} else {
|
|
37
|
-
tmp0.
|
|
37
|
+
tmp0.yp0_1;
|
|
38
38
|
break $l$block;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
var privateKeyInfo = new PrivateKeyInfo(0, new EcKeyAlgorithmIdentifier(ecPrivateKey.
|
|
41
|
+
var privateKeyInfo = new PrivateKeyInfo(0, new EcKeyAlgorithmIdentifier(ecPrivateKey.ep1_1), input);
|
|
42
42
|
return Default_getInstance().hu(Companion_getInstance().t63(), privateKeyInfo);
|
|
43
43
|
}
|
|
44
44
|
function unwrapPem(label, key) {
|
|
45
|
-
return ensurePemLabel(Pem_instance.
|
|
45
|
+
return ensurePemLabel(Pem_instance.yp1(key), label).bp2_1;
|
|
46
46
|
}
|
|
47
47
|
function wrapPrivateKeyInfo(version, identifier, key) {
|
|
48
48
|
return Default_getInstance().hu(Companion_getInstance().t63(), new PrivateKeyInfo(version, identifier, key));
|