@solibo/solibo-sdk 1.0.35 → 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 -579
- package/index.js +2 -578
- 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 -194775
- package/solibo-sdk-sdk-home-api.js.map +0 -1
- package/solibo-sdk-sdk.d.ts +0 -14248
- package/solibo-sdk-sdk.js +0 -7897
- package/solibo-sdk-sdk.js.map +0 -1
|
@@ -0,0 +1,1413 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
3
|
+
Enum3alwj03lh1n41 as Enum,
|
|
4
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
5
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
6
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
7
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
8
|
+
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
9
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
10
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
11
|
+
last1x5hqf11b8kkw as last,
|
|
12
|
+
countTrailingZeroBitszhs0313cn11e as countTrailingZeroBits,
|
|
13
|
+
toString1pkumu07cwy4m as toString,
|
|
14
|
+
IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
|
|
15
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
16
|
+
copyOfRange3alro60z4hhf8 as copyOfRange,
|
|
17
|
+
takeHighestOneBit9p7rdtda63bc as takeHighestOneBit,
|
|
18
|
+
copyOfwy6h3t5vzqpl as copyOf,
|
|
19
|
+
toByte4i43936u611k as toByte,
|
|
20
|
+
arrayCopytctsywo3h7gj as arrayCopy,
|
|
21
|
+
equals2au1ep9vhcato as equals,
|
|
22
|
+
isByteArray4nnzfn1x4o3w as isByteArray,
|
|
23
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
24
|
+
StringBuilder_init_$Create$322n630qt3r8c as StringBuilder_init_$Create$,
|
|
25
|
+
_Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
|
|
26
|
+
split2bvyvnrlcifjv as split,
|
|
27
|
+
toInt2q8uldh7sc951 as toInt,
|
|
28
|
+
_UByte___init__impl__g9hnc418b8pq346rvu4 as _UByte___init__impl__g9hnc4,
|
|
29
|
+
toStringicfo093rs8qc as toString_0,
|
|
30
|
+
UBytep4j7r1t64gz1 as UByte,
|
|
31
|
+
} from './kotlin-kotlin-stdlib.mjs';
|
|
32
|
+
import {
|
|
33
|
+
PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
|
|
34
|
+
ByteArraySerializer_getInstancebtnovhz524d2 as ByteArraySerializer_getInstance,
|
|
35
|
+
UnknownFieldException_init_$Create$2dwzk7svpmqo1 as UnknownFieldException_init_$Create$,
|
|
36
|
+
IntSerializer_getInstance3pev8isxtkhc2 as IntSerializer_getInstance,
|
|
37
|
+
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
38
|
+
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
39
|
+
throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
|
|
40
|
+
EmptySerializersModule991ju6pz9b79 as EmptySerializersModule,
|
|
41
|
+
BinaryFormat3f3aelhmz0ro1 as BinaryFormat,
|
|
42
|
+
InlineClassDescriptor2odlvyasjrmr0 as InlineClassDescriptor,
|
|
43
|
+
StringSerializer_getInstance2hpyx1v3alnih as StringSerializer_getInstance,
|
|
44
|
+
AbstractDecoder35guh02ubh2hm as AbstractDecoder,
|
|
45
|
+
ByteArraySerializersn06x87bo7h0 as ByteArraySerializer,
|
|
46
|
+
PolymorphicKindla9gurooefwb as PolymorphicKind,
|
|
47
|
+
CLASS_getInstance3v12utpo53nyi as CLASS_getInstance,
|
|
48
|
+
SerializationException_init_$Create$2gf2fbfh3gfxm as SerializationException_init_$Create$,
|
|
49
|
+
AbstractEncoder2gxtu3xmy3f8j as AbstractEncoder,
|
|
50
|
+
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
51
|
+
import {
|
|
52
|
+
Companion_getInstance2wwh92wx91oht as Companion_getInstance,
|
|
53
|
+
toBigInt2ed03w99r27qk as toBigInt,
|
|
54
|
+
toBigInt29u3xna2n8w21 as toBigInt_0,
|
|
55
|
+
toBigInt3kphjqnio21gn as toBigInt_1,
|
|
56
|
+
toBigInt11bczolyoumqk as toBigInt_2,
|
|
57
|
+
BigInt23zwv5kv3od56 as BigInt,
|
|
58
|
+
decodeToBigInt1petkle13vaiv as decodeToBigInt,
|
|
59
|
+
encodeToByteArrayripney4e4aue as encodeToByteArray,
|
|
60
|
+
} from './cryptography-kotlin-cryptography-bigint.mjs';
|
|
61
|
+
//region block: imports
|
|
62
|
+
var imul = Math.imul;
|
|
63
|
+
var clz32 = Math.clz32;
|
|
64
|
+
//endregion
|
|
65
|
+
//region block: pre-declaration
|
|
66
|
+
initMetadataForClass(TagType, 'TagType', VOID, Enum);
|
|
67
|
+
initMetadataForClass(ContextSpecificTag, 'ContextSpecificTag');
|
|
68
|
+
initMetadataForCompanion(Companion);
|
|
69
|
+
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
70
|
+
initMetadataForClass(BitArray, 'BitArray', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
71
|
+
initMetadataForClass(Der, 'Der', VOID, VOID, [BinaryFormat]);
|
|
72
|
+
initMetadataForObject(Default, 'Default', VOID, Der);
|
|
73
|
+
initMetadataForCompanion(Companion_0);
|
|
74
|
+
initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
75
|
+
initMetadataForClass(ObjectIdentifier, 'ObjectIdentifier', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
|
|
76
|
+
initMetadataForClass(ByteArrayInput, 'ByteArrayInput');
|
|
77
|
+
initMetadataForClass(ByteArrayOutput, 'ByteArrayOutput', ByteArrayOutput);
|
|
78
|
+
initMetadataForClass(DerDecoder, 'DerDecoder', VOID, AbstractDecoder);
|
|
79
|
+
initMetadataForClass(DerEncoder, 'DerEncoder', VOID, AbstractEncoder);
|
|
80
|
+
initMetadataForClass(DerInput, 'DerInput');
|
|
81
|
+
initMetadataForClass(DerOutput, 'DerOutput');
|
|
82
|
+
//endregion
|
|
83
|
+
var TagType_IMPLICIT_instance;
|
|
84
|
+
var TagType_EXPLICIT_instance;
|
|
85
|
+
var TagType_entriesInitialized;
|
|
86
|
+
function TagType_initEntries() {
|
|
87
|
+
if (TagType_entriesInitialized)
|
|
88
|
+
return Unit_instance;
|
|
89
|
+
TagType_entriesInitialized = true;
|
|
90
|
+
TagType_IMPLICIT_instance = new TagType('IMPLICIT', 0);
|
|
91
|
+
TagType_EXPLICIT_instance = new TagType('EXPLICIT', 1);
|
|
92
|
+
}
|
|
93
|
+
function TagType(name, ordinal) {
|
|
94
|
+
Enum.call(this, name, ordinal);
|
|
95
|
+
}
|
|
96
|
+
function TagType_EXPLICIT_getInstance() {
|
|
97
|
+
TagType_initEntries();
|
|
98
|
+
return TagType_EXPLICIT_instance;
|
|
99
|
+
}
|
|
100
|
+
function ContextSpecificTag(classIndex, type) {
|
|
101
|
+
this.ko7_1 = classIndex;
|
|
102
|
+
this.lo7_1 = type;
|
|
103
|
+
}
|
|
104
|
+
protoOf(ContextSpecificTag).equals = function (other) {
|
|
105
|
+
if (!(other instanceof ContextSpecificTag))
|
|
106
|
+
return false;
|
|
107
|
+
var tmp0_other_with_cast = other instanceof ContextSpecificTag ? other : THROW_CCE();
|
|
108
|
+
if (!(this.ko7_1 === tmp0_other_with_cast.ko7_1))
|
|
109
|
+
return false;
|
|
110
|
+
if (!this.lo7_1.equals(tmp0_other_with_cast.lo7_1))
|
|
111
|
+
return false;
|
|
112
|
+
return true;
|
|
113
|
+
};
|
|
114
|
+
protoOf(ContextSpecificTag).hashCode = function () {
|
|
115
|
+
var result = imul(getStringHashCode('classIndex'), 127) ^ this.ko7_1;
|
|
116
|
+
result = result + (imul(getStringHashCode('type'), 127) ^ this.lo7_1.hashCode()) | 0;
|
|
117
|
+
return result;
|
|
118
|
+
};
|
|
119
|
+
protoOf(ContextSpecificTag).toString = function () {
|
|
120
|
+
return '@dev.whyoleg.cryptography.serialization.asn1.ContextSpecificTag(' + 'classIndex=' + this.ko7_1 + ', ' + 'type=' + this.lo7_1.toString() + ')';
|
|
121
|
+
};
|
|
122
|
+
function Companion() {
|
|
123
|
+
}
|
|
124
|
+
protoOf(Companion).g63 = function () {
|
|
125
|
+
return $serializer_getInstance();
|
|
126
|
+
};
|
|
127
|
+
var Companion_instance;
|
|
128
|
+
function Companion_getInstance_0() {
|
|
129
|
+
return Companion_instance;
|
|
130
|
+
}
|
|
131
|
+
function $serializer() {
|
|
132
|
+
$serializer_instance = this;
|
|
133
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('dev.whyoleg.cryptography.serialization.asn1.BitArray', this, 2);
|
|
134
|
+
tmp0_serialDesc.r13('unusedBits', false);
|
|
135
|
+
tmp0_serialDesc.r13('byteArray', false);
|
|
136
|
+
this.mo7_1 = tmp0_serialDesc;
|
|
137
|
+
}
|
|
138
|
+
protoOf($serializer).no7 = function (encoder, value) {
|
|
139
|
+
var tmp0_desc = this.mo7_1;
|
|
140
|
+
var tmp1_output = encoder.ew(tmp0_desc);
|
|
141
|
+
tmp1_output.ox(tmp0_desc, 0, value.oo7_1);
|
|
142
|
+
tmp1_output.vx(tmp0_desc, 1, ByteArraySerializer_getInstance(), value.po7_1);
|
|
143
|
+
tmp1_output.fw(tmp0_desc);
|
|
144
|
+
};
|
|
145
|
+
protoOf($serializer).ct = function (encoder, value) {
|
|
146
|
+
return this.no7(encoder, value instanceof BitArray ? value : THROW_CCE());
|
|
147
|
+
};
|
|
148
|
+
protoOf($serializer).dt = function (decoder) {
|
|
149
|
+
var tmp0_desc = this.mo7_1;
|
|
150
|
+
var tmp1_flag = true;
|
|
151
|
+
var tmp2_index = 0;
|
|
152
|
+
var tmp3_bitMask0 = 0;
|
|
153
|
+
var tmp4_local0 = 0;
|
|
154
|
+
var tmp5_local1 = null;
|
|
155
|
+
var tmp6_input = decoder.ew(tmp0_desc);
|
|
156
|
+
if (tmp6_input.uw()) {
|
|
157
|
+
tmp4_local0 = tmp6_input.jw(tmp0_desc, 0);
|
|
158
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
159
|
+
tmp5_local1 = tmp6_input.qw(tmp0_desc, 1, ByteArraySerializer_getInstance(), tmp5_local1);
|
|
160
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
161
|
+
} else
|
|
162
|
+
while (tmp1_flag) {
|
|
163
|
+
tmp2_index = tmp6_input.vw(tmp0_desc);
|
|
164
|
+
switch (tmp2_index) {
|
|
165
|
+
case -1:
|
|
166
|
+
tmp1_flag = false;
|
|
167
|
+
break;
|
|
168
|
+
case 0:
|
|
169
|
+
tmp4_local0 = tmp6_input.jw(tmp0_desc, 0);
|
|
170
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
171
|
+
break;
|
|
172
|
+
case 1:
|
|
173
|
+
tmp5_local1 = tmp6_input.qw(tmp0_desc, 1, ByteArraySerializer_getInstance(), tmp5_local1);
|
|
174
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
175
|
+
break;
|
|
176
|
+
default:
|
|
177
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
tmp6_input.fw(tmp0_desc);
|
|
181
|
+
return BitArray_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
182
|
+
};
|
|
183
|
+
protoOf($serializer).ps = function () {
|
|
184
|
+
return this.mo7_1;
|
|
185
|
+
};
|
|
186
|
+
protoOf($serializer).k14 = function () {
|
|
187
|
+
// Inline function 'kotlin.arrayOf' call
|
|
188
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
189
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
190
|
+
return [IntSerializer_getInstance(), ByteArraySerializer_getInstance()];
|
|
191
|
+
};
|
|
192
|
+
var $serializer_instance;
|
|
193
|
+
function $serializer_getInstance() {
|
|
194
|
+
if ($serializer_instance == null)
|
|
195
|
+
new $serializer();
|
|
196
|
+
return $serializer_instance;
|
|
197
|
+
}
|
|
198
|
+
function BitArray_init_$Init$(seen0, unusedBits, byteArray, serializationConstructorMarker, $this) {
|
|
199
|
+
if (!(3 === (3 & seen0))) {
|
|
200
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().mo7_1);
|
|
201
|
+
}
|
|
202
|
+
$this.oo7_1 = unusedBits;
|
|
203
|
+
$this.po7_1 = byteArray;
|
|
204
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
205
|
+
if ($this.po7_1.length === 0) {
|
|
206
|
+
// Inline function 'kotlin.check' call
|
|
207
|
+
if (!($this.oo7_1 === 0)) {
|
|
208
|
+
var message = "empty array couldn't have unused bits";
|
|
209
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
210
|
+
}
|
|
211
|
+
} else {
|
|
212
|
+
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
213
|
+
var this_0 = last($this.po7_1);
|
|
214
|
+
var tmp$ret$3 = countTrailingZeroBits(this_0 | 256);
|
|
215
|
+
// Inline function 'kotlin.check' call
|
|
216
|
+
if (!($this.oo7_1 <= tmp$ret$3)) {
|
|
217
|
+
var message_0 = 'At least ' + $this.oo7_1 + ' last bits should be unused';
|
|
218
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return $this;
|
|
222
|
+
}
|
|
223
|
+
function BitArray_init_$Create$(seen0, unusedBits, byteArray, serializationConstructorMarker) {
|
|
224
|
+
return BitArray_init_$Init$(seen0, unusedBits, byteArray, serializationConstructorMarker, objectCreate(protoOf(BitArray)));
|
|
225
|
+
}
|
|
226
|
+
function BitArray(unusedBits, byteArray) {
|
|
227
|
+
this.oo7_1 = unusedBits;
|
|
228
|
+
this.po7_1 = byteArray;
|
|
229
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
230
|
+
if (this.po7_1.length === 0) {
|
|
231
|
+
// Inline function 'kotlin.check' call
|
|
232
|
+
if (!(this.oo7_1 === 0)) {
|
|
233
|
+
var message = "empty array couldn't have unused bits";
|
|
234
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
235
|
+
}
|
|
236
|
+
} else {
|
|
237
|
+
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
238
|
+
var this_0 = last(this.po7_1);
|
|
239
|
+
var tmp$ret$3 = countTrailingZeroBits(this_0 | 256);
|
|
240
|
+
// Inline function 'kotlin.check' call
|
|
241
|
+
if (!(this.oo7_1 <= tmp$ret$3)) {
|
|
242
|
+
var message_0 = 'At least ' + this.oo7_1 + ' last bits should be unused';
|
|
243
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
function Default() {
|
|
248
|
+
Default_instance = this;
|
|
249
|
+
Der.call(this, EmptySerializersModule());
|
|
250
|
+
}
|
|
251
|
+
var Default_instance;
|
|
252
|
+
function Default_getInstance() {
|
|
253
|
+
if (Default_instance == null)
|
|
254
|
+
new Default();
|
|
255
|
+
return Default_instance;
|
|
256
|
+
}
|
|
257
|
+
function Der(serializersModule) {
|
|
258
|
+
Default_getInstance();
|
|
259
|
+
this.qo7_1 = serializersModule;
|
|
260
|
+
}
|
|
261
|
+
protoOf(Der).at = function () {
|
|
262
|
+
return this.qo7_1;
|
|
263
|
+
};
|
|
264
|
+
protoOf(Der).yt = function (serializer, value) {
|
|
265
|
+
var output = new ByteArrayOutput();
|
|
266
|
+
(new DerEncoder(this, output)).bt(serializer, value);
|
|
267
|
+
return output.xo7();
|
|
268
|
+
};
|
|
269
|
+
protoOf(Der).zt = function (deserializer, bytes) {
|
|
270
|
+
var input = new ByteArrayInput(bytes);
|
|
271
|
+
return (new DerDecoder(this, input)).et(deserializer);
|
|
272
|
+
};
|
|
273
|
+
function _ObjectIdentifier___init__impl__7hutfr(value) {
|
|
274
|
+
return value;
|
|
275
|
+
}
|
|
276
|
+
function _ObjectIdentifier___get_value__impl__wqzjw3($this) {
|
|
277
|
+
return $this;
|
|
278
|
+
}
|
|
279
|
+
function Companion_0() {
|
|
280
|
+
}
|
|
281
|
+
protoOf(Companion_0).g63 = function () {
|
|
282
|
+
return $serializer_getInstance_0();
|
|
283
|
+
};
|
|
284
|
+
var Companion_instance_0;
|
|
285
|
+
function Companion_getInstance_1() {
|
|
286
|
+
return Companion_instance_0;
|
|
287
|
+
}
|
|
288
|
+
function $serializer_0() {
|
|
289
|
+
$serializer_instance_0 = this;
|
|
290
|
+
var tmp0_serialDesc = new InlineClassDescriptor('dev.whyoleg.cryptography.serialization.asn1.ObjectIdentifier', this);
|
|
291
|
+
tmp0_serialDesc.r13('value', false);
|
|
292
|
+
this.co8_1 = tmp0_serialDesc;
|
|
293
|
+
}
|
|
294
|
+
protoOf($serializer_0).do8 = function (encoder, value) {
|
|
295
|
+
var tmp0_inlineEncoder = encoder.kx(this.co8_1);
|
|
296
|
+
if (tmp0_inlineEncoder == null)
|
|
297
|
+
null;
|
|
298
|
+
else {
|
|
299
|
+
tmp0_inlineEncoder.ix(_ObjectIdentifier___get_value__impl__wqzjw3(value));
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
protoOf($serializer_0).ct = function (encoder, value) {
|
|
303
|
+
return this.do8(encoder, value instanceof ObjectIdentifier ? value.eo8_1 : THROW_CCE());
|
|
304
|
+
};
|
|
305
|
+
protoOf($serializer_0).fo8 = function (decoder) {
|
|
306
|
+
return _ObjectIdentifier___init__impl__7hutfr(decoder.cw(this.co8_1).aw());
|
|
307
|
+
};
|
|
308
|
+
protoOf($serializer_0).dt = function (decoder) {
|
|
309
|
+
return new ObjectIdentifier(this.fo8(decoder));
|
|
310
|
+
};
|
|
311
|
+
protoOf($serializer_0).ps = function () {
|
|
312
|
+
return this.co8_1;
|
|
313
|
+
};
|
|
314
|
+
protoOf($serializer_0).k14 = function () {
|
|
315
|
+
// Inline function 'kotlin.arrayOf' call
|
|
316
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
317
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
318
|
+
return [StringSerializer_getInstance()];
|
|
319
|
+
};
|
|
320
|
+
var $serializer_instance_0;
|
|
321
|
+
function $serializer_getInstance_0() {
|
|
322
|
+
if ($serializer_instance_0 == null)
|
|
323
|
+
new $serializer_0();
|
|
324
|
+
return $serializer_instance_0;
|
|
325
|
+
}
|
|
326
|
+
function ObjectIdentifier__toString_impl_dtwsrd($this) {
|
|
327
|
+
return 'ObjectIdentifier(value=' + $this + ')';
|
|
328
|
+
}
|
|
329
|
+
function ObjectIdentifier__hashCode_impl_7x941i($this) {
|
|
330
|
+
return getStringHashCode($this);
|
|
331
|
+
}
|
|
332
|
+
function ObjectIdentifier__equals_impl_u5dbkq($this, other) {
|
|
333
|
+
if (!(other instanceof ObjectIdentifier))
|
|
334
|
+
return false;
|
|
335
|
+
if (!($this === (other instanceof ObjectIdentifier ? other.eo8_1 : THROW_CCE())))
|
|
336
|
+
return false;
|
|
337
|
+
return true;
|
|
338
|
+
}
|
|
339
|
+
function ObjectIdentifier(value) {
|
|
340
|
+
this.eo8_1 = value;
|
|
341
|
+
}
|
|
342
|
+
protoOf(ObjectIdentifier).toString = function () {
|
|
343
|
+
return ObjectIdentifier__toString_impl_dtwsrd(this.eo8_1);
|
|
344
|
+
};
|
|
345
|
+
protoOf(ObjectIdentifier).hashCode = function () {
|
|
346
|
+
return ObjectIdentifier__hashCode_impl_7x941i(this.eo8_1);
|
|
347
|
+
};
|
|
348
|
+
protoOf(ObjectIdentifier).equals = function (other) {
|
|
349
|
+
return ObjectIdentifier__equals_impl_u5dbkq(this.eo8_1, other);
|
|
350
|
+
};
|
|
351
|
+
function get_emptyArray() {
|
|
352
|
+
_init_properties_ByteArrayInput_kt__imea6f();
|
|
353
|
+
return emptyArray;
|
|
354
|
+
}
|
|
355
|
+
var emptyArray;
|
|
356
|
+
function _get_available__saq0tk($this) {
|
|
357
|
+
return $this.ho8_1 - $this.io8_1 | 0;
|
|
358
|
+
}
|
|
359
|
+
function ensureAvailableBytes($this, count) {
|
|
360
|
+
// Inline function 'kotlin.check' call
|
|
361
|
+
if (!(_get_available__saq0tk($this) >= count)) {
|
|
362
|
+
var message = 'Unexpected EOF, available ' + _get_available__saq0tk($this) + ' bytes, requested: ' + count;
|
|
363
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
function ByteArrayInput(array, startIndex, endIndex) {
|
|
367
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
368
|
+
endIndex = endIndex === VOID ? array.length : endIndex;
|
|
369
|
+
this.go8_1 = array;
|
|
370
|
+
this.ho8_1 = endIndex;
|
|
371
|
+
this.io8_1 = startIndex;
|
|
372
|
+
}
|
|
373
|
+
protoOf(ByteArrayInput).jo8 = function () {
|
|
374
|
+
return _get_available__saq0tk(this) === 0;
|
|
375
|
+
};
|
|
376
|
+
protoOf(ByteArrayInput).toString = function () {
|
|
377
|
+
return 'ByteArrayInput(size=' + this.go8_1.length + ', endIndex=' + this.ho8_1 + ', position=' + this.io8_1 + ', available=' + _get_available__saq0tk(this) + ')';
|
|
378
|
+
};
|
|
379
|
+
protoOf(ByteArrayInput).ko8 = function () {
|
|
380
|
+
ensureAvailableBytes(this, 1);
|
|
381
|
+
return this.go8_1[this.io8_1];
|
|
382
|
+
};
|
|
383
|
+
protoOf(ByteArrayInput).x66 = function () {
|
|
384
|
+
ensureAvailableBytes(this, 1);
|
|
385
|
+
var _unary__edvuaz = this.io8_1;
|
|
386
|
+
this.io8_1 = _unary__edvuaz + 1 | 0;
|
|
387
|
+
return this.go8_1[_unary__edvuaz];
|
|
388
|
+
};
|
|
389
|
+
protoOf(ByteArrayInput).lo8 = function (length) {
|
|
390
|
+
ensureAvailableBytes(this, length);
|
|
391
|
+
if (length === 0)
|
|
392
|
+
return get_emptyArray();
|
|
393
|
+
// Inline function 'kotlin.also' call
|
|
394
|
+
var this_0 = copyOfRange(this.go8_1, this.io8_1, this.io8_1 + length | 0);
|
|
395
|
+
this.io8_1 = this.io8_1 + length | 0;
|
|
396
|
+
return this_0;
|
|
397
|
+
};
|
|
398
|
+
protoOf(ByteArrayInput).mo8 = function (length) {
|
|
399
|
+
ensureAvailableBytes(this, length);
|
|
400
|
+
if (length === 0)
|
|
401
|
+
return new ByteArrayInput(get_emptyArray());
|
|
402
|
+
// Inline function 'kotlin.also' call
|
|
403
|
+
var this_0 = new ByteArrayInput(this.go8_1, this.io8_1, this.io8_1 + length | 0);
|
|
404
|
+
this.io8_1 = this.io8_1 + length | 0;
|
|
405
|
+
return this_0;
|
|
406
|
+
};
|
|
407
|
+
var properties_initialized_ByteArrayInput_kt_acgl39;
|
|
408
|
+
function _init_properties_ByteArrayInput_kt__imea6f() {
|
|
409
|
+
if (!properties_initialized_ByteArrayInput_kt_acgl39) {
|
|
410
|
+
properties_initialized_ByteArrayInput_kt_acgl39 = true;
|
|
411
|
+
emptyArray = new Int8Array(0);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
function ensureCapacity($this, elementsToAppend) {
|
|
415
|
+
if (($this.wo7_1 + elementsToAppend | 0) <= $this.vo7_1.length)
|
|
416
|
+
return Unit_instance;
|
|
417
|
+
$this.vo7_1 = copyOf($this.vo7_1, takeHighestOneBit($this.wo7_1 + elementsToAppend | 0) << 1);
|
|
418
|
+
}
|
|
419
|
+
function ByteArrayOutput() {
|
|
420
|
+
this.vo7_1 = new Int8Array(32);
|
|
421
|
+
this.wo7_1 = 0;
|
|
422
|
+
}
|
|
423
|
+
protoOf(ByteArrayOutput).g1 = function () {
|
|
424
|
+
return this.wo7_1;
|
|
425
|
+
};
|
|
426
|
+
protoOf(ByteArrayOutput).xo7 = function () {
|
|
427
|
+
return copyOf(this.vo7_1, this.wo7_1);
|
|
428
|
+
};
|
|
429
|
+
protoOf(ByteArrayOutput).no8 = function (byte) {
|
|
430
|
+
ensureCapacity(this, 1);
|
|
431
|
+
var tmp = this.vo7_1;
|
|
432
|
+
var _unary__edvuaz = this.wo7_1;
|
|
433
|
+
this.wo7_1 = _unary__edvuaz + 1 | 0;
|
|
434
|
+
tmp[_unary__edvuaz] = byte;
|
|
435
|
+
};
|
|
436
|
+
protoOf(ByteArrayOutput).oo8 = function (byte) {
|
|
437
|
+
this.no8(toByte(byte));
|
|
438
|
+
};
|
|
439
|
+
protoOf(ByteArrayOutput).po8 = function (bytes) {
|
|
440
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
441
|
+
if (bytes.length === 0)
|
|
442
|
+
return Unit_instance;
|
|
443
|
+
ensureCapacity(this, bytes.length);
|
|
444
|
+
var tmp2 = this.vo7_1;
|
|
445
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
446
|
+
var destinationOffset = this.wo7_1;
|
|
447
|
+
var endIndex = bytes.length;
|
|
448
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
449
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
450
|
+
var tmp = bytes;
|
|
451
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
452
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
453
|
+
arrayCopy(tmp, tmp2, destinationOffset, 0, endIndex);
|
|
454
|
+
this.wo7_1 = this.wo7_1 + bytes.length | 0;
|
|
455
|
+
};
|
|
456
|
+
protoOf(ByteArrayOutput).qo8 = function (output) {
|
|
457
|
+
if (output.g1() === 0)
|
|
458
|
+
return Unit_instance;
|
|
459
|
+
ensureCapacity(this, output.wo7_1);
|
|
460
|
+
var tmp0 = output.vo7_1;
|
|
461
|
+
var tmp2 = this.vo7_1;
|
|
462
|
+
var tmp4 = this.wo7_1;
|
|
463
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
464
|
+
var endIndex = output.wo7_1;
|
|
465
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
466
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
467
|
+
var tmp = tmp0;
|
|
468
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
469
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
470
|
+
arrayCopy(tmp, tmp2, tmp4, 0, endIndex);
|
|
471
|
+
this.wo7_1 = this.wo7_1 + output.wo7_1 | 0;
|
|
472
|
+
};
|
|
473
|
+
function getAndResetTagOverride($this) {
|
|
474
|
+
var tag = $this.bo8_1;
|
|
475
|
+
$this.bo8_1 = null;
|
|
476
|
+
return tag;
|
|
477
|
+
}
|
|
478
|
+
function DerDecoder(der, byteArrayInput) {
|
|
479
|
+
AbstractDecoder.call(this);
|
|
480
|
+
this.yo7_1 = der;
|
|
481
|
+
this.zo7_1 = new DerInput(byteArrayInput);
|
|
482
|
+
this.ao8_1 = 0;
|
|
483
|
+
this.bo8_1 = null;
|
|
484
|
+
}
|
|
485
|
+
protoOf(DerDecoder).at = function () {
|
|
486
|
+
return this.yo7_1.at();
|
|
487
|
+
};
|
|
488
|
+
protoOf(DerDecoder).vw = function (descriptor) {
|
|
489
|
+
if (this.zo7_1.jo8())
|
|
490
|
+
return -1;
|
|
491
|
+
var tag = this.zo7_1.so8();
|
|
492
|
+
$l$loop: while (true) {
|
|
493
|
+
var index = this.ao8_1;
|
|
494
|
+
this.bo8_1 = getElementContextSpecificTag(descriptor, index);
|
|
495
|
+
if (descriptor.uu(index)) {
|
|
496
|
+
var tmp0 = this.bo8_1;
|
|
497
|
+
var tmp$ret$1;
|
|
498
|
+
$l$block: {
|
|
499
|
+
// Inline function 'kotlin.checkNotNull' call
|
|
500
|
+
if (tmp0 == null) {
|
|
501
|
+
var message = 'Optional element ' + toString(descriptor) + '[' + index + '] must have context specific tag';
|
|
502
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
503
|
+
} else {
|
|
504
|
+
tmp$ret$1 = tmp0;
|
|
505
|
+
break $l$block;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
var requiredTag = tmp$ret$1;
|
|
509
|
+
if (!(tag === get_tag(requiredTag))) {
|
|
510
|
+
this.ao8_1 = this.ao8_1 + 1 | 0;
|
|
511
|
+
continue $l$loop;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
var _unary__edvuaz = this.ao8_1;
|
|
515
|
+
this.ao8_1 = _unary__edvuaz + 1 | 0;
|
|
516
|
+
return _unary__edvuaz;
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
protoOf(DerDecoder).qv = function () {
|
|
520
|
+
return this.zo7_1.to8();
|
|
521
|
+
};
|
|
522
|
+
protoOf(DerDecoder).rv = function () {
|
|
523
|
+
return this.zo7_1.uo8();
|
|
524
|
+
};
|
|
525
|
+
protoOf(DerDecoder).tv = function () {
|
|
526
|
+
return this.zo7_1.vo8(getAndResetTagOverride(this)).co6();
|
|
527
|
+
};
|
|
528
|
+
protoOf(DerDecoder).uv = function () {
|
|
529
|
+
return this.zo7_1.vo8(getAndResetTagOverride(this)).do6();
|
|
530
|
+
};
|
|
531
|
+
protoOf(DerDecoder).vv = function () {
|
|
532
|
+
return this.zo7_1.vo8(getAndResetTagOverride(this)).eo6();
|
|
533
|
+
};
|
|
534
|
+
protoOf(DerDecoder).wv = function () {
|
|
535
|
+
return this.zo7_1.vo8(getAndResetTagOverride(this)).fo6();
|
|
536
|
+
};
|
|
537
|
+
protoOf(DerDecoder).et = function (deserializer) {
|
|
538
|
+
var tmp0_subject = deserializer.ps();
|
|
539
|
+
var tmp;
|
|
540
|
+
if (equals(tmp0_subject, ByteArraySerializer().ps())) {
|
|
541
|
+
var tmp_0 = this.zo7_1.yo8(getAndResetTagOverride(this));
|
|
542
|
+
tmp = !(tmp_0 == null) ? tmp_0 : THROW_CCE();
|
|
543
|
+
} else if (equals(tmp0_subject, Companion_instance.g63().ps())) {
|
|
544
|
+
var tmp_1 = this.zo7_1.xo8(getAndResetTagOverride(this));
|
|
545
|
+
tmp = !(tmp_1 == null) ? tmp_1 : THROW_CCE();
|
|
546
|
+
} else if (equals(tmp0_subject, Companion_instance_0.g63().ps())) {
|
|
547
|
+
var tmp_2 = this.zo7_1.wo8(getAndResetTagOverride(this));
|
|
548
|
+
tmp = !(new ObjectIdentifier(tmp_2) == null) ? new ObjectIdentifier(tmp_2) : THROW_CCE();
|
|
549
|
+
} else if (equals(tmp0_subject, Companion_getInstance().g63().ps())) {
|
|
550
|
+
var tmp_3 = this.zo7_1.vo8(getAndResetTagOverride(this));
|
|
551
|
+
tmp = !(tmp_3 == null) ? tmp_3 : THROW_CCE();
|
|
552
|
+
} else {
|
|
553
|
+
tmp = deserializer.dt(this);
|
|
554
|
+
}
|
|
555
|
+
return tmp;
|
|
556
|
+
};
|
|
557
|
+
protoOf(DerDecoder).ew = function (descriptor) {
|
|
558
|
+
var tmp0_subject = descriptor.nu();
|
|
559
|
+
var tmp;
|
|
560
|
+
var tmp_0;
|
|
561
|
+
if (equals(tmp0_subject, CLASS_getInstance())) {
|
|
562
|
+
tmp_0 = true;
|
|
563
|
+
} else {
|
|
564
|
+
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
565
|
+
}
|
|
566
|
+
if (tmp_0) {
|
|
567
|
+
tmp = new DerDecoder(this.yo7_1, this.zo7_1.zo8(getAndResetTagOverride(this)));
|
|
568
|
+
} else {
|
|
569
|
+
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
570
|
+
}
|
|
571
|
+
return tmp;
|
|
572
|
+
};
|
|
573
|
+
protoOf(DerDecoder).cw = function (descriptor) {
|
|
574
|
+
return this;
|
|
575
|
+
};
|
|
576
|
+
protoOf(DerDecoder).pw = function (descriptor, index) {
|
|
577
|
+
return this;
|
|
578
|
+
};
|
|
579
|
+
protoOf(DerDecoder).bw = function (enumDescriptor) {
|
|
580
|
+
var message = 'Enum decoding is not supported';
|
|
581
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
582
|
+
};
|
|
583
|
+
protoOf(DerDecoder).aw = function () {
|
|
584
|
+
var message = 'String decoding is not supported';
|
|
585
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
586
|
+
};
|
|
587
|
+
protoOf(DerDecoder).zv = function () {
|
|
588
|
+
var message = 'Char decoding is not supported';
|
|
589
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
590
|
+
};
|
|
591
|
+
protoOf(DerDecoder).sv = function () {
|
|
592
|
+
var message = 'Boolean decoding is not supported';
|
|
593
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
594
|
+
};
|
|
595
|
+
protoOf(DerDecoder).yv = function () {
|
|
596
|
+
var message = 'Double decoding is not supported';
|
|
597
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
598
|
+
};
|
|
599
|
+
protoOf(DerDecoder).xv = function () {
|
|
600
|
+
var message = 'Float decoding is not supported';
|
|
601
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
602
|
+
};
|
|
603
|
+
protoOf(DerDecoder).pv = function () {
|
|
604
|
+
var message = 'should not be called';
|
|
605
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
606
|
+
};
|
|
607
|
+
function getAndResetTagOverride_0($this) {
|
|
608
|
+
var tag = $this.uo7_1;
|
|
609
|
+
$this.uo7_1 = null;
|
|
610
|
+
return tag;
|
|
611
|
+
}
|
|
612
|
+
function DerEncoder(der, byteArrayOutput, parentOutput) {
|
|
613
|
+
parentOutput = parentOutput === VOID ? null : parentOutput;
|
|
614
|
+
AbstractEncoder.call(this);
|
|
615
|
+
this.ro7_1 = der;
|
|
616
|
+
this.so7_1 = parentOutput;
|
|
617
|
+
this.to7_1 = new DerOutput(byteArrayOutput);
|
|
618
|
+
this.uo7_1 = null;
|
|
619
|
+
}
|
|
620
|
+
protoOf(DerEncoder).at = function () {
|
|
621
|
+
return this.ro7_1.at();
|
|
622
|
+
};
|
|
623
|
+
protoOf(DerEncoder).ay = function (descriptor, index) {
|
|
624
|
+
return false;
|
|
625
|
+
};
|
|
626
|
+
protoOf(DerEncoder).xw = function (descriptor, index) {
|
|
627
|
+
this.uo7_1 = getElementContextSpecificTag(descriptor, index);
|
|
628
|
+
return true;
|
|
629
|
+
};
|
|
630
|
+
protoOf(DerEncoder).yx = function () {
|
|
631
|
+
};
|
|
632
|
+
protoOf(DerEncoder).zw = function () {
|
|
633
|
+
return this.to7_1.bo9();
|
|
634
|
+
};
|
|
635
|
+
protoOf(DerEncoder).bx = function (value) {
|
|
636
|
+
return this.to7_1.co9(getAndResetTagOverride_0(this), toBigInt(value));
|
|
637
|
+
};
|
|
638
|
+
protoOf(DerEncoder).cx = function (value) {
|
|
639
|
+
return this.to7_1.co9(getAndResetTagOverride_0(this), toBigInt_0(value));
|
|
640
|
+
};
|
|
641
|
+
protoOf(DerEncoder).dx = function (value) {
|
|
642
|
+
return this.to7_1.co9(getAndResetTagOverride_0(this), toBigInt_1(value));
|
|
643
|
+
};
|
|
644
|
+
protoOf(DerEncoder).ex = function (value) {
|
|
645
|
+
return this.to7_1.co9(getAndResetTagOverride_0(this), toBigInt_2(value));
|
|
646
|
+
};
|
|
647
|
+
protoOf(DerEncoder).bt = function (serializer, value) {
|
|
648
|
+
var tmp0_subject = serializer.ps();
|
|
649
|
+
var tmp;
|
|
650
|
+
if (equals(tmp0_subject, ByteArraySerializer().ps())) {
|
|
651
|
+
var tmp_0 = getAndResetTagOverride_0(this);
|
|
652
|
+
this.to7_1.fo9(tmp_0, (!(value == null) ? isByteArray(value) : false) ? value : THROW_CCE());
|
|
653
|
+
tmp = Unit_instance;
|
|
654
|
+
} else if (equals(tmp0_subject, Companion_instance.g63().ps())) {
|
|
655
|
+
var tmp_1 = getAndResetTagOverride_0(this);
|
|
656
|
+
this.to7_1.eo9(tmp_1, value instanceof BitArray ? value : THROW_CCE());
|
|
657
|
+
tmp = Unit_instance;
|
|
658
|
+
} else if (equals(tmp0_subject, Companion_instance_0.g63().ps())) {
|
|
659
|
+
var tmp_2 = getAndResetTagOverride_0(this);
|
|
660
|
+
this.to7_1.do9(tmp_2, value instanceof ObjectIdentifier ? value.eo8_1 : THROW_CCE());
|
|
661
|
+
tmp = Unit_instance;
|
|
662
|
+
} else if (equals(tmp0_subject, Companion_getInstance().g63().ps())) {
|
|
663
|
+
var tmp_3 = getAndResetTagOverride_0(this);
|
|
664
|
+
this.to7_1.co9(tmp_3, value instanceof BigInt ? value : THROW_CCE());
|
|
665
|
+
tmp = Unit_instance;
|
|
666
|
+
} else {
|
|
667
|
+
serializer.ct(this, value);
|
|
668
|
+
tmp = Unit_instance;
|
|
669
|
+
}
|
|
670
|
+
return tmp;
|
|
671
|
+
};
|
|
672
|
+
protoOf(DerEncoder).ew = function (descriptor) {
|
|
673
|
+
var tmp0_subject = descriptor.nu();
|
|
674
|
+
var tmp;
|
|
675
|
+
var tmp_0;
|
|
676
|
+
if (equals(tmp0_subject, CLASS_getInstance())) {
|
|
677
|
+
tmp_0 = true;
|
|
678
|
+
} else {
|
|
679
|
+
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
680
|
+
}
|
|
681
|
+
if (tmp_0) {
|
|
682
|
+
tmp = new DerEncoder(this.ro7_1, new ByteArrayOutput(), this.to7_1);
|
|
683
|
+
} else {
|
|
684
|
+
throw SerializationException_init_$Create$('This serial kind is not supported as structure: ' + toString(descriptor));
|
|
685
|
+
}
|
|
686
|
+
return tmp;
|
|
687
|
+
};
|
|
688
|
+
protoOf(DerEncoder).fw = function (descriptor) {
|
|
689
|
+
var tmp0 = this.so7_1;
|
|
690
|
+
var tmp$ret$1;
|
|
691
|
+
$l$block: {
|
|
692
|
+
// Inline function 'kotlin.checkNotNull' call
|
|
693
|
+
if (tmp0 == null) {
|
|
694
|
+
var message = 'Should be called after beginStructure';
|
|
695
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
696
|
+
} else {
|
|
697
|
+
tmp$ret$1 = tmp0;
|
|
698
|
+
break $l$block;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
tmp$ret$1.go9(getAndResetTagOverride_0(this), this.to7_1);
|
|
702
|
+
};
|
|
703
|
+
protoOf(DerEncoder).kx = function (descriptor) {
|
|
704
|
+
return this;
|
|
705
|
+
};
|
|
706
|
+
protoOf(DerEncoder).ho9 = function (enumDescriptor, index) {
|
|
707
|
+
var message = 'Enum encoding is not supported';
|
|
708
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
709
|
+
};
|
|
710
|
+
protoOf(DerEncoder).jx = function (enumDescriptor, index) {
|
|
711
|
+
return this.ho9(enumDescriptor, index);
|
|
712
|
+
};
|
|
713
|
+
protoOf(DerEncoder).ix = function (value) {
|
|
714
|
+
var message = 'String encoding is not supported';
|
|
715
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
716
|
+
};
|
|
717
|
+
protoOf(DerEncoder).hx = function (value) {
|
|
718
|
+
var message = 'Char encoding is not supported';
|
|
719
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
720
|
+
};
|
|
721
|
+
protoOf(DerEncoder).ax = function (value) {
|
|
722
|
+
var message = 'Boolean encoding is not supported';
|
|
723
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
724
|
+
};
|
|
725
|
+
protoOf(DerEncoder).fx = function (value) {
|
|
726
|
+
var message = 'Float encoding is not supported';
|
|
727
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
728
|
+
};
|
|
729
|
+
protoOf(DerEncoder).gx = function (value) {
|
|
730
|
+
var message = 'Double encoding is not supported';
|
|
731
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
732
|
+
};
|
|
733
|
+
protoOf(DerEncoder).yw = function (value) {
|
|
734
|
+
var message = 'should not be called';
|
|
735
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
736
|
+
};
|
|
737
|
+
function DerInput(input) {
|
|
738
|
+
this.ro8_1 = input;
|
|
739
|
+
}
|
|
740
|
+
protoOf(DerInput).jo8 = function () {
|
|
741
|
+
return this.ro8_1.jo8();
|
|
742
|
+
};
|
|
743
|
+
protoOf(DerInput).so8 = function () {
|
|
744
|
+
return this.ro8_1.ko8();
|
|
745
|
+
};
|
|
746
|
+
protoOf(DerInput).to8 = function () {
|
|
747
|
+
return !(this.so8() === 5);
|
|
748
|
+
};
|
|
749
|
+
protoOf(DerInput).uo8 = function () {
|
|
750
|
+
readRequestedTag(this.ro8_1, 5);
|
|
751
|
+
var length = readLength(this.ro8_1);
|
|
752
|
+
// Inline function 'kotlin.check' call
|
|
753
|
+
if (!(length === 0)) {
|
|
754
|
+
var message = 'NULL tag length should be zero, but was: ' + length;
|
|
755
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
756
|
+
}
|
|
757
|
+
return null;
|
|
758
|
+
};
|
|
759
|
+
protoOf(DerInput).vo8 = function (tagOverride) {
|
|
760
|
+
var tmp0 = this.ro8_1;
|
|
761
|
+
var tmp$ret$1;
|
|
762
|
+
$l$block: {
|
|
763
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
764
|
+
if (tagOverride == null) {
|
|
765
|
+
readRequestedTag(tmp0, 2);
|
|
766
|
+
var length = readLength(tmp0);
|
|
767
|
+
var bytes = tmp0.lo8(length);
|
|
768
|
+
tmp$ret$1 = decodeToBigInt(bytes);
|
|
769
|
+
break $l$block;
|
|
770
|
+
}
|
|
771
|
+
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
772
|
+
var tmp;
|
|
773
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
774
|
+
case 0:
|
|
775
|
+
var length_0 = readLength(tmp0);
|
|
776
|
+
var bytes_0 = tmp0.lo8(length_0);
|
|
777
|
+
tmp = decodeToBigInt(bytes_0);
|
|
778
|
+
break;
|
|
779
|
+
case 1:
|
|
780
|
+
var length_1 = readLength(tmp0);
|
|
781
|
+
var explicitInput = tmp0.mo8(length_1);
|
|
782
|
+
readRequestedTag(explicitInput, 2);
|
|
783
|
+
var length_2 = readLength(explicitInput);
|
|
784
|
+
var bytes_1 = explicitInput.lo8(length_2);
|
|
785
|
+
tmp = decodeToBigInt(bytes_1);
|
|
786
|
+
break;
|
|
787
|
+
default:
|
|
788
|
+
noWhenBranchMatchedException();
|
|
789
|
+
break;
|
|
790
|
+
}
|
|
791
|
+
tmp$ret$1 = tmp;
|
|
792
|
+
}
|
|
793
|
+
return tmp$ret$1;
|
|
794
|
+
};
|
|
795
|
+
protoOf(DerInput).xo8 = function (tagOverride) {
|
|
796
|
+
var tmp0 = this.ro8_1;
|
|
797
|
+
var tmp$ret$7;
|
|
798
|
+
$l$block: {
|
|
799
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
800
|
+
if (tagOverride == null) {
|
|
801
|
+
readRequestedTag(tmp0, 3);
|
|
802
|
+
var length = readLength(tmp0);
|
|
803
|
+
var unusedBits = tmp0.x66();
|
|
804
|
+
var bytes = tmp0.lo8(length - 1 | 0);
|
|
805
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
806
|
+
if (bytes.length === 0) {
|
|
807
|
+
// Inline function 'kotlin.check' call
|
|
808
|
+
if (!(unusedBits === 0)) {
|
|
809
|
+
var message = 'wrong number of unused bits, expected 0, received: ' + unusedBits;
|
|
810
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
811
|
+
}
|
|
812
|
+
} else {
|
|
813
|
+
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
814
|
+
var this_0 = last(bytes);
|
|
815
|
+
var trailingZeros = countTrailingZeroBits(this_0 | 256);
|
|
816
|
+
// Inline function 'kotlin.check' call
|
|
817
|
+
if (!(unusedBits <= trailingZeros)) {
|
|
818
|
+
var message_0 = 'Not all unused bits are zeros, expected at least ' + unusedBits + ' trailing zeros, received ' + trailingZeros;
|
|
819
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
tmp$ret$7 = new BitArray(unusedBits, bytes);
|
|
823
|
+
break $l$block;
|
|
824
|
+
}
|
|
825
|
+
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
826
|
+
var tmp;
|
|
827
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
828
|
+
case 0:
|
|
829
|
+
var length_0 = readLength(tmp0);
|
|
830
|
+
var unusedBits_0 = tmp0.x66();
|
|
831
|
+
var bytes_0 = tmp0.lo8(length_0 - 1 | 0);
|
|
832
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
833
|
+
|
|
834
|
+
if (bytes_0.length === 0) {
|
|
835
|
+
// Inline function 'kotlin.check' call
|
|
836
|
+
if (!(unusedBits_0 === 0)) {
|
|
837
|
+
var message_1 = 'wrong number of unused bits, expected 0, received: ' + unusedBits_0;
|
|
838
|
+
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
839
|
+
}
|
|
840
|
+
} else {
|
|
841
|
+
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
842
|
+
var this_1 = last(bytes_0);
|
|
843
|
+
var trailingZeros_0 = countTrailingZeroBits(this_1 | 256);
|
|
844
|
+
// Inline function 'kotlin.check' call
|
|
845
|
+
if (!(unusedBits_0 <= trailingZeros_0)) {
|
|
846
|
+
var message_2 = 'Not all unused bits are zeros, expected at least ' + unusedBits_0 + ' trailing zeros, received ' + trailingZeros_0;
|
|
847
|
+
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
tmp = new BitArray(unusedBits_0, bytes_0);
|
|
852
|
+
break;
|
|
853
|
+
case 1:
|
|
854
|
+
var length_1 = readLength(tmp0);
|
|
855
|
+
var explicitInput = tmp0.mo8(length_1);
|
|
856
|
+
readRequestedTag(explicitInput, 3);
|
|
857
|
+
var length_2 = readLength(explicitInput);
|
|
858
|
+
var unusedBits_1 = explicitInput.x66();
|
|
859
|
+
var bytes_1 = explicitInput.lo8(length_2 - 1 | 0);
|
|
860
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
861
|
+
|
|
862
|
+
if (bytes_1.length === 0) {
|
|
863
|
+
// Inline function 'kotlin.check' call
|
|
864
|
+
if (!(unusedBits_1 === 0)) {
|
|
865
|
+
var message_3 = 'wrong number of unused bits, expected 0, received: ' + unusedBits_1;
|
|
866
|
+
throw IllegalStateException_init_$Create$(toString(message_3));
|
|
867
|
+
}
|
|
868
|
+
} else {
|
|
869
|
+
// Inline function 'kotlin.countTrailingZeroBits' call
|
|
870
|
+
var this_2 = last(bytes_1);
|
|
871
|
+
var trailingZeros_1 = countTrailingZeroBits(this_2 | 256);
|
|
872
|
+
// Inline function 'kotlin.check' call
|
|
873
|
+
if (!(unusedBits_1 <= trailingZeros_1)) {
|
|
874
|
+
var message_4 = 'Not all unused bits are zeros, expected at least ' + unusedBits_1 + ' trailing zeros, received ' + trailingZeros_1;
|
|
875
|
+
throw IllegalStateException_init_$Create$(toString(message_4));
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
tmp = new BitArray(unusedBits_1, bytes_1);
|
|
880
|
+
break;
|
|
881
|
+
default:
|
|
882
|
+
noWhenBranchMatchedException();
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
tmp$ret$7 = tmp;
|
|
886
|
+
}
|
|
887
|
+
return tmp$ret$7;
|
|
888
|
+
};
|
|
889
|
+
protoOf(DerInput).yo8 = function (tagOverride) {
|
|
890
|
+
var tmp0 = this.ro8_1;
|
|
891
|
+
var tmp$ret$1;
|
|
892
|
+
$l$block: {
|
|
893
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
894
|
+
if (tagOverride == null) {
|
|
895
|
+
readRequestedTag(tmp0, 4);
|
|
896
|
+
var length = readLength(tmp0);
|
|
897
|
+
tmp$ret$1 = tmp0.lo8(length);
|
|
898
|
+
break $l$block;
|
|
899
|
+
}
|
|
900
|
+
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
901
|
+
var tmp;
|
|
902
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
903
|
+
case 0:
|
|
904
|
+
var length_0 = readLength(tmp0);
|
|
905
|
+
tmp = tmp0.lo8(length_0);
|
|
906
|
+
break;
|
|
907
|
+
case 1:
|
|
908
|
+
var length_1 = readLength(tmp0);
|
|
909
|
+
var explicitInput = tmp0.mo8(length_1);
|
|
910
|
+
readRequestedTag(explicitInput, 4);
|
|
911
|
+
var length_2 = readLength(explicitInput);
|
|
912
|
+
tmp = explicitInput.lo8(length_2);
|
|
913
|
+
break;
|
|
914
|
+
default:
|
|
915
|
+
noWhenBranchMatchedException();
|
|
916
|
+
break;
|
|
917
|
+
}
|
|
918
|
+
tmp$ret$1 = tmp;
|
|
919
|
+
}
|
|
920
|
+
return tmp$ret$1;
|
|
921
|
+
};
|
|
922
|
+
protoOf(DerInput).wo8 = function (tagOverride) {
|
|
923
|
+
var tmp0 = this.ro8_1;
|
|
924
|
+
var tmp$ret$1;
|
|
925
|
+
$l$block: {
|
|
926
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
927
|
+
if (tagOverride == null) {
|
|
928
|
+
readRequestedTag(tmp0, 6);
|
|
929
|
+
var length = readLength(tmp0);
|
|
930
|
+
var slice = tmp0.mo8(length);
|
|
931
|
+
tmp$ret$1 = _ObjectIdentifier___init__impl__7hutfr(readOidElements(slice));
|
|
932
|
+
break $l$block;
|
|
933
|
+
}
|
|
934
|
+
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
935
|
+
var tmp;
|
|
936
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
937
|
+
case 0:
|
|
938
|
+
var length_0 = readLength(tmp0);
|
|
939
|
+
var slice_0 = tmp0.mo8(length_0);
|
|
940
|
+
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_0)));
|
|
941
|
+
break;
|
|
942
|
+
case 1:
|
|
943
|
+
var length_1 = readLength(tmp0);
|
|
944
|
+
var explicitInput = tmp0.mo8(length_1);
|
|
945
|
+
readRequestedTag(explicitInput, 6);
|
|
946
|
+
var length_2 = readLength(explicitInput);
|
|
947
|
+
var slice_1 = explicitInput.mo8(length_2);
|
|
948
|
+
tmp = new ObjectIdentifier(_ObjectIdentifier___init__impl__7hutfr(readOidElements(slice_1)));
|
|
949
|
+
break;
|
|
950
|
+
default:
|
|
951
|
+
noWhenBranchMatchedException();
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
tmp$ret$1 = tmp.eo8_1;
|
|
955
|
+
}
|
|
956
|
+
return tmp$ret$1;
|
|
957
|
+
};
|
|
958
|
+
protoOf(DerInput).zo8 = function (tagOverride) {
|
|
959
|
+
var tmp0 = this.ro8_1;
|
|
960
|
+
var tmp$ret$1;
|
|
961
|
+
$l$block: {
|
|
962
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.readTagWithOverride' call
|
|
963
|
+
if (tagOverride == null) {
|
|
964
|
+
readRequestedTag(tmp0, 48);
|
|
965
|
+
var length = readLength(tmp0);
|
|
966
|
+
tmp$ret$1 = tmp0.mo8(length);
|
|
967
|
+
break $l$block;
|
|
968
|
+
}
|
|
969
|
+
readRequestedTag(tmp0, get_tag(tagOverride));
|
|
970
|
+
var tmp;
|
|
971
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
972
|
+
case 0:
|
|
973
|
+
var length_0 = readLength(tmp0);
|
|
974
|
+
tmp = tmp0.mo8(length_0);
|
|
975
|
+
break;
|
|
976
|
+
case 1:
|
|
977
|
+
var length_1 = readLength(tmp0);
|
|
978
|
+
var explicitInput = tmp0.mo8(length_1);
|
|
979
|
+
readRequestedTag(explicitInput, 48);
|
|
980
|
+
var length_2 = readLength(explicitInput);
|
|
981
|
+
tmp = explicitInput.mo8(length_2);
|
|
982
|
+
break;
|
|
983
|
+
default:
|
|
984
|
+
noWhenBranchMatchedException();
|
|
985
|
+
break;
|
|
986
|
+
}
|
|
987
|
+
tmp$ret$1 = tmp;
|
|
988
|
+
}
|
|
989
|
+
return tmp$ret$1;
|
|
990
|
+
};
|
|
991
|
+
function readRequestedTag(_this__u8e3s4, tag) {
|
|
992
|
+
var currentTag = _this__u8e3s4.x66();
|
|
993
|
+
// Inline function 'kotlin.check' call
|
|
994
|
+
if (!(currentTag === tag)) {
|
|
995
|
+
var message = "Requested tag '" + DerTag_name(tag) + "', received: '" + DerTag_name(currentTag) + "'";
|
|
996
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
function readLength(_this__u8e3s4) {
|
|
1000
|
+
var first = _this__u8e3s4.x66();
|
|
1001
|
+
if (first >= 0)
|
|
1002
|
+
return first;
|
|
1003
|
+
var numberOfLengthBytes = first & 127;
|
|
1004
|
+
// Inline function 'kotlin.check' call
|
|
1005
|
+
if (!(numberOfLengthBytes <= 4)) {
|
|
1006
|
+
var message = 'Supported number of bytes for tag length are in range 1..4, but was: ' + numberOfLengthBytes + ' ';
|
|
1007
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
1008
|
+
}
|
|
1009
|
+
var length = 0;
|
|
1010
|
+
// Inline function 'kotlin.repeat' call
|
|
1011
|
+
var inductionVariable = 0;
|
|
1012
|
+
if (inductionVariable < numberOfLengthBytes)
|
|
1013
|
+
do {
|
|
1014
|
+
var index = inductionVariable;
|
|
1015
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1016
|
+
length = (length << 8) + (_this__u8e3s4.x66() & 255) | 0;
|
|
1017
|
+
}
|
|
1018
|
+
while (inductionVariable < numberOfLengthBytes);
|
|
1019
|
+
// Inline function 'kotlin.check' call
|
|
1020
|
+
if (!(length > 0)) {
|
|
1021
|
+
var message_0 = 'length overflow: ' + length;
|
|
1022
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1023
|
+
}
|
|
1024
|
+
return length;
|
|
1025
|
+
}
|
|
1026
|
+
function readOidElements(_this__u8e3s4) {
|
|
1027
|
+
// Inline function 'kotlin.text.buildString' call
|
|
1028
|
+
// Inline function 'kotlin.apply' call
|
|
1029
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
1030
|
+
var first = readOidElement(_this__u8e3s4);
|
|
1031
|
+
if (first < 40)
|
|
1032
|
+
this_0.s(_Char___init__impl__6a9atx(48)).s(_Char___init__impl__6a9atx(46)).yc(first);
|
|
1033
|
+
else if (first < 80)
|
|
1034
|
+
this_0.s(_Char___init__impl__6a9atx(49)).s(_Char___init__impl__6a9atx(46)).yc(first - 40 | 0);
|
|
1035
|
+
else
|
|
1036
|
+
this_0.s(_Char___init__impl__6a9atx(50)).s(_Char___init__impl__6a9atx(46)).yc(first - 80 | 0);
|
|
1037
|
+
while (!_this__u8e3s4.jo8()) {
|
|
1038
|
+
this_0.s(_Char___init__impl__6a9atx(46)).yc(readOidElement(_this__u8e3s4));
|
|
1039
|
+
}
|
|
1040
|
+
return this_0.toString();
|
|
1041
|
+
}
|
|
1042
|
+
function readOidElement(_this__u8e3s4) {
|
|
1043
|
+
var element = 0;
|
|
1044
|
+
do {
|
|
1045
|
+
var b = _this__u8e3s4.x66();
|
|
1046
|
+
element = (element << 7) + (b & 127) | 0;
|
|
1047
|
+
}
|
|
1048
|
+
while ((b & 128) === 128);
|
|
1049
|
+
// Inline function 'kotlin.check' call
|
|
1050
|
+
if (!(element >= 0)) {
|
|
1051
|
+
var message = 'element overflow: ' + element;
|
|
1052
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
1053
|
+
}
|
|
1054
|
+
return element;
|
|
1055
|
+
}
|
|
1056
|
+
function DerOutput(output) {
|
|
1057
|
+
this.ao9_1 = output;
|
|
1058
|
+
}
|
|
1059
|
+
protoOf(DerOutput).bo9 = function () {
|
|
1060
|
+
this.ao9_1.no8(5);
|
|
1061
|
+
writeLength(this.ao9_1, 0);
|
|
1062
|
+
};
|
|
1063
|
+
protoOf(DerOutput).co9 = function (tagOverride, value) {
|
|
1064
|
+
var tmp0 = this.ao9_1;
|
|
1065
|
+
$l$block: {
|
|
1066
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1067
|
+
if (tagOverride == null) {
|
|
1068
|
+
tmp0.no8(2);
|
|
1069
|
+
writeBytes(tmp0, encodeToByteArray(value));
|
|
1070
|
+
break $l$block;
|
|
1071
|
+
}
|
|
1072
|
+
tmp0.no8(get_tag(tagOverride));
|
|
1073
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
1074
|
+
case 0:
|
|
1075
|
+
writeBytes(tmp0, encodeToByteArray(value));
|
|
1076
|
+
break;
|
|
1077
|
+
case 1:
|
|
1078
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1079
|
+
|
|
1080
|
+
// Inline function 'kotlin.apply' call
|
|
1081
|
+
|
|
1082
|
+
var this_0 = new ByteArrayOutput();
|
|
1083
|
+
this_0.no8(2);
|
|
1084
|
+
writeBytes(this_0, encodeToByteArray(value));
|
|
1085
|
+
writeBytes_0(tmp0, this_0);
|
|
1086
|
+
break;
|
|
1087
|
+
default:
|
|
1088
|
+
noWhenBranchMatchedException();
|
|
1089
|
+
break;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
};
|
|
1093
|
+
protoOf(DerOutput).eo9 = function (tagOverride, bits) {
|
|
1094
|
+
var tmp0 = this.ao9_1;
|
|
1095
|
+
$l$block: {
|
|
1096
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1097
|
+
if (tagOverride == null) {
|
|
1098
|
+
tmp0.no8(3);
|
|
1099
|
+
writeLength(tmp0, bits.po7_1.length + 1 | 0);
|
|
1100
|
+
tmp0.oo8(bits.oo7_1);
|
|
1101
|
+
tmp0.po8(bits.po7_1);
|
|
1102
|
+
break $l$block;
|
|
1103
|
+
}
|
|
1104
|
+
tmp0.no8(get_tag(tagOverride));
|
|
1105
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
1106
|
+
case 0:
|
|
1107
|
+
writeLength(tmp0, bits.po7_1.length + 1 | 0);
|
|
1108
|
+
tmp0.oo8(bits.oo7_1);
|
|
1109
|
+
tmp0.po8(bits.po7_1);
|
|
1110
|
+
break;
|
|
1111
|
+
case 1:
|
|
1112
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1113
|
+
|
|
1114
|
+
// Inline function 'kotlin.apply' call
|
|
1115
|
+
|
|
1116
|
+
var this_0 = new ByteArrayOutput();
|
|
1117
|
+
this_0.no8(3);
|
|
1118
|
+
writeLength(this_0, bits.po7_1.length + 1 | 0);
|
|
1119
|
+
this_0.oo8(bits.oo7_1);
|
|
1120
|
+
this_0.po8(bits.po7_1);
|
|
1121
|
+
writeBytes_0(tmp0, this_0);
|
|
1122
|
+
break;
|
|
1123
|
+
default:
|
|
1124
|
+
noWhenBranchMatchedException();
|
|
1125
|
+
break;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
};
|
|
1129
|
+
protoOf(DerOutput).fo9 = function (tagOverride, bytes) {
|
|
1130
|
+
var tmp0 = this.ao9_1;
|
|
1131
|
+
$l$block: {
|
|
1132
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1133
|
+
if (tagOverride == null) {
|
|
1134
|
+
tmp0.no8(4);
|
|
1135
|
+
writeBytes(tmp0, bytes);
|
|
1136
|
+
break $l$block;
|
|
1137
|
+
}
|
|
1138
|
+
tmp0.no8(get_tag(tagOverride));
|
|
1139
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
1140
|
+
case 0:
|
|
1141
|
+
writeBytes(tmp0, bytes);
|
|
1142
|
+
break;
|
|
1143
|
+
case 1:
|
|
1144
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1145
|
+
|
|
1146
|
+
// Inline function 'kotlin.apply' call
|
|
1147
|
+
|
|
1148
|
+
var this_0 = new ByteArrayOutput();
|
|
1149
|
+
this_0.no8(4);
|
|
1150
|
+
writeBytes(this_0, bytes);
|
|
1151
|
+
writeBytes_0(tmp0, this_0);
|
|
1152
|
+
break;
|
|
1153
|
+
default:
|
|
1154
|
+
noWhenBranchMatchedException();
|
|
1155
|
+
break;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
protoOf(DerOutput).do9 = function (tagOverride, value) {
|
|
1160
|
+
var tmp0 = this.ao9_1;
|
|
1161
|
+
$l$block: {
|
|
1162
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1163
|
+
if (tagOverride == null) {
|
|
1164
|
+
tmp0.no8(6);
|
|
1165
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1166
|
+
// Inline function 'kotlin.apply' call
|
|
1167
|
+
var this_0 = new ByteArrayOutput();
|
|
1168
|
+
writeOidElements(this_0, split(_ObjectIdentifier___get_value__impl__wqzjw3(value), ['.']));
|
|
1169
|
+
writeBytes_0(tmp0, this_0);
|
|
1170
|
+
break $l$block;
|
|
1171
|
+
}
|
|
1172
|
+
tmp0.no8(get_tag(tagOverride));
|
|
1173
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
1174
|
+
case 0:
|
|
1175
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1176
|
+
|
|
1177
|
+
// Inline function 'kotlin.apply' call
|
|
1178
|
+
|
|
1179
|
+
var this_1 = new ByteArrayOutput();
|
|
1180
|
+
writeOidElements(this_1, split(_ObjectIdentifier___get_value__impl__wqzjw3(value), ['.']));
|
|
1181
|
+
writeBytes_0(tmp0, this_1);
|
|
1182
|
+
break;
|
|
1183
|
+
case 1:
|
|
1184
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1185
|
+
|
|
1186
|
+
// Inline function 'kotlin.apply' call
|
|
1187
|
+
|
|
1188
|
+
var this_2 = new ByteArrayOutput();
|
|
1189
|
+
this_2.no8(6);
|
|
1190
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1191
|
+
|
|
1192
|
+
// Inline function 'kotlin.apply' call
|
|
1193
|
+
|
|
1194
|
+
var this_3 = new ByteArrayOutput();
|
|
1195
|
+
writeOidElements(this_3, split(_ObjectIdentifier___get_value__impl__wqzjw3(value), ['.']));
|
|
1196
|
+
writeBytes_0(this_2, this_3);
|
|
1197
|
+
writeBytes_0(tmp0, this_2);
|
|
1198
|
+
break;
|
|
1199
|
+
default:
|
|
1200
|
+
noWhenBranchMatchedException();
|
|
1201
|
+
break;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
protoOf(DerOutput).go9 = function (tagOverride, bytes) {
|
|
1206
|
+
var tmp0 = this.ao9_1;
|
|
1207
|
+
$l$block: {
|
|
1208
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeTagWithOverride' call
|
|
1209
|
+
if (tagOverride == null) {
|
|
1210
|
+
tmp0.no8(48);
|
|
1211
|
+
writeBytes_0(tmp0, bytes.ao9_1);
|
|
1212
|
+
break $l$block;
|
|
1213
|
+
}
|
|
1214
|
+
tmp0.no8(get_tag(tagOverride));
|
|
1215
|
+
switch (tagOverride.lo7_1.a1_1) {
|
|
1216
|
+
case 0:
|
|
1217
|
+
writeBytes_0(tmp0, bytes.ao9_1);
|
|
1218
|
+
break;
|
|
1219
|
+
case 1:
|
|
1220
|
+
// Inline function 'dev.whyoleg.cryptography.serialization.asn1.internal.writeBytes' call
|
|
1221
|
+
|
|
1222
|
+
// Inline function 'kotlin.apply' call
|
|
1223
|
+
|
|
1224
|
+
var this_0 = new ByteArrayOutput();
|
|
1225
|
+
this_0.no8(48);
|
|
1226
|
+
writeBytes_0(this_0, bytes.ao9_1);
|
|
1227
|
+
writeBytes_0(tmp0, this_0);
|
|
1228
|
+
break;
|
|
1229
|
+
default:
|
|
1230
|
+
noWhenBranchMatchedException();
|
|
1231
|
+
break;
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
};
|
|
1235
|
+
function writeLength(_this__u8e3s4, length) {
|
|
1236
|
+
if (length < 128)
|
|
1237
|
+
return _this__u8e3s4.oo8(length);
|
|
1238
|
+
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1239
|
+
var numberOfLengthBytes = 4 - (clz32(length) / 8 | 0) | 0;
|
|
1240
|
+
_this__u8e3s4.oo8(numberOfLengthBytes | 128);
|
|
1241
|
+
// Inline function 'kotlin.repeat' call
|
|
1242
|
+
var inductionVariable = 0;
|
|
1243
|
+
if (inductionVariable < numberOfLengthBytes)
|
|
1244
|
+
do {
|
|
1245
|
+
var index = inductionVariable;
|
|
1246
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1247
|
+
_this__u8e3s4.oo8(length >>> imul(8, (numberOfLengthBytes - 1 | 0) - index | 0) | 0);
|
|
1248
|
+
}
|
|
1249
|
+
while (inductionVariable < numberOfLengthBytes);
|
|
1250
|
+
}
|
|
1251
|
+
function writeBytes(_this__u8e3s4, bytes) {
|
|
1252
|
+
writeLength(_this__u8e3s4, bytes.length);
|
|
1253
|
+
_this__u8e3s4.po8(bytes);
|
|
1254
|
+
}
|
|
1255
|
+
function writeOidElements(_this__u8e3s4, elements) {
|
|
1256
|
+
// Inline function 'kotlin.check' call
|
|
1257
|
+
if (!(elements.g1() >= 2)) {
|
|
1258
|
+
var message = 'at least 2 components expected but was ' + elements.g1();
|
|
1259
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
1260
|
+
}
|
|
1261
|
+
writeOidElement(_this__u8e3s4, imul(writeOidElements$element(elements, 0), 40) + writeOidElements$element(elements, 1) | 0);
|
|
1262
|
+
// Inline function 'kotlin.repeat' call
|
|
1263
|
+
var times = elements.g1() - 2 | 0;
|
|
1264
|
+
var inductionVariable = 0;
|
|
1265
|
+
if (inductionVariable < times)
|
|
1266
|
+
do {
|
|
1267
|
+
var index = inductionVariable;
|
|
1268
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1269
|
+
writeOidElement(_this__u8e3s4, writeOidElements$element(elements, index + 2 | 0));
|
|
1270
|
+
}
|
|
1271
|
+
while (inductionVariable < times);
|
|
1272
|
+
}
|
|
1273
|
+
function writeBytes_0(_this__u8e3s4, bytes) {
|
|
1274
|
+
writeLength(_this__u8e3s4, bytes.g1());
|
|
1275
|
+
_this__u8e3s4.qo8(bytes);
|
|
1276
|
+
}
|
|
1277
|
+
function writeOidElement(_this__u8e3s4, element) {
|
|
1278
|
+
if (element < 128)
|
|
1279
|
+
return _this__u8e3s4.oo8(element);
|
|
1280
|
+
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1281
|
+
var l = (32 - clz32(element) | 0) / 7 | 0;
|
|
1282
|
+
// Inline function 'kotlin.repeat' call
|
|
1283
|
+
var inductionVariable = 0;
|
|
1284
|
+
if (inductionVariable < l)
|
|
1285
|
+
do {
|
|
1286
|
+
var index = inductionVariable;
|
|
1287
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1288
|
+
var value = element >>> imul(l - index | 0, 7) | 0;
|
|
1289
|
+
if (!(value === 0)) {
|
|
1290
|
+
_this__u8e3s4.oo8(value & 127 | 128);
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
while (inductionVariable < l);
|
|
1294
|
+
_this__u8e3s4.oo8(element & 127);
|
|
1295
|
+
}
|
|
1296
|
+
function writeOidElements$element($elements, index) {
|
|
1297
|
+
return toInt($elements.h1(index));
|
|
1298
|
+
}
|
|
1299
|
+
function getElementContextSpecificTag(_this__u8e3s4, index) {
|
|
1300
|
+
var tmp0 = _this__u8e3s4.su(index);
|
|
1301
|
+
var tmp$ret$1;
|
|
1302
|
+
$l$block: {
|
|
1303
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1304
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1305
|
+
while (_iterator__ex2g4s.u()) {
|
|
1306
|
+
var element = _iterator__ex2g4s.v();
|
|
1307
|
+
if (element instanceof ContextSpecificTag) {
|
|
1308
|
+
tmp$ret$1 = element;
|
|
1309
|
+
break $l$block;
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
tmp$ret$1 = null;
|
|
1313
|
+
}
|
|
1314
|
+
var tmp = tmp$ret$1;
|
|
1315
|
+
var tmp0_elvis_lhs = tmp instanceof ContextSpecificTag ? tmp : null;
|
|
1316
|
+
var tmp_0;
|
|
1317
|
+
if (tmp0_elvis_lhs == null) {
|
|
1318
|
+
return null;
|
|
1319
|
+
} else {
|
|
1320
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1321
|
+
}
|
|
1322
|
+
var annotation = tmp_0;
|
|
1323
|
+
// Inline function 'kotlin.check' call
|
|
1324
|
+
if (!(annotation.ko7_1 < 31)) {
|
|
1325
|
+
var message = 'Context specific tag class must be less than 31, but was ' + annotation.ko7_1;
|
|
1326
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
1327
|
+
}
|
|
1328
|
+
return annotation;
|
|
1329
|
+
}
|
|
1330
|
+
function get_tag(_this__u8e3s4) {
|
|
1331
|
+
var contextSpecificTag = _this__u8e3s4.ko7_1 | 128;
|
|
1332
|
+
var tmp;
|
|
1333
|
+
switch (_this__u8e3s4.lo7_1.a1_1) {
|
|
1334
|
+
case 0:
|
|
1335
|
+
tmp = toByte(contextSpecificTag);
|
|
1336
|
+
break;
|
|
1337
|
+
case 1:
|
|
1338
|
+
tmp = toByte(contextSpecificTag | 32);
|
|
1339
|
+
break;
|
|
1340
|
+
default:
|
|
1341
|
+
noWhenBranchMatchedException();
|
|
1342
|
+
break;
|
|
1343
|
+
}
|
|
1344
|
+
return tmp;
|
|
1345
|
+
}
|
|
1346
|
+
function DerTag_name(tag) {
|
|
1347
|
+
var tmp;
|
|
1348
|
+
if (tag === 2) {
|
|
1349
|
+
tmp = 'INTEGER';
|
|
1350
|
+
} else if (tag === 3) {
|
|
1351
|
+
tmp = 'BIT_STRING';
|
|
1352
|
+
} else if (tag === 4) {
|
|
1353
|
+
tmp = 'OCTET_STRING';
|
|
1354
|
+
} else if (tag === 5) {
|
|
1355
|
+
tmp = 'NULL';
|
|
1356
|
+
} else if (tag === 6) {
|
|
1357
|
+
tmp = 'OID';
|
|
1358
|
+
} else if (tag === 48) {
|
|
1359
|
+
tmp = 'SEQUENCE';
|
|
1360
|
+
} else {
|
|
1361
|
+
var intTag = tag;
|
|
1362
|
+
var tmp_0;
|
|
1363
|
+
if (hasFlag(intTag, 128)) {
|
|
1364
|
+
var tmp_1;
|
|
1365
|
+
if (hasFlag(intTag, 32)) {
|
|
1366
|
+
// Inline function 'kotlin.toUByte' call
|
|
1367
|
+
var this_0 = (intTag - 128 | 0) - 32 | 0;
|
|
1368
|
+
var tmp$ret$0 = _UByte___init__impl__g9hnc4(toByte(this_0));
|
|
1369
|
+
tmp_1 = 'CONTEXT_SPECIFIC:EXPLICIT[' + new UByte(tmp$ret$0) + ']';
|
|
1370
|
+
} else {
|
|
1371
|
+
// Inline function 'kotlin.toUByte' call
|
|
1372
|
+
var this_1 = intTag - 128 | 0;
|
|
1373
|
+
var tmp$ret$1 = _UByte___init__impl__g9hnc4(toByte(this_1));
|
|
1374
|
+
tmp_1 = 'CONTEXT_SPECIFIC:IMPLICIT[' + new UByte(tmp$ret$1) + ']';
|
|
1375
|
+
}
|
|
1376
|
+
tmp_0 = tmp_1;
|
|
1377
|
+
} else {
|
|
1378
|
+
// Inline function 'kotlin.toUByte' call
|
|
1379
|
+
var tmp$ret$2 = _UByte___init__impl__g9hnc4(tag);
|
|
1380
|
+
tmp_0 = 'UNKNOWN[0x' + toString_0(tmp$ret$2, 16) + ']';
|
|
1381
|
+
}
|
|
1382
|
+
tmp = tmp_0;
|
|
1383
|
+
}
|
|
1384
|
+
return tmp;
|
|
1385
|
+
}
|
|
1386
|
+
function hasFlag(_this__u8e3s4, flag) {
|
|
1387
|
+
return (_this__u8e3s4 & flag) === flag;
|
|
1388
|
+
}
|
|
1389
|
+
//region block: post-declaration
|
|
1390
|
+
protoOf($serializer).l14 = typeParametersSerializers;
|
|
1391
|
+
protoOf($serializer_0).l14 = typeParametersSerializers;
|
|
1392
|
+
//endregion
|
|
1393
|
+
//region block: init
|
|
1394
|
+
Companion_instance = new Companion();
|
|
1395
|
+
Companion_instance_0 = new Companion_0();
|
|
1396
|
+
//endregion
|
|
1397
|
+
//region block: exports
|
|
1398
|
+
export {
|
|
1399
|
+
BitArray as BitArray3ibxegq42amh4,
|
|
1400
|
+
ContextSpecificTag as ContextSpecificTag1nleqg541pedp,
|
|
1401
|
+
ObjectIdentifier as ObjectIdentifierz6uf0uceu1gm,
|
|
1402
|
+
TagType_EXPLICIT_getInstance as TagType_EXPLICIT_getInstance10pdluq5x1ycm,
|
|
1403
|
+
_ObjectIdentifier___init__impl__7hutfr as _ObjectIdentifier___init__impl__7hutfrluhqiu0s240g,
|
|
1404
|
+
ObjectIdentifier__hashCode_impl_7x941i as ObjectIdentifier__hashCode_impl_7x941i112d4hk00z9e,
|
|
1405
|
+
ObjectIdentifier__toString_impl_dtwsrd as ObjectIdentifier__toString_impl_dtwsrdsm2716jzm6vp,
|
|
1406
|
+
$serializer_getInstance as $serializer_getInstance182nmf4yp1h51,
|
|
1407
|
+
Default_getInstance as Default_getInstance3bn6zrp4tkdoy,
|
|
1408
|
+
$serializer_getInstance_0 as $serializer_getInstance16vvpdozj55ex,
|
|
1409
|
+
Companion_instance_0 as Companion_instance3nsfjzff13l9z,
|
|
1410
|
+
};
|
|
1411
|
+
//endregion
|
|
1412
|
+
|
|
1413
|
+
//# sourceMappingURL=cryptography-kotlin-cryptography-serialization-asn1.mjs.map
|