@ac-kit/format-asn1 0.3.1 → 0.4.0
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/CHANGELOG.md +68 -0
- package/README.md +132 -4
- package/dist/_encoding/constants.d.ts +2 -0
- package/dist/_encoding/constants.d.ts.map +1 -1
- package/dist/_encoding/constants.js +7 -0
- package/dist/_encoding/constants.js.map +1 -1
- package/dist/_encoding/decode-primitive.d.ts +39 -0
- package/dist/_encoding/decode-primitive.d.ts.map +1 -0
- package/dist/_encoding/decode-primitive.js +144 -0
- package/dist/_encoding/decode-primitive.js.map +1 -0
- package/dist/_encoding/def-tags.d.ts +36 -3
- package/dist/_encoding/def-tags.d.ts.map +1 -1
- package/dist/_encoding/def-tags.js +88 -3
- package/dist/_encoding/def-tags.js.map +1 -1
- package/dist/_encoding/encoded-tag-sort-key.d.ts +7 -0
- package/dist/_encoding/encoded-tag-sort-key.d.ts.map +1 -0
- package/dist/_encoding/encoded-tag-sort-key.js +13 -0
- package/dist/_encoding/encoded-tag-sort-key.js.map +1 -0
- package/dist/_encoding/tag.d.ts +1 -6
- package/dist/_encoding/tag.d.ts.map +1 -1
- package/dist/_encoding/tag.js +5 -43
- package/dist/_encoding/tag.js.map +1 -1
- package/dist/_encoding/tlv.d.ts +4 -25
- package/dist/_encoding/tlv.d.ts.map +1 -1
- package/dist/_encoding/tlv.js +12 -48
- package/dist/_encoding/tlv.js.map +1 -1
- package/dist/_encoding/values.d.ts.map +1 -1
- package/dist/_encoding/values.js +31 -19
- package/dist/_encoding/values.js.map +1 -1
- package/dist/_encoding/vlq.d.ts.map +1 -1
- package/dist/_encoding/vlq.js +2 -2
- package/dist/_encoding/vlq.js.map +1 -1
- package/dist/_encoding/with-offset.d.ts +12 -0
- package/dist/_encoding/with-offset.d.ts.map +1 -0
- package/dist/_encoding/with-offset.js +22 -0
- package/dist/_encoding/with-offset.js.map +1 -0
- package/dist/ber/_decode.d.ts +25 -0
- package/dist/ber/_decode.d.ts.map +1 -0
- package/dist/ber/_decode.js +409 -0
- package/dist/ber/_decode.js.map +1 -0
- package/dist/ber/codec.d.ts +3 -2
- package/dist/ber/codec.d.ts.map +1 -1
- package/dist/ber/codec.js +45 -16
- package/dist/ber/codec.js.map +1 -1
- package/dist/ber/decode.d.ts +30 -1
- package/dist/ber/decode.d.ts.map +1 -1
- package/dist/ber/decode.js +31 -221
- package/dist/ber/decode.js.map +1 -1
- package/dist/ber/encode.d.ts +7 -1
- package/dist/ber/encode.d.ts.map +1 -1
- package/dist/ber/encode.js +46 -53
- package/dist/ber/encode.js.map +1 -1
- package/dist/cer/decode.d.ts +20 -1
- package/dist/cer/decode.d.ts.map +1 -1
- package/dist/cer/decode.js +27 -221
- package/dist/cer/decode.js.map +1 -1
- package/dist/cer/encode.d.ts +22 -6
- package/dist/cer/encode.d.ts.map +1 -1
- package/dist/cer/encode.js +147 -136
- package/dist/cer/encode.js.map +1 -1
- package/dist/der/decode.d.ts +27 -21
- package/dist/der/decode.d.ts.map +1 -1
- package/dist/der/decode.js +323 -398
- package/dist/der/decode.js.map +1 -1
- package/dist/der/encode.js +5 -8
- package/dist/der/encode.js.map +1 -1
- package/dist/errors.d.ts +56 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +31 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/per/decode.d.ts +9 -0
- package/dist/per/decode.d.ts.map +1 -1
- package/dist/per/decode.js +114 -32
- package/dist/per/decode.js.map +1 -1
- package/dist/per/encode.js +1 -1
- package/dist/per/encode.js.map +1 -1
- package/dist/reader/_framing.d.ts +38 -0
- package/dist/reader/_framing.d.ts.map +1 -0
- package/dist/reader/_framing.js +144 -0
- package/dist/reader/_framing.js.map +1 -0
- package/dist/reader/_header.d.ts +49 -0
- package/dist/reader/_header.d.ts.map +1 -0
- package/dist/reader/_header.js +130 -0
- package/dist/reader/_header.js.map +1 -0
- package/dist/reader/ber-reader.d.ts +240 -0
- package/dist/reader/ber-reader.d.ts.map +1 -0
- package/dist/reader/ber-reader.js +567 -0
- package/dist/reader/ber-reader.js.map +1 -0
- package/dist/reader/inspect.d.ts +68 -0
- package/dist/reader/inspect.d.ts.map +1 -0
- package/dist/reader/inspect.js +104 -0
- package/dist/reader/inspect.js.map +1 -0
- package/dist/schema/universal-tag-name.d.ts +26 -0
- package/dist/schema/universal-tag-name.d.ts.map +1 -0
- package/dist/schema/universal-tag-name.js +74 -0
- package/dist/schema/universal-tag-name.js.map +1 -0
- package/package.json +9 -8
- package/dist/_encoding/errors.d.ts +0 -8
- package/dist/_encoding/errors.d.ts.map +0 -1
- package/dist/_encoding/errors.js +0 -15
- package/dist/_encoding/errors.js.map +0 -1
package/dist/cer/decode.js
CHANGED
|
@@ -1,225 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { choiceAlternatives, outerTagSet, outerTagSetHas, } from "../_encoding/def-tags.js";
|
|
3
|
-
import { freshDefault } from "../_encoding/default-output.js";
|
|
4
|
-
import { DecodingError } from "../_encoding/errors.js";
|
|
5
|
-
import { encodeDefiniteLength, encodeTag, } from "../_encoding/tag.js";
|
|
6
|
-
import { readAllTlv, readTlv } from "../_encoding/tlv.js";
|
|
7
|
-
import { decodeGeneralizedTime, decodeOid, decodeReal, decodeRelativeOid, decodeUtcTime, } from "../_encoding/values.js";
|
|
8
|
-
import { universalTagFor } from "../ber.js";
|
|
1
|
+
import { decodeBerFamily } from "../ber/_decode.js";
|
|
9
2
|
import { validateCerWireDefault } from "./encode.js";
|
|
10
|
-
const
|
|
11
|
-
|
|
3
|
+
const CER_POLICY = {
|
|
4
|
+
rules: "cer",
|
|
5
|
+
strictBoolean: false,
|
|
6
|
+
checkComponent: (component) => validateCerWireDefault(component),
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* CER decoder (X.690 §9) — decodes the first element of `bytes` according to
|
|
10
|
+
* `def`; bytes after it are ignored.
|
|
11
|
+
*
|
|
12
|
+
* The framing is `BerReader`'s with the rules `"cer"`: constructed encodings
|
|
13
|
+
* must use the indefinite length form, primitive lengths the fewest octets, and
|
|
14
|
+
* strings are primitive up to 1000 octets and otherwise fragmented in segments
|
|
15
|
+
* of 1000 octets (§9.1, §9.2). Input that is BER but not CER, `cerEncode`
|
|
16
|
+
* output of earlier versions included, is refused as `non-canonical`: read it
|
|
17
|
+
* with `berDecode` (except a long character string fragmented with its own tag,
|
|
18
|
+
* which `berDecode` refuses too). SET components are read by tag and must come
|
|
19
|
+
* in the order of X.690 §9.3, an untagged CHOICE counting as its smallest tag.
|
|
20
|
+
* The rest is as for `berDecode`; the other canonical-form rules DER enforces
|
|
21
|
+
* are not checked (see TODO).
|
|
22
|
+
*
|
|
23
|
+
* @param def - Schema of the value.
|
|
24
|
+
* @param bytes - CER bytes.
|
|
25
|
+
* @throws {DecodingError} For anything wrong with the input, with its offset
|
|
26
|
+
* and a `code`.
|
|
27
|
+
*/
|
|
12
28
|
export function cerDecode(def, bytes) {
|
|
13
|
-
return
|
|
14
|
-
}
|
|
15
|
-
function cerDecodeReader(def, reader) {
|
|
16
|
-
if (def.kind === "lazy")
|
|
17
|
-
return cerDecodeReader(def.getter(), reader);
|
|
18
|
-
if (def.kind === "transform") {
|
|
19
|
-
const decoded = cerDecodeReader(def.innerType, reader);
|
|
20
|
-
return (def.fn ?? ((v) => v))(decoded);
|
|
21
|
-
}
|
|
22
|
-
if (def.kind === "choice")
|
|
23
|
-
return decodeChoice(def, reader);
|
|
24
|
-
if (def.kind === "tagged")
|
|
25
|
-
return decodeTagged(def, reader);
|
|
26
|
-
if (def.kind === "any") {
|
|
27
|
-
const { tag, contents } = readTlv(reader);
|
|
28
|
-
return {
|
|
29
|
-
encoded: concatBytes(encodeTag(tag), encodeDefiniteLength(contents.length), contents),
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const { tag, contents } = readTlv(reader);
|
|
33
|
-
const expected = universalTagFor(def);
|
|
34
|
-
if (expected &&
|
|
35
|
-
(tag.tagClass !== "universal" || tag.tagNumber !== expected.tagNumber)) {
|
|
36
|
-
throw new DecodingError(`CER: expected UNIVERSAL ${expected.tagNumber}, got ${tag.tagClass} ${tag.tagNumber}`, reader.position);
|
|
37
|
-
}
|
|
38
|
-
return cerDecodeContents(def, tag, contents);
|
|
39
|
-
}
|
|
40
|
-
function cerDecodeContents(def, tag, contents) {
|
|
41
|
-
switch (def.kind) {
|
|
42
|
-
case "boolean":
|
|
43
|
-
return contents[0] !== 0x00;
|
|
44
|
-
case "integer":
|
|
45
|
-
case "enumerated":
|
|
46
|
-
return bigIntFromBytesBe(contents);
|
|
47
|
-
case "bitString": {
|
|
48
|
-
if (tag.constructed) {
|
|
49
|
-
// Reassemble chunked bit string
|
|
50
|
-
const chunks = readAllTlv(contents);
|
|
51
|
-
const allBytes = [];
|
|
52
|
-
let unusedBits = 0;
|
|
53
|
-
for (let i = 0; i < chunks.length; i++) {
|
|
54
|
-
unusedBits = chunks[i].contents[0];
|
|
55
|
-
allBytes.push(...chunks[i].contents.slice(1));
|
|
56
|
-
}
|
|
57
|
-
return { bytes: new Uint8Array(allBytes), unusedBits };
|
|
58
|
-
}
|
|
59
|
-
if (contents.length === 0)
|
|
60
|
-
return { bytes: new Uint8Array(0), unusedBits: 0 };
|
|
61
|
-
return { bytes: contents.slice(1), unusedBits: contents[0] };
|
|
62
|
-
}
|
|
63
|
-
case "octetString": {
|
|
64
|
-
if (tag.constructed) {
|
|
65
|
-
// Reassemble chunked octet string
|
|
66
|
-
const chunks = readAllTlv(contents);
|
|
67
|
-
const parts = chunks.map((c) => c.contents);
|
|
68
|
-
const total = parts.reduce((n, p) => n + p.length, 0);
|
|
69
|
-
const out = new Uint8Array(total);
|
|
70
|
-
let offset = 0;
|
|
71
|
-
for (const p of parts) {
|
|
72
|
-
out.set(p, offset);
|
|
73
|
-
offset += p.length;
|
|
74
|
-
}
|
|
75
|
-
return out;
|
|
76
|
-
}
|
|
77
|
-
return contents.slice();
|
|
78
|
-
}
|
|
79
|
-
case "null":
|
|
80
|
-
return null;
|
|
81
|
-
case "objectIdentifier":
|
|
82
|
-
return decodeOid(contents);
|
|
83
|
-
case "relativeOid":
|
|
84
|
-
return decodeRelativeOid(contents);
|
|
85
|
-
case "oidIri":
|
|
86
|
-
case "relativeOidIri":
|
|
87
|
-
return decodeText(contents, "utf-8", { fatal: true, ignoreBOM: true });
|
|
88
|
-
case "real":
|
|
89
|
-
return decodeReal(contents);
|
|
90
|
-
case "any":
|
|
91
|
-
return { encoded: contents.slice() };
|
|
92
|
-
case "utf8String":
|
|
93
|
-
return tag.constructed
|
|
94
|
-
? cerReassembleString(contents, (b) => decodeText(b, "utf-8", { fatal: true, ignoreBOM: true }))
|
|
95
|
-
: decodeText(contents, "utf-8", { fatal: true, ignoreBOM: true });
|
|
96
|
-
case "numericString":
|
|
97
|
-
case "printableString":
|
|
98
|
-
case "teletexString":
|
|
99
|
-
case "videotexString":
|
|
100
|
-
case "ia5String":
|
|
101
|
-
case "graphicString":
|
|
102
|
-
case "visibleString":
|
|
103
|
-
case "generalString":
|
|
104
|
-
return tag.constructed
|
|
105
|
-
? cerReassembleString(contents, (b) => decodeText(b, "latin1"))
|
|
106
|
-
: decodeText(contents, "latin1");
|
|
107
|
-
case "universalString":
|
|
108
|
-
return tag.constructed
|
|
109
|
-
? cerReassembleString(contents, (b) => decodeText(b, "utf-32be"))
|
|
110
|
-
: decodeText(contents, "utf-32be");
|
|
111
|
-
case "bmpString":
|
|
112
|
-
return tag.constructed
|
|
113
|
-
? cerReassembleString(contents, (b) => decodeText(b, "utf-16be", { ignoreBOM: true }))
|
|
114
|
-
: decodeText(contents, "utf-16be", { ignoreBOM: true });
|
|
115
|
-
case "utcTime":
|
|
116
|
-
return decodeUtcTime(contents);
|
|
117
|
-
case "generalizedTime":
|
|
118
|
-
return decodeGeneralizedTime(contents);
|
|
119
|
-
case "time":
|
|
120
|
-
case "date":
|
|
121
|
-
case "timeOfDay":
|
|
122
|
-
case "dateTime":
|
|
123
|
-
case "duration":
|
|
124
|
-
return decodeText(contents, "latin1");
|
|
125
|
-
case "sequence":
|
|
126
|
-
case "set":
|
|
127
|
-
return cerDecodeSequenceContents(def, contents);
|
|
128
|
-
case "sequenceOf":
|
|
129
|
-
return cerDecodeOfContents(def.elementType, contents);
|
|
130
|
-
case "setOf":
|
|
131
|
-
return cerDecodeOfContents(def.elementType, contents);
|
|
132
|
-
case "external":
|
|
133
|
-
case "embeddedPdv":
|
|
134
|
-
case "characterString":
|
|
135
|
-
return contents.slice();
|
|
136
|
-
case "lazy":
|
|
137
|
-
return cerDecodeContents(def.getter(), tag, contents);
|
|
138
|
-
case "transform":
|
|
139
|
-
return cerDecodeContents(def.innerType, tag, contents);
|
|
140
|
-
default:
|
|
141
|
-
throw new DecodingError(`Cannot CER-decode def kind: ${def.kind}`);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
function cerReassembleString(contents, decoder) {
|
|
145
|
-
const chunks = readAllTlv(contents);
|
|
146
|
-
return chunks.map((c) => decoder(c.contents)).join("");
|
|
147
|
-
}
|
|
148
|
-
function decodeTagged(def, reader) {
|
|
149
|
-
const { tag, contents } = readTlv(reader);
|
|
150
|
-
if (tag.tagClass !== def.tag.tagClass ||
|
|
151
|
-
tag.tagNumber !== def.tag.tagNumber) {
|
|
152
|
-
throw new DecodingError(`CER: expected ${def.tag.tagClass} ${def.tag.tagNumber}`, reader.position);
|
|
153
|
-
}
|
|
154
|
-
if (def.mode === "explicit")
|
|
155
|
-
return cerDecodeReader(def.innerType, new ByteReader(contents));
|
|
156
|
-
return cerDecodeContents(def.innerType, tag, contents);
|
|
157
|
-
}
|
|
158
|
-
function decodeChoice(def, reader) {
|
|
159
|
-
const savedPos = reader.position;
|
|
160
|
-
const { tag: nextTag } = readTlv(reader);
|
|
161
|
-
reader.seek(savedPos);
|
|
162
|
-
let fallback;
|
|
163
|
-
for (const alt of choiceAlternatives(def)) {
|
|
164
|
-
const tags = outerTagSet(alt.type, decodingError);
|
|
165
|
-
if (tags === undefined) {
|
|
166
|
-
fallback ??= alt;
|
|
167
|
-
}
|
|
168
|
-
else if (outerTagSetHas(tags, nextTag)) {
|
|
169
|
-
return { kind: alt.name, value: cerDecodeReader(alt.type, reader) };
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
if (fallback !== undefined) {
|
|
173
|
-
return {
|
|
174
|
-
kind: fallback.name,
|
|
175
|
-
value: cerDecodeReader(fallback.type, reader),
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
throw new DecodingError(`CER: CHOICE no match for ${nextTag.tagClass} ${nextTag.tagNumber}`, reader.position);
|
|
179
|
-
}
|
|
180
|
-
function cerDecodeSequenceContents(def, contents) {
|
|
181
|
-
const reader = new ByteReader(contents);
|
|
182
|
-
const result = {};
|
|
183
|
-
for (const comp of def.components) {
|
|
184
|
-
if (comp.kind === "extensionMarker" || comp.kind === "componentsOf")
|
|
185
|
-
continue;
|
|
186
|
-
if (comp.kind === "extensionAdditionGroup") {
|
|
187
|
-
for (const inner of comp.components)
|
|
188
|
-
cerDecodeComponentFrom(reader, inner, result);
|
|
189
|
-
continue;
|
|
190
|
-
}
|
|
191
|
-
cerDecodeComponentFrom(reader, comp, result);
|
|
192
|
-
}
|
|
193
|
-
return result;
|
|
194
|
-
}
|
|
195
|
-
function cerDecodeComponentFrom(reader, comp, result) {
|
|
196
|
-
validateCerWireDefault(comp);
|
|
197
|
-
if (reader.atEnd) {
|
|
198
|
-
if (comp.optional || comp.defaultValue !== undefined) {
|
|
199
|
-
if (comp.defaultValue !== undefined)
|
|
200
|
-
setRecordEntry(result, comp.name, freshDefault(comp));
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
throw new DecodingError(`CER: required component "${comp.name}" missing`);
|
|
204
|
-
}
|
|
205
|
-
const savedPos = reader.position;
|
|
206
|
-
const { tag: nextTag } = readTlv(reader);
|
|
207
|
-
reader.seek(savedPos);
|
|
208
|
-
if (!outerTagSetHas(outerTagSet(comp.type, decodingError), nextTag)) {
|
|
209
|
-
if (comp.optional || comp.defaultValue !== undefined) {
|
|
210
|
-
if (comp.defaultValue !== undefined)
|
|
211
|
-
setRecordEntry(result, comp.name, freshDefault(comp));
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
throw new DecodingError(`CER: required component "${comp.name}" tag mismatch`);
|
|
215
|
-
}
|
|
216
|
-
setRecordEntry(result, comp.name, cerDecodeReader(comp.type, reader));
|
|
217
|
-
}
|
|
218
|
-
function cerDecodeOfContents(elementDef, contents) {
|
|
219
|
-
const reader = new ByteReader(contents);
|
|
220
|
-
const result = [];
|
|
221
|
-
while (!reader.atEnd)
|
|
222
|
-
result.push(cerDecodeReader(elementDef, reader));
|
|
223
|
-
return result;
|
|
29
|
+
return decodeBerFamily(def, bytes, CER_POLICY).value;
|
|
224
30
|
}
|
|
225
31
|
//# sourceMappingURL=decode.js.map
|
package/dist/cer/decode.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode.js","sourceRoot":"","sources":["../../src/cer/decode.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"decode.js","sourceRoot":"","sources":["../../src/cer/decode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,mBAAmB,CAAC;AAG1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,GAAoB;IACnC,KAAK,EAAE,KAAK;IACZ,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,sBAAsB,CAAC,SAAS,CAAC;CAChE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,SAAS,CACxB,GAAM,EACN,KAAiB;IAEjB,OAAO,eAAe,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,KAAsB,CAAC;AACvE,CAAC"}
|
package/dist/cer/encode.d.ts
CHANGED
|
@@ -4,12 +4,28 @@ import type { Asn1ComponentDef } from "../schema/types/constructed/component.js"
|
|
|
4
4
|
/**
|
|
5
5
|
* CER encoder — Canonical Encoding Rules (X.690 §9).
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
7
|
+
* Every constructed encoding is written in the indefinite length form (§9.1):
|
|
8
|
+
* SEQUENCE, SET, SEQUENCE OF and SET OF, EXPLICIT tags, IMPLICIT tags over
|
|
9
|
+
* constructed types, the empty SEQUENCE (`30 80 00 00`) included. Primitive
|
|
10
|
+
* lengths are in the fewest octets.
|
|
11
|
+
*
|
|
12
|
+
* Strings (OCTET STRING, the character strings, UTCTime, GeneralizedTime and
|
|
13
|
+
* the other types encoded as OCTET STRINGs, universal or IMPLICIT-tagged) are
|
|
14
|
+
* primitive up to 1000 octets and above that constructed, in primitive OCTET
|
|
15
|
+
* STRING segments of 1000 octets but the last (§9.2, §8.23); a BIT STRING
|
|
16
|
+
* likewise, in BIT STRING segments of 1000 contents octets (the unused-bits
|
|
17
|
+
* octet of each one included) with the unused bits in the last. TIME, DATE,
|
|
18
|
+
* TIME-OF-DAY, DATE-TIME and DURATION are always primitive (§8.26). BIT STRING
|
|
19
|
+
* padding is cleared and, for a type with named bits, trailing zero bits are
|
|
20
|
+
* removed (§11.2). SET components are ordered by their tags (§9.3), an untagged
|
|
21
|
+
* CHOICE as its smallest tag whichever alternative it holds (DER orders it by
|
|
22
|
+
* the alternative held, §10.3); SET OF elements are ordered as in DER, and a
|
|
23
|
+
* component equal to its DEFAULT is left out. An ANY value is written as
|
|
24
|
+
* given.
|
|
25
|
+
*
|
|
26
|
+
* @throws {EncodingError} When a required component is missing, a CHOICE value
|
|
27
|
+
* names no alternative, a BIT STRING has more than 7 unused bits, or a time
|
|
28
|
+
* value is not representable.
|
|
13
29
|
*/
|
|
14
30
|
export declare function cerEncode<D extends AnyAsn1TypeDef>(def: D, value: DefInputOf<D>): Uint8Array;
|
|
15
31
|
/** Validate explicit wire defaults even when the component is absent. */
|
package/dist/cer/encode.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../src/cer/encode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../src/cer/encode.ts"],"names":[],"mappings":"AA2CA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAejF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,cAAc,EACjD,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAClB,UAAU,CAEZ;AA+RD,yEAAyE;AACzE,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAExE"}
|