@solibo/solibo-sdk 1.0.36 → 1.0.37
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 +286 -0
- package/KmLogging-logging.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +7247 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/KotlinBigInteger-bignum.mjs +5987 -0
- package/KotlinBigInteger-bignum.mjs.map +1 -0
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs +15 -0
- package/{MultiplatformSettings-multiplatform-settings-no-arg.js.map → MultiplatformSettings-multiplatform-settings-no-arg.mjs.map} +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs +70 -0
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -0
- package/Stately-stately-concurrency.mjs +25 -0
- package/{Stately-stately-concurrency.js.map → Stately-stately-concurrency.mjs.map} +1 -1
- package/Stately-stately-strict.mjs +8 -0
- package/{Stately-stately-strict.js.map → Stately-stately-strict.mjs.map} +1 -1
- package/cryptography-kotlin-cryptography-bigint.mjs +241 -0
- package/cryptography-kotlin-cryptography-bigint.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-core.mjs +1095 -0
- package/cryptography-kotlin-cryptography-core.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-provider-base.mjs +62 -0
- package/cryptography-kotlin-cryptography-provider-base.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-provider-optimal.mjs +4 -0
- package/{cryptography-kotlin-cryptography-provider-optimal.js.map → cryptography-kotlin-cryptography-provider-optimal.mjs.map} +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +1195 -0
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-random.mjs +127 -0
- package/cryptography-kotlin-cryptography-random.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +701 -0
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +1413 -0
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +153 -0
- package/cryptography-kotlin-cryptography-serialization-pem.mjs.map +1 -0
- package/index.d.ts +2 -583
- package/index.js +2 -582
- package/kotlin-kotlin-stdlib.mjs +19205 -0
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
- package/kotlinx-atomicfu.mjs +250 -0
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-browser.mjs +8 -0
- package/{kotlinx-browser.js.map → kotlinx-browser.mjs.map} +1 -1
- package/kotlinx-coroutines-core.mjs +9836 -0
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs +202 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +2020 -0
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +6337 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
- package/{kotlinx-serialization-kotlinx-serialization-json-io.js.map → kotlinx-serialization-kotlinx-serialization-json-io.mjs.map} +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +5104 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/ktor-ktor-client-auth.mjs +1491 -0
- package/ktor-ktor-client-auth.mjs.map +1 -0
- package/ktor-ktor-client-content-negotiation.mjs +750 -0
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -0
- package/ktor-ktor-client-core.mjs +14114 -0
- package/ktor-ktor-client-core.mjs.map +1 -0
- package/ktor-ktor-client-logging.mjs +3263 -0
- package/ktor-ktor-client-logging.mjs.map +1 -0
- package/ktor-ktor-client-mock.mjs +4 -0
- package/{ktor-ktor-client-mock.js.map → ktor-ktor-client-mock.mjs.map} +1 -1
- package/ktor-ktor-events.mjs +81 -0
- package/ktor-ktor-events.mjs.map +1 -0
- package/ktor-ktor-http-cio.mjs +2254 -0
- package/ktor-ktor-http-cio.mjs.map +1 -0
- package/ktor-ktor-http.mjs +5181 -0
- package/ktor-ktor-http.mjs.map +1 -0
- package/ktor-ktor-io.mjs +3608 -0
- package/ktor-ktor-io.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +46 -0
- package/{ktor-ktor-serialization-kotlinx-json.js.map → ktor-ktor-serialization-kotlinx-json.mjs.map} +1 -1
- package/ktor-ktor-serialization-kotlinx.mjs +843 -0
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
- package/ktor-ktor-serialization.mjs +364 -0
- package/ktor-ktor-serialization.mjs.map +1 -0
- package/ktor-ktor-sse.mjs +4 -0
- package/ktor-ktor-sse.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +3627 -0
- package/ktor-ktor-utils.mjs.map +1 -0
- package/ktor-ktor-websocket-serialization.mjs +4 -0
- package/ktor-ktor-websocket-serialization.mjs.map +1 -0
- package/ktor-ktor-websockets.mjs +2535 -0
- package/ktor-ktor-websockets.mjs.map +1 -0
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +193155 -0
- package/solibo-sdk-sdk-home-api.mjs.map +1 -0
- package/solibo-sdk-sdk.d.mts +13403 -0
- package/solibo-sdk-sdk.mjs +7814 -0
- package/solibo-sdk-sdk.mjs.map +1 -0
- package/KmLogging-logging.js +0 -301
- package/KmLogging-logging.js.map +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +0 -7261
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
- package/KotlinBigInteger-bignum.js +0 -5999
- package/KotlinBigInteger-bignum.js.map +0 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.js +0 -29
- package/MultiplatformSettings-multiplatform-settings.js +0 -82
- package/MultiplatformSettings-multiplatform-settings.js.map +0 -1
- package/Stately-stately-concurrency.js +0 -37
- package/Stately-stately-strict.js +0 -19
- package/cryptography-kotlin-cryptography-bigint.js +0 -254
- package/cryptography-kotlin-cryptography-bigint.js.map +0 -1
- package/cryptography-kotlin-cryptography-core.js +0 -1110
- package/cryptography-kotlin-cryptography-core.js.map +0 -1
- package/cryptography-kotlin-cryptography-provider-base.js +0 -77
- package/cryptography-kotlin-cryptography-provider-base.js.map +0 -1
- package/cryptography-kotlin-cryptography-provider-optimal.js +0 -15
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +0 -1222
- package/cryptography-kotlin-cryptography-provider-webcrypto.js.map +0 -1
- package/cryptography-kotlin-cryptography-random.js +0 -139
- package/cryptography-kotlin-cryptography-random.js.map +0 -1
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +0 -715
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js.map +0 -1
- package/cryptography-kotlin-cryptography-serialization-asn1.js +0 -1427
- package/cryptography-kotlin-cryptography-serialization-asn1.js.map +0 -1
- package/cryptography-kotlin-cryptography-serialization-pem.js +0 -165
- package/cryptography-kotlin-cryptography-serialization-pem.js.map +0 -1
- package/kotlin-kotlin-stdlib.js +0 -19124
- package/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -15
- package/kotlinx-atomicfu.js +0 -262
- package/kotlinx-atomicfu.js.map +0 -1
- package/kotlinx-browser.js +0 -19
- package/kotlinx-coroutines-core.js +0 -9849
- package/kotlinx-coroutines-core.js.map +0 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +0 -214
- package/kotlinx-io-kotlinx-io-bytestring.js.map +0 -1
- package/kotlinx-io-kotlinx-io-core.js +0 -2035
- package/kotlinx-io-kotlinx-io-core.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +0 -6349
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +0 -15
- package/kotlinx-serialization-kotlinx-serialization-json.js +0 -5117
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/ktor-ktor-client-auth.js +0 -1510
- package/ktor-ktor-client-auth.js.map +0 -1
- package/ktor-ktor-client-content-negotiation.js +0 -767
- package/ktor-ktor-client-content-negotiation.js.map +0 -1
- package/ktor-ktor-client-core.js +0 -14143
- package/ktor-ktor-client-core.js.map +0 -1
- package/ktor-ktor-client-logging.js +0 -3286
- package/ktor-ktor-client-logging.js.map +0 -1
- package/ktor-ktor-client-mock.js +0 -15
- package/ktor-ktor-events.js +0 -94
- package/ktor-ktor-events.js.map +0 -1
- package/ktor-ktor-http-cio.js +0 -2271
- package/ktor-ktor-http-cio.js.map +0 -1
- package/ktor-ktor-http.js +0 -5196
- package/ktor-ktor-http.js.map +0 -1
- package/ktor-ktor-io.js +0 -3628
- package/ktor-ktor-io.js.map +0 -1
- package/ktor-ktor-serialization-kotlinx-json.js +0 -67
- package/ktor-ktor-serialization-kotlinx.js +0 -865
- package/ktor-ktor-serialization-kotlinx.js.map +0 -1
- package/ktor-ktor-serialization.js +0 -379
- package/ktor-ktor-serialization.js.map +0 -1
- package/ktor-ktor-sse.js +0 -15
- package/ktor-ktor-sse.js.map +0 -1
- package/ktor-ktor-utils.js +0 -3643
- package/ktor-ktor-utils.js.map +0 -1
- package/ktor-ktor-websocket-serialization.js +0 -15
- package/ktor-ktor-websocket-serialization.js.map +0 -1
- package/ktor-ktor-websockets.js +0 -2552
- package/ktor-ktor-websockets.js.map +0 -1
- package/solibo-sdk-sdk-home-api.js +0 -196402
- package/solibo-sdk-sdk-home-api.js.map +0 -1
- package/solibo-sdk-sdk.d.ts +0 -14334
- package/solibo-sdk-sdk.js +0 -7897
- package/solibo-sdk-sdk.js.map +0 -1
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
import {
|
|
2
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
3
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
4
|
+
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
5
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
6
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
7
|
+
IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
|
|
8
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
9
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
10
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
11
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
12
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
13
|
+
getKClass3t8tygqu4lcxf as getKClass,
|
|
14
|
+
LazyThreadSafetyMode_PUBLICATION_getInstance1vspt3xrdob1a as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
15
|
+
lazy1261dae0bgscp as lazy,
|
|
16
|
+
} from './kotlin-kotlin-stdlib.mjs';
|
|
17
|
+
import {
|
|
18
|
+
Companion_instance3nsfjzff13l9z as Companion_instance,
|
|
19
|
+
ObjectIdentifierz6uf0uceu1gm as ObjectIdentifier,
|
|
20
|
+
_ObjectIdentifier___init__impl__7hutfrluhqiu0s240g as _ObjectIdentifier___init__impl__7hutfr,
|
|
21
|
+
$serializer_getInstance16vvpdozj55ex as $serializer_getInstance,
|
|
22
|
+
ObjectIdentifier__toString_impl_dtwsrdsm2716jzm6vp as ObjectIdentifier__toString_impl_dtwsrd,
|
|
23
|
+
ObjectIdentifier__hashCode_impl_7x941i112d4hk00z9e as ObjectIdentifier__hashCode_impl_7x941i,
|
|
24
|
+
TagType_EXPLICIT_getInstance10pdluq5x1ycm as TagType_EXPLICIT_getInstance,
|
|
25
|
+
ContextSpecificTag1nleqg541pedp as ContextSpecificTag,
|
|
26
|
+
$serializer_getInstance182nmf4yp1h51 as $serializer_getInstance_0,
|
|
27
|
+
} from './cryptography-kotlin-cryptography-serialization-asn1.mjs';
|
|
28
|
+
import {
|
|
29
|
+
CONTEXTUAL_getInstancelbs8qycmp7lg as CONTEXTUAL_getInstance,
|
|
30
|
+
buildSerialDescriptor2873qmkp8r2ib as buildSerialDescriptor,
|
|
31
|
+
OPEN_getInstance32dw6texj4r0o as OPEN_getInstance,
|
|
32
|
+
KSerializerzf77vz1967fq as KSerializer,
|
|
33
|
+
InlineClassDescriptor2odlvyasjrmr0 as InlineClassDescriptor,
|
|
34
|
+
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
35
|
+
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
36
|
+
PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
|
|
37
|
+
ByteArraySerializer_getInstancebtnovhz524d2 as ByteArraySerializer_getInstance,
|
|
38
|
+
UnknownFieldException_init_$Create$2dwzk7svpmqo1 as UnknownFieldException_init_$Create$,
|
|
39
|
+
IntSerializer_getInstance3pev8isxtkhc2 as IntSerializer_getInstance,
|
|
40
|
+
get_nullable197rfua9r7fsz as get_nullable,
|
|
41
|
+
throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
|
|
42
|
+
NothingSerializer3oixyyf77l4xt as NothingSerializer,
|
|
43
|
+
ContextualSerializer1uidivg94sh5v as ContextualSerializer,
|
|
44
|
+
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
45
|
+
//region block: imports
|
|
46
|
+
//endregion
|
|
47
|
+
//region block: pre-declaration
|
|
48
|
+
initMetadataForInterface(AlgorithmIdentifier, 'AlgorithmIdentifier');
|
|
49
|
+
initMetadataForClass(AlgorithmIdentifierSerializer, 'AlgorithmIdentifierSerializer', VOID, VOID, [KSerializer]);
|
|
50
|
+
initMetadataForInterface(KeyAlgorithmIdentifier, 'KeyAlgorithmIdentifier', VOID, VOID, [AlgorithmIdentifier], VOID, VOID, {0: KeyAlgorithmIdentifierSerializer_getInstance});
|
|
51
|
+
initMetadataForClass(EcKeyAlgorithmIdentifier, 'EcKeyAlgorithmIdentifier', VOID, VOID, [KeyAlgorithmIdentifier]);
|
|
52
|
+
initMetadataForCompanion(Companion);
|
|
53
|
+
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
54
|
+
initMetadataForClass(EcParameters, 'EcParameters', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
55
|
+
initMetadataForCompanion(Companion_0);
|
|
56
|
+
initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
57
|
+
initMetadataForClass(EcPrivateKey, 'EcPrivateKey', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
|
|
58
|
+
initMetadataForClass(UnknownKeyAlgorithmIdentifier, 'UnknownKeyAlgorithmIdentifier', VOID, VOID, [KeyAlgorithmIdentifier]);
|
|
59
|
+
initMetadataForObject(KeyAlgorithmIdentifierSerializer, 'KeyAlgorithmIdentifierSerializer', VOID, AlgorithmIdentifierSerializer);
|
|
60
|
+
initMetadataForCompanion(Companion_1);
|
|
61
|
+
initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
62
|
+
initMetadataForClass(PrivateKeyInfo, 'PrivateKeyInfo', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
|
|
63
|
+
initMetadataForCompanion(Companion_2);
|
|
64
|
+
initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
65
|
+
initMetadataForClass(SubjectPublicKeyInfo, 'SubjectPublicKeyInfo', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_4});
|
|
66
|
+
initMetadataForObject(RsaKeyAlgorithmIdentifier, 'RsaKeyAlgorithmIdentifier', VOID, VOID, [KeyAlgorithmIdentifier]);
|
|
67
|
+
//endregion
|
|
68
|
+
function AlgorithmIdentifier() {
|
|
69
|
+
}
|
|
70
|
+
function AlgorithmIdentifierSerializer$descriptor$lambda($this$buildSerialDescriptor) {
|
|
71
|
+
$this$buildSerialDescriptor.it('algorithm', Companion_instance.g63().ps());
|
|
72
|
+
$this$buildSerialDescriptor.it('parameters', buildSerialDescriptor('Any', CONTEXTUAL_getInstance(), []));
|
|
73
|
+
return Unit_instance;
|
|
74
|
+
}
|
|
75
|
+
function AlgorithmIdentifierSerializer() {
|
|
76
|
+
var tmp = this;
|
|
77
|
+
var tmp_0 = OPEN_getInstance();
|
|
78
|
+
tmp.jo9_1 = buildSerialDescriptor('AlgorithmIdentifier', tmp_0, [], AlgorithmIdentifierSerializer$descriptor$lambda);
|
|
79
|
+
}
|
|
80
|
+
protoOf(AlgorithmIdentifierSerializer).mo9 = function (_this__u8e3s4, serializer, value) {
|
|
81
|
+
_this__u8e3s4.wx(this.jo9_1, 1, serializer, value);
|
|
82
|
+
};
|
|
83
|
+
protoOf(AlgorithmIdentifierSerializer).no9 = function (_this__u8e3s4, serializer) {
|
|
84
|
+
return _this__u8e3s4.tw(this.jo9_1, 1, serializer);
|
|
85
|
+
};
|
|
86
|
+
protoOf(AlgorithmIdentifierSerializer).ps = function () {
|
|
87
|
+
return this.jo9_1;
|
|
88
|
+
};
|
|
89
|
+
protoOf(AlgorithmIdentifierSerializer).oo9 = function (encoder, value) {
|
|
90
|
+
// Inline function 'kotlinx.serialization.encoding.encodeStructure' call
|
|
91
|
+
var descriptor = this.jo9_1;
|
|
92
|
+
var composite = encoder.ew(descriptor);
|
|
93
|
+
composite.vx(this.jo9_1, 0, Companion_instance.g63(), new ObjectIdentifier(value.io9()));
|
|
94
|
+
this.ko9(composite, value);
|
|
95
|
+
composite.fw(descriptor);
|
|
96
|
+
return Unit_instance;
|
|
97
|
+
};
|
|
98
|
+
protoOf(AlgorithmIdentifierSerializer).ct = function (encoder, value) {
|
|
99
|
+
return this.oo9(encoder, (!(value == null) ? isInterface(value, AlgorithmIdentifier) : false) ? value : THROW_CCE());
|
|
100
|
+
};
|
|
101
|
+
protoOf(AlgorithmIdentifierSerializer).dt = function (decoder) {
|
|
102
|
+
// Inline function 'kotlinx.serialization.encoding.decodeStructure' call
|
|
103
|
+
var descriptor = this.jo9_1;
|
|
104
|
+
var composite = decoder.ew(descriptor);
|
|
105
|
+
// Inline function 'kotlin.check' call
|
|
106
|
+
if (!(composite.vw(this.jo9_1) === 0)) {
|
|
107
|
+
throw IllegalStateException_init_$Create$('Check failed.');
|
|
108
|
+
}
|
|
109
|
+
var algorithm = composite.rw(this.jo9_1, 0, Companion_instance.g63()).eo8_1;
|
|
110
|
+
// Inline function 'kotlin.check' call
|
|
111
|
+
if (!(composite.vw(this.jo9_1) === 1)) {
|
|
112
|
+
throw IllegalStateException_init_$Create$('Check failed.');
|
|
113
|
+
}
|
|
114
|
+
var parameters = this.lo9(composite, algorithm);
|
|
115
|
+
// Inline function 'kotlin.check' call
|
|
116
|
+
if (!(composite.vw(this.jo9_1) === -1)) {
|
|
117
|
+
throw IllegalStateException_init_$Create$('Check failed.');
|
|
118
|
+
}
|
|
119
|
+
var result = parameters;
|
|
120
|
+
composite.fw(descriptor);
|
|
121
|
+
return result;
|
|
122
|
+
};
|
|
123
|
+
function get_secp256r1(_this__u8e3s4) {
|
|
124
|
+
return _ObjectIdentifier___init__impl__7hutfr('1.2.840.10045.3.1.7');
|
|
125
|
+
}
|
|
126
|
+
function get_secp384r1(_this__u8e3s4) {
|
|
127
|
+
return _ObjectIdentifier___init__impl__7hutfr('1.3.132.0.34');
|
|
128
|
+
}
|
|
129
|
+
function get_secp521r1(_this__u8e3s4) {
|
|
130
|
+
return _ObjectIdentifier___init__impl__7hutfr('1.3.132.0.35');
|
|
131
|
+
}
|
|
132
|
+
function EcKeyAlgorithmIdentifier(parameters) {
|
|
133
|
+
this.po9_1 = parameters;
|
|
134
|
+
}
|
|
135
|
+
protoOf(EcKeyAlgorithmIdentifier).io9 = function () {
|
|
136
|
+
return get_EC(Companion_instance);
|
|
137
|
+
};
|
|
138
|
+
function _EcParameters___init__impl__i4ww9z(namedCurve) {
|
|
139
|
+
return namedCurve;
|
|
140
|
+
}
|
|
141
|
+
function _EcParameters___get_namedCurve__impl__oibidm($this) {
|
|
142
|
+
return $this;
|
|
143
|
+
}
|
|
144
|
+
function Companion() {
|
|
145
|
+
}
|
|
146
|
+
protoOf(Companion).g63 = function () {
|
|
147
|
+
return $serializer_getInstance_1();
|
|
148
|
+
};
|
|
149
|
+
var Companion_instance_0;
|
|
150
|
+
function Companion_getInstance() {
|
|
151
|
+
return Companion_instance_0;
|
|
152
|
+
}
|
|
153
|
+
function $serializer() {
|
|
154
|
+
$serializer_instance = this;
|
|
155
|
+
var tmp0_serialDesc = new InlineClassDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.EcParameters', this);
|
|
156
|
+
tmp0_serialDesc.r13('namedCurve', false);
|
|
157
|
+
this.qo9_1 = tmp0_serialDesc;
|
|
158
|
+
}
|
|
159
|
+
protoOf($serializer).ro9 = function (encoder, value) {
|
|
160
|
+
var tmp0_inlineEncoder = encoder.kx(this.qo9_1);
|
|
161
|
+
if (tmp0_inlineEncoder == null)
|
|
162
|
+
null;
|
|
163
|
+
else {
|
|
164
|
+
tmp0_inlineEncoder.bt($serializer_getInstance(), new ObjectIdentifier(_EcParameters___get_namedCurve__impl__oibidm(value)));
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
protoOf($serializer).ct = function (encoder, value) {
|
|
168
|
+
return this.ro9(encoder, value instanceof EcParameters ? value.so9_1 : THROW_CCE());
|
|
169
|
+
};
|
|
170
|
+
protoOf($serializer).to9 = function (decoder) {
|
|
171
|
+
return _EcParameters___init__impl__i4ww9z(decoder.cw(this.qo9_1).et($serializer_getInstance()).eo8_1);
|
|
172
|
+
};
|
|
173
|
+
protoOf($serializer).dt = function (decoder) {
|
|
174
|
+
return new EcParameters(this.to9(decoder));
|
|
175
|
+
};
|
|
176
|
+
protoOf($serializer).ps = function () {
|
|
177
|
+
return this.qo9_1;
|
|
178
|
+
};
|
|
179
|
+
protoOf($serializer).k14 = function () {
|
|
180
|
+
// Inline function 'kotlin.arrayOf' call
|
|
181
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
182
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
183
|
+
return [$serializer_getInstance()];
|
|
184
|
+
};
|
|
185
|
+
var $serializer_instance;
|
|
186
|
+
function $serializer_getInstance_1() {
|
|
187
|
+
if ($serializer_instance == null)
|
|
188
|
+
new $serializer();
|
|
189
|
+
return $serializer_instance;
|
|
190
|
+
}
|
|
191
|
+
function EcParameters__toString_impl_mgxjuh($this) {
|
|
192
|
+
return 'EcParameters(namedCurve=' + ObjectIdentifier__toString_impl_dtwsrd($this) + ')';
|
|
193
|
+
}
|
|
194
|
+
function EcParameters__hashCode_impl_prn1m($this) {
|
|
195
|
+
return ObjectIdentifier__hashCode_impl_7x941i($this);
|
|
196
|
+
}
|
|
197
|
+
function EcParameters__equals_impl_5tm4e2($this, other) {
|
|
198
|
+
if (!(other instanceof EcParameters))
|
|
199
|
+
return false;
|
|
200
|
+
if (!($this === (other instanceof EcParameters ? other.so9_1 : THROW_CCE())))
|
|
201
|
+
return false;
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
function EcParameters(namedCurve) {
|
|
205
|
+
this.so9_1 = namedCurve;
|
|
206
|
+
}
|
|
207
|
+
protoOf(EcParameters).toString = function () {
|
|
208
|
+
return EcParameters__toString_impl_mgxjuh(this.so9_1);
|
|
209
|
+
};
|
|
210
|
+
protoOf(EcParameters).hashCode = function () {
|
|
211
|
+
return EcParameters__hashCode_impl_prn1m(this.so9_1);
|
|
212
|
+
};
|
|
213
|
+
protoOf(EcParameters).equals = function (other) {
|
|
214
|
+
return EcParameters__equals_impl_5tm4e2(this.so9_1, other);
|
|
215
|
+
};
|
|
216
|
+
function Companion_0() {
|
|
217
|
+
}
|
|
218
|
+
protoOf(Companion_0).g63 = function () {
|
|
219
|
+
return $serializer_getInstance_2();
|
|
220
|
+
};
|
|
221
|
+
var Companion_instance_1;
|
|
222
|
+
function Companion_getInstance_0() {
|
|
223
|
+
return Companion_instance_1;
|
|
224
|
+
}
|
|
225
|
+
function $serializer_0() {
|
|
226
|
+
$serializer_instance_0 = this;
|
|
227
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.EcPrivateKey', this, 4);
|
|
228
|
+
tmp0_serialDesc.r13('version', false);
|
|
229
|
+
tmp0_serialDesc.r13('privateKey', false);
|
|
230
|
+
tmp0_serialDesc.r13('parameters', true);
|
|
231
|
+
tmp0_serialDesc.b13(new ContextSpecificTag(0, TagType_EXPLICIT_getInstance()));
|
|
232
|
+
tmp0_serialDesc.r13('publicKey', true);
|
|
233
|
+
tmp0_serialDesc.b13(new ContextSpecificTag(1, TagType_EXPLICIT_getInstance()));
|
|
234
|
+
this.uo9_1 = tmp0_serialDesc;
|
|
235
|
+
}
|
|
236
|
+
protoOf($serializer_0).vo9 = function (encoder, value) {
|
|
237
|
+
var tmp0_desc = this.uo9_1;
|
|
238
|
+
var tmp1_output = encoder.ew(tmp0_desc);
|
|
239
|
+
tmp1_output.ox(tmp0_desc, 0, value.wo9_1);
|
|
240
|
+
tmp1_output.vx(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.xo9_1);
|
|
241
|
+
var tmp;
|
|
242
|
+
if (tmp1_output.ay(tmp0_desc, 2)) {
|
|
243
|
+
tmp = true;
|
|
244
|
+
} else {
|
|
245
|
+
var tmp_0 = value.yo9_1;
|
|
246
|
+
tmp = !((tmp_0 == null ? null : new EcParameters(tmp_0)) == null);
|
|
247
|
+
}
|
|
248
|
+
if (tmp) {
|
|
249
|
+
var tmp_1 = $serializer_getInstance_1();
|
|
250
|
+
var tmp_2 = value.yo9_1;
|
|
251
|
+
tmp1_output.wx(tmp0_desc, 2, tmp_1, tmp_2 == null ? null : new EcParameters(tmp_2));
|
|
252
|
+
}
|
|
253
|
+
if (tmp1_output.ay(tmp0_desc, 3) ? true : !(value.zo9_1 == null)) {
|
|
254
|
+
tmp1_output.wx(tmp0_desc, 3, $serializer_getInstance_0(), value.zo9_1);
|
|
255
|
+
}
|
|
256
|
+
tmp1_output.fw(tmp0_desc);
|
|
257
|
+
};
|
|
258
|
+
protoOf($serializer_0).ct = function (encoder, value) {
|
|
259
|
+
return this.vo9(encoder, value instanceof EcPrivateKey ? value : THROW_CCE());
|
|
260
|
+
};
|
|
261
|
+
protoOf($serializer_0).dt = function (decoder) {
|
|
262
|
+
var tmp0_desc = this.uo9_1;
|
|
263
|
+
var tmp1_flag = true;
|
|
264
|
+
var tmp2_index = 0;
|
|
265
|
+
var tmp3_bitMask0 = 0;
|
|
266
|
+
var tmp4_local0 = 0;
|
|
267
|
+
var tmp5_local1 = null;
|
|
268
|
+
var tmp6_local2 = null;
|
|
269
|
+
var tmp7_local3 = null;
|
|
270
|
+
var tmp8_input = decoder.ew(tmp0_desc);
|
|
271
|
+
if (tmp8_input.uw()) {
|
|
272
|
+
tmp4_local0 = tmp8_input.jw(tmp0_desc, 0);
|
|
273
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
274
|
+
tmp5_local1 = tmp8_input.qw(tmp0_desc, 1, ByteArraySerializer_getInstance(), tmp5_local1);
|
|
275
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
276
|
+
var tmp = $serializer_getInstance_1();
|
|
277
|
+
var tmp_0 = tmp6_local2;
|
|
278
|
+
var tmp_1 = tmp8_input.sw(tmp0_desc, 2, tmp, tmp_0 == null ? null : new EcParameters(tmp_0));
|
|
279
|
+
tmp6_local2 = tmp_1 == null ? null : tmp_1.so9_1;
|
|
280
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
281
|
+
tmp7_local3 = tmp8_input.sw(tmp0_desc, 3, $serializer_getInstance_0(), tmp7_local3);
|
|
282
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
283
|
+
} else
|
|
284
|
+
while (tmp1_flag) {
|
|
285
|
+
tmp2_index = tmp8_input.vw(tmp0_desc);
|
|
286
|
+
switch (tmp2_index) {
|
|
287
|
+
case -1:
|
|
288
|
+
tmp1_flag = false;
|
|
289
|
+
break;
|
|
290
|
+
case 0:
|
|
291
|
+
tmp4_local0 = tmp8_input.jw(tmp0_desc, 0);
|
|
292
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
293
|
+
break;
|
|
294
|
+
case 1:
|
|
295
|
+
tmp5_local1 = tmp8_input.qw(tmp0_desc, 1, ByteArraySerializer_getInstance(), tmp5_local1);
|
|
296
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
297
|
+
break;
|
|
298
|
+
case 2:
|
|
299
|
+
var tmp_2 = $serializer_getInstance_1();
|
|
300
|
+
var tmp_3 = tmp6_local2;
|
|
301
|
+
var tmp_4 = tmp8_input.sw(tmp0_desc, 2, tmp_2, tmp_3 == null ? null : new EcParameters(tmp_3));
|
|
302
|
+
tmp6_local2 = tmp_4 == null ? null : tmp_4.so9_1;
|
|
303
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
304
|
+
break;
|
|
305
|
+
case 3:
|
|
306
|
+
tmp7_local3 = tmp8_input.sw(tmp0_desc, 3, $serializer_getInstance_0(), tmp7_local3);
|
|
307
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
308
|
+
break;
|
|
309
|
+
default:
|
|
310
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
tmp8_input.fw(tmp0_desc);
|
|
314
|
+
return EcPrivateKey_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
315
|
+
};
|
|
316
|
+
protoOf($serializer_0).ps = function () {
|
|
317
|
+
return this.uo9_1;
|
|
318
|
+
};
|
|
319
|
+
protoOf($serializer_0).k14 = function () {
|
|
320
|
+
// Inline function 'kotlin.arrayOf' call
|
|
321
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
322
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
323
|
+
return [IntSerializer_getInstance(), ByteArraySerializer_getInstance(), get_nullable($serializer_getInstance_1()), get_nullable($serializer_getInstance_0())];
|
|
324
|
+
};
|
|
325
|
+
var $serializer_instance_0;
|
|
326
|
+
function $serializer_getInstance_2() {
|
|
327
|
+
if ($serializer_instance_0 == null)
|
|
328
|
+
new $serializer_0();
|
|
329
|
+
return $serializer_instance_0;
|
|
330
|
+
}
|
|
331
|
+
function EcPrivateKey_init_$Init$(seen0, version, privateKey, parameters, publicKey, serializationConstructorMarker, $this) {
|
|
332
|
+
if (!(3 === (3 & seen0))) {
|
|
333
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().uo9_1);
|
|
334
|
+
}
|
|
335
|
+
$this.wo9_1 = version;
|
|
336
|
+
$this.xo9_1 = privateKey;
|
|
337
|
+
if (0 === (seen0 & 4))
|
|
338
|
+
$this.yo9_1 = null;
|
|
339
|
+
else
|
|
340
|
+
$this.yo9_1 = parameters;
|
|
341
|
+
if (0 === (seen0 & 8))
|
|
342
|
+
$this.zo9_1 = null;
|
|
343
|
+
else
|
|
344
|
+
$this.zo9_1 = publicKey;
|
|
345
|
+
return $this;
|
|
346
|
+
}
|
|
347
|
+
function EcPrivateKey_init_$Create$(seen0, version, privateKey, parameters, publicKey, serializationConstructorMarker) {
|
|
348
|
+
return EcPrivateKey_init_$Init$(seen0, version, privateKey, parameters, publicKey, serializationConstructorMarker, objectCreate(protoOf(EcPrivateKey)));
|
|
349
|
+
}
|
|
350
|
+
function EcPrivateKey(version, privateKey, parameters, publicKey) {
|
|
351
|
+
parameters = parameters === VOID ? null : parameters;
|
|
352
|
+
publicKey = publicKey === VOID ? null : publicKey;
|
|
353
|
+
this.wo9_1 = version;
|
|
354
|
+
this.xo9_1 = privateKey;
|
|
355
|
+
this.yo9_1 = parameters;
|
|
356
|
+
this.zo9_1 = publicKey;
|
|
357
|
+
}
|
|
358
|
+
function get_EC(_this__u8e3s4) {
|
|
359
|
+
return _ObjectIdentifier___init__impl__7hutfr('1.2.840.10045.2.1');
|
|
360
|
+
}
|
|
361
|
+
function KeyAlgorithmIdentifier() {
|
|
362
|
+
}
|
|
363
|
+
function UnknownKeyAlgorithmIdentifier(algorithm) {
|
|
364
|
+
this.aoa_1 = algorithm;
|
|
365
|
+
}
|
|
366
|
+
protoOf(UnknownKeyAlgorithmIdentifier).io9 = function () {
|
|
367
|
+
return this.aoa_1;
|
|
368
|
+
};
|
|
369
|
+
protoOf(UnknownKeyAlgorithmIdentifier).boa = function () {
|
|
370
|
+
return null;
|
|
371
|
+
};
|
|
372
|
+
function KeyAlgorithmIdentifierSerializer() {
|
|
373
|
+
KeyAlgorithmIdentifierSerializer_instance = this;
|
|
374
|
+
AlgorithmIdentifierSerializer.call(this);
|
|
375
|
+
}
|
|
376
|
+
protoOf(KeyAlgorithmIdentifierSerializer).doa = function (_this__u8e3s4, value) {
|
|
377
|
+
var tmp;
|
|
378
|
+
if (value instanceof RsaKeyAlgorithmIdentifier) {
|
|
379
|
+
this.mo9(_this__u8e3s4, NothingSerializer(), RsaKeyAlgorithmIdentifier_instance.boa());
|
|
380
|
+
tmp = Unit_instance;
|
|
381
|
+
} else {
|
|
382
|
+
if (value instanceof EcKeyAlgorithmIdentifier) {
|
|
383
|
+
var tmp_0 = Companion_instance_0.g63();
|
|
384
|
+
var tmp_1 = value.po9_1;
|
|
385
|
+
this.mo9(_this__u8e3s4, tmp_0, tmp_1 == null ? null : new EcParameters(tmp_1));
|
|
386
|
+
tmp = Unit_instance;
|
|
387
|
+
} else {
|
|
388
|
+
if (value instanceof UnknownKeyAlgorithmIdentifier) {
|
|
389
|
+
this.mo9(_this__u8e3s4, NothingSerializer(), value.boa());
|
|
390
|
+
tmp = Unit_instance;
|
|
391
|
+
} else {
|
|
392
|
+
this.mo9(_this__u8e3s4, NothingSerializer(), null);
|
|
393
|
+
tmp = Unit_instance;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
return tmp;
|
|
398
|
+
};
|
|
399
|
+
protoOf(KeyAlgorithmIdentifierSerializer).ko9 = function (_this__u8e3s4, value) {
|
|
400
|
+
return this.doa(_this__u8e3s4, isInterface(value, KeyAlgorithmIdentifier) ? value : THROW_CCE());
|
|
401
|
+
};
|
|
402
|
+
protoOf(KeyAlgorithmIdentifierSerializer).lo9 = function (_this__u8e3s4, algorithm) {
|
|
403
|
+
var tmp;
|
|
404
|
+
if (algorithm === get_RSA(Companion_instance)) {
|
|
405
|
+
this.no9(_this__u8e3s4, NothingSerializer());
|
|
406
|
+
tmp = RsaKeyAlgorithmIdentifier_instance;
|
|
407
|
+
} else if (algorithm === get_EC(Companion_instance)) {
|
|
408
|
+
var tmp_0 = this.no9(_this__u8e3s4, Companion_instance_0.g63());
|
|
409
|
+
tmp = new EcKeyAlgorithmIdentifier(tmp_0 == null ? null : tmp_0.so9_1);
|
|
410
|
+
} else {
|
|
411
|
+
tmp = new UnknownKeyAlgorithmIdentifier(algorithm);
|
|
412
|
+
}
|
|
413
|
+
return tmp;
|
|
414
|
+
};
|
|
415
|
+
var KeyAlgorithmIdentifierSerializer_instance;
|
|
416
|
+
function KeyAlgorithmIdentifierSerializer_getInstance() {
|
|
417
|
+
if (KeyAlgorithmIdentifierSerializer_instance == null)
|
|
418
|
+
new KeyAlgorithmIdentifierSerializer();
|
|
419
|
+
return KeyAlgorithmIdentifierSerializer_instance;
|
|
420
|
+
}
|
|
421
|
+
function PrivateKeyInfo$Companion$$childSerializers$_anonymous__z2jngg() {
|
|
422
|
+
var tmp = getKClass(KeyAlgorithmIdentifier);
|
|
423
|
+
var tmp_0 = KeyAlgorithmIdentifierSerializer_getInstance();
|
|
424
|
+
// Inline function 'kotlin.arrayOf' call
|
|
425
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
426
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
427
|
+
var tmp$ret$2 = [];
|
|
428
|
+
return new ContextualSerializer(tmp, tmp_0, tmp$ret$2);
|
|
429
|
+
}
|
|
430
|
+
function Companion_1() {
|
|
431
|
+
Companion_instance_2 = this;
|
|
432
|
+
var tmp = this;
|
|
433
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
434
|
+
// Inline function 'kotlin.arrayOf' call
|
|
435
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
436
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
437
|
+
tmp.eoa_1 = [null, lazy(tmp_0, PrivateKeyInfo$Companion$$childSerializers$_anonymous__z2jngg), null];
|
|
438
|
+
}
|
|
439
|
+
protoOf(Companion_1).g63 = function () {
|
|
440
|
+
return $serializer_getInstance_3();
|
|
441
|
+
};
|
|
442
|
+
var Companion_instance_2;
|
|
443
|
+
function Companion_getInstance_1() {
|
|
444
|
+
if (Companion_instance_2 == null)
|
|
445
|
+
new Companion_1();
|
|
446
|
+
return Companion_instance_2;
|
|
447
|
+
}
|
|
448
|
+
function $serializer_1() {
|
|
449
|
+
$serializer_instance_1 = this;
|
|
450
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.PrivateKeyInfo', this, 3);
|
|
451
|
+
tmp0_serialDesc.r13('version', false);
|
|
452
|
+
tmp0_serialDesc.r13('privateKeyAlgorithm', false);
|
|
453
|
+
tmp0_serialDesc.r13('privateKey', false);
|
|
454
|
+
this.foa_1 = tmp0_serialDesc;
|
|
455
|
+
}
|
|
456
|
+
protoOf($serializer_1).goa = function (encoder, value) {
|
|
457
|
+
var tmp0_desc = this.foa_1;
|
|
458
|
+
var tmp1_output = encoder.ew(tmp0_desc);
|
|
459
|
+
var tmp2_cached = Companion_getInstance_1().eoa_1;
|
|
460
|
+
tmp1_output.ox(tmp0_desc, 0, value.hoa_1);
|
|
461
|
+
tmp1_output.vx(tmp0_desc, 1, tmp2_cached[1].n1(), value.ioa_1);
|
|
462
|
+
tmp1_output.vx(tmp0_desc, 2, ByteArraySerializer_getInstance(), value.joa_1);
|
|
463
|
+
tmp1_output.fw(tmp0_desc);
|
|
464
|
+
};
|
|
465
|
+
protoOf($serializer_1).ct = function (encoder, value) {
|
|
466
|
+
return this.goa(encoder, value instanceof PrivateKeyInfo ? value : THROW_CCE());
|
|
467
|
+
};
|
|
468
|
+
protoOf($serializer_1).dt = function (decoder) {
|
|
469
|
+
var tmp0_desc = this.foa_1;
|
|
470
|
+
var tmp1_flag = true;
|
|
471
|
+
var tmp2_index = 0;
|
|
472
|
+
var tmp3_bitMask0 = 0;
|
|
473
|
+
var tmp4_local0 = 0;
|
|
474
|
+
var tmp5_local1 = null;
|
|
475
|
+
var tmp6_local2 = null;
|
|
476
|
+
var tmp7_input = decoder.ew(tmp0_desc);
|
|
477
|
+
var tmp8_cached = Companion_getInstance_1().eoa_1;
|
|
478
|
+
if (tmp7_input.uw()) {
|
|
479
|
+
tmp4_local0 = tmp7_input.jw(tmp0_desc, 0);
|
|
480
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
481
|
+
tmp5_local1 = tmp7_input.qw(tmp0_desc, 1, tmp8_cached[1].n1(), tmp5_local1);
|
|
482
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
483
|
+
tmp6_local2 = tmp7_input.qw(tmp0_desc, 2, ByteArraySerializer_getInstance(), tmp6_local2);
|
|
484
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
485
|
+
} else
|
|
486
|
+
while (tmp1_flag) {
|
|
487
|
+
tmp2_index = tmp7_input.vw(tmp0_desc);
|
|
488
|
+
switch (tmp2_index) {
|
|
489
|
+
case -1:
|
|
490
|
+
tmp1_flag = false;
|
|
491
|
+
break;
|
|
492
|
+
case 0:
|
|
493
|
+
tmp4_local0 = tmp7_input.jw(tmp0_desc, 0);
|
|
494
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
495
|
+
break;
|
|
496
|
+
case 1:
|
|
497
|
+
tmp5_local1 = tmp7_input.qw(tmp0_desc, 1, tmp8_cached[1].n1(), tmp5_local1);
|
|
498
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
499
|
+
break;
|
|
500
|
+
case 2:
|
|
501
|
+
tmp6_local2 = tmp7_input.qw(tmp0_desc, 2, ByteArraySerializer_getInstance(), tmp6_local2);
|
|
502
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
503
|
+
break;
|
|
504
|
+
default:
|
|
505
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
tmp7_input.fw(tmp0_desc);
|
|
509
|
+
return PrivateKeyInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
510
|
+
};
|
|
511
|
+
protoOf($serializer_1).ps = function () {
|
|
512
|
+
return this.foa_1;
|
|
513
|
+
};
|
|
514
|
+
protoOf($serializer_1).k14 = function () {
|
|
515
|
+
var tmp0_cached = Companion_getInstance_1().eoa_1;
|
|
516
|
+
// Inline function 'kotlin.arrayOf' call
|
|
517
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
518
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
519
|
+
return [IntSerializer_getInstance(), tmp0_cached[1].n1(), ByteArraySerializer_getInstance()];
|
|
520
|
+
};
|
|
521
|
+
var $serializer_instance_1;
|
|
522
|
+
function $serializer_getInstance_3() {
|
|
523
|
+
if ($serializer_instance_1 == null)
|
|
524
|
+
new $serializer_1();
|
|
525
|
+
return $serializer_instance_1;
|
|
526
|
+
}
|
|
527
|
+
function PrivateKeyInfo_init_$Init$(seen0, version, privateKeyAlgorithm, privateKey, serializationConstructorMarker, $this) {
|
|
528
|
+
if (!(7 === (7 & seen0))) {
|
|
529
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().foa_1);
|
|
530
|
+
}
|
|
531
|
+
$this.hoa_1 = version;
|
|
532
|
+
$this.ioa_1 = privateKeyAlgorithm;
|
|
533
|
+
$this.joa_1 = privateKey;
|
|
534
|
+
return $this;
|
|
535
|
+
}
|
|
536
|
+
function PrivateKeyInfo_init_$Create$(seen0, version, privateKeyAlgorithm, privateKey, serializationConstructorMarker) {
|
|
537
|
+
return PrivateKeyInfo_init_$Init$(seen0, version, privateKeyAlgorithm, privateKey, serializationConstructorMarker, objectCreate(protoOf(PrivateKeyInfo)));
|
|
538
|
+
}
|
|
539
|
+
function PrivateKeyInfo(version, privateKeyAlgorithm, privateKey) {
|
|
540
|
+
Companion_getInstance_1();
|
|
541
|
+
this.hoa_1 = version;
|
|
542
|
+
this.ioa_1 = privateKeyAlgorithm;
|
|
543
|
+
this.joa_1 = privateKey;
|
|
544
|
+
}
|
|
545
|
+
function SubjectPublicKeyInfo$Companion$$childSerializers$_anonymous__ezpjw2() {
|
|
546
|
+
var tmp = getKClass(KeyAlgorithmIdentifier);
|
|
547
|
+
var tmp_0 = KeyAlgorithmIdentifierSerializer_getInstance();
|
|
548
|
+
// Inline function 'kotlin.arrayOf' call
|
|
549
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
550
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
551
|
+
var tmp$ret$2 = [];
|
|
552
|
+
return new ContextualSerializer(tmp, tmp_0, tmp$ret$2);
|
|
553
|
+
}
|
|
554
|
+
function Companion_2() {
|
|
555
|
+
Companion_instance_3 = this;
|
|
556
|
+
var tmp = this;
|
|
557
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
558
|
+
// Inline function 'kotlin.arrayOf' call
|
|
559
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
560
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
561
|
+
tmp.koa_1 = [lazy(tmp_0, SubjectPublicKeyInfo$Companion$$childSerializers$_anonymous__ezpjw2), null];
|
|
562
|
+
}
|
|
563
|
+
protoOf(Companion_2).g63 = function () {
|
|
564
|
+
return $serializer_getInstance_4();
|
|
565
|
+
};
|
|
566
|
+
var Companion_instance_3;
|
|
567
|
+
function Companion_getInstance_2() {
|
|
568
|
+
if (Companion_instance_3 == null)
|
|
569
|
+
new Companion_2();
|
|
570
|
+
return Companion_instance_3;
|
|
571
|
+
}
|
|
572
|
+
function $serializer_2() {
|
|
573
|
+
$serializer_instance_2 = this;
|
|
574
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.modules.SubjectPublicKeyInfo', this, 2);
|
|
575
|
+
tmp0_serialDesc.r13('algorithm', false);
|
|
576
|
+
tmp0_serialDesc.r13('subjectPublicKey', false);
|
|
577
|
+
this.loa_1 = tmp0_serialDesc;
|
|
578
|
+
}
|
|
579
|
+
protoOf($serializer_2).moa = function (encoder, value) {
|
|
580
|
+
var tmp0_desc = this.loa_1;
|
|
581
|
+
var tmp1_output = encoder.ew(tmp0_desc);
|
|
582
|
+
var tmp2_cached = Companion_getInstance_2().koa_1;
|
|
583
|
+
tmp1_output.vx(tmp0_desc, 0, tmp2_cached[0].n1(), value.noa_1);
|
|
584
|
+
tmp1_output.vx(tmp0_desc, 1, $serializer_getInstance_0(), value.ooa_1);
|
|
585
|
+
tmp1_output.fw(tmp0_desc);
|
|
586
|
+
};
|
|
587
|
+
protoOf($serializer_2).ct = function (encoder, value) {
|
|
588
|
+
return this.moa(encoder, value instanceof SubjectPublicKeyInfo ? value : THROW_CCE());
|
|
589
|
+
};
|
|
590
|
+
protoOf($serializer_2).dt = function (decoder) {
|
|
591
|
+
var tmp0_desc = this.loa_1;
|
|
592
|
+
var tmp1_flag = true;
|
|
593
|
+
var tmp2_index = 0;
|
|
594
|
+
var tmp3_bitMask0 = 0;
|
|
595
|
+
var tmp4_local0 = null;
|
|
596
|
+
var tmp5_local1 = null;
|
|
597
|
+
var tmp6_input = decoder.ew(tmp0_desc);
|
|
598
|
+
var tmp7_cached = Companion_getInstance_2().koa_1;
|
|
599
|
+
if (tmp6_input.uw()) {
|
|
600
|
+
tmp4_local0 = tmp6_input.qw(tmp0_desc, 0, tmp7_cached[0].n1(), tmp4_local0);
|
|
601
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
602
|
+
tmp5_local1 = tmp6_input.qw(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
603
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
604
|
+
} else
|
|
605
|
+
while (tmp1_flag) {
|
|
606
|
+
tmp2_index = tmp6_input.vw(tmp0_desc);
|
|
607
|
+
switch (tmp2_index) {
|
|
608
|
+
case -1:
|
|
609
|
+
tmp1_flag = false;
|
|
610
|
+
break;
|
|
611
|
+
case 0:
|
|
612
|
+
tmp4_local0 = tmp6_input.qw(tmp0_desc, 0, tmp7_cached[0].n1(), tmp4_local0);
|
|
613
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
614
|
+
break;
|
|
615
|
+
case 1:
|
|
616
|
+
tmp5_local1 = tmp6_input.qw(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
617
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
618
|
+
break;
|
|
619
|
+
default:
|
|
620
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
tmp6_input.fw(tmp0_desc);
|
|
624
|
+
return SubjectPublicKeyInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
625
|
+
};
|
|
626
|
+
protoOf($serializer_2).ps = function () {
|
|
627
|
+
return this.loa_1;
|
|
628
|
+
};
|
|
629
|
+
protoOf($serializer_2).k14 = function () {
|
|
630
|
+
// Inline function 'kotlin.arrayOf' call
|
|
631
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
632
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
633
|
+
return [Companion_getInstance_2().koa_1[0].n1(), $serializer_getInstance_0()];
|
|
634
|
+
};
|
|
635
|
+
var $serializer_instance_2;
|
|
636
|
+
function $serializer_getInstance_4() {
|
|
637
|
+
if ($serializer_instance_2 == null)
|
|
638
|
+
new $serializer_2();
|
|
639
|
+
return $serializer_instance_2;
|
|
640
|
+
}
|
|
641
|
+
function SubjectPublicKeyInfo_init_$Init$(seen0, algorithm, subjectPublicKey, serializationConstructorMarker, $this) {
|
|
642
|
+
if (!(3 === (3 & seen0))) {
|
|
643
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_4().loa_1);
|
|
644
|
+
}
|
|
645
|
+
$this.noa_1 = algorithm;
|
|
646
|
+
$this.ooa_1 = subjectPublicKey;
|
|
647
|
+
return $this;
|
|
648
|
+
}
|
|
649
|
+
function SubjectPublicKeyInfo_init_$Create$(seen0, algorithm, subjectPublicKey, serializationConstructorMarker) {
|
|
650
|
+
return SubjectPublicKeyInfo_init_$Init$(seen0, algorithm, subjectPublicKey, serializationConstructorMarker, objectCreate(protoOf(SubjectPublicKeyInfo)));
|
|
651
|
+
}
|
|
652
|
+
function SubjectPublicKeyInfo(algorithm, subjectPublicKey) {
|
|
653
|
+
Companion_getInstance_2();
|
|
654
|
+
this.noa_1 = algorithm;
|
|
655
|
+
this.ooa_1 = subjectPublicKey;
|
|
656
|
+
}
|
|
657
|
+
function RsaKeyAlgorithmIdentifier() {
|
|
658
|
+
}
|
|
659
|
+
protoOf(RsaKeyAlgorithmIdentifier).io9 = function () {
|
|
660
|
+
return get_RSA(Companion_instance);
|
|
661
|
+
};
|
|
662
|
+
protoOf(RsaKeyAlgorithmIdentifier).boa = function () {
|
|
663
|
+
return null;
|
|
664
|
+
};
|
|
665
|
+
var RsaKeyAlgorithmIdentifier_instance;
|
|
666
|
+
function RsaKeyAlgorithmIdentifier_getInstance() {
|
|
667
|
+
return RsaKeyAlgorithmIdentifier_instance;
|
|
668
|
+
}
|
|
669
|
+
function get_RSA(_this__u8e3s4) {
|
|
670
|
+
return _ObjectIdentifier___init__impl__7hutfr('1.2.840.113549.1.1.1');
|
|
671
|
+
}
|
|
672
|
+
//region block: post-declaration
|
|
673
|
+
protoOf($serializer).l14 = typeParametersSerializers;
|
|
674
|
+
protoOf($serializer_0).l14 = typeParametersSerializers;
|
|
675
|
+
protoOf($serializer_1).l14 = typeParametersSerializers;
|
|
676
|
+
protoOf($serializer_2).l14 = typeParametersSerializers;
|
|
677
|
+
//endregion
|
|
678
|
+
//region block: init
|
|
679
|
+
Companion_instance_0 = new Companion();
|
|
680
|
+
Companion_instance_1 = new Companion_0();
|
|
681
|
+
RsaKeyAlgorithmIdentifier_instance = new RsaKeyAlgorithmIdentifier();
|
|
682
|
+
//endregion
|
|
683
|
+
//region block: exports
|
|
684
|
+
export {
|
|
685
|
+
EcKeyAlgorithmIdentifier as EcKeyAlgorithmIdentifierwk35bb676c3o,
|
|
686
|
+
EcParameters as EcParameters35jj38oq07nkm,
|
|
687
|
+
EcPrivateKey as EcPrivateKey2terz948ch7xt,
|
|
688
|
+
PrivateKeyInfo as PrivateKeyInfou42ielkmgvu2,
|
|
689
|
+
SubjectPublicKeyInfo as SubjectPublicKeyInfo1tner6n57cb2l,
|
|
690
|
+
get_secp256r1 as get_secp256r12zskpql6xanyk,
|
|
691
|
+
get_secp384r1 as get_secp384r13mvgyp383nadu,
|
|
692
|
+
get_secp521r1 as get_secp521r13hkek2jcv829c,
|
|
693
|
+
_EcParameters___init__impl__i4ww9z as _EcParameters___init__impl__i4ww9zuq3d437583rt,
|
|
694
|
+
Companion_instance_1 as Companion_instancee26uvkz58yu2,
|
|
695
|
+
Companion_getInstance_1 as Companion_getInstance35lgvne8zdkvz,
|
|
696
|
+
RsaKeyAlgorithmIdentifier_instance as RsaKeyAlgorithmIdentifier_instance1snja7vvnuucb,
|
|
697
|
+
Companion_getInstance_2 as Companion_getInstancetforjfrroc8h,
|
|
698
|
+
};
|
|
699
|
+
//endregion
|
|
700
|
+
|
|
701
|
+
//# sourceMappingURL=cryptography-kotlin-cryptography-serialization-asn1-modules.mjs.map
|