micro509 0.9.0 → 0.10.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.
Files changed (107) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/dist/index.js +15 -15
  3. package/dist/internal/asn1/asn1.js +145 -186
  4. package/dist/internal/asn1/asn1.js.map +1 -0
  5. package/dist/internal/asn1/der.js +210 -227
  6. package/dist/internal/asn1/der.js.map +1 -0
  7. package/dist/internal/asn1/oids.js +297 -101
  8. package/dist/internal/asn1/oids.js.map +1 -0
  9. package/dist/internal/asn1/oids2.js +69 -0
  10. package/dist/internal/asn1/oids2.js.map +1 -0
  11. package/dist/internal/crypto/algorithm-names.js +37 -35
  12. package/dist/internal/crypto/algorithm-names.js.map +1 -0
  13. package/dist/internal/crypto/ecdsa.js +25 -28
  14. package/dist/internal/crypto/ecdsa.js.map +1 -0
  15. package/dist/internal/crypto/hash.js +56 -117
  16. package/dist/internal/crypto/hash.js.map +1 -0
  17. package/dist/internal/crypto/pbes2.js +122 -133
  18. package/dist/internal/crypto/pbes2.js.map +1 -0
  19. package/dist/internal/crypto/rsa-pss.js +118 -124
  20. package/dist/internal/crypto/rsa-pss.js.map +1 -0
  21. package/dist/internal/crypto/sig-verify.js +87 -99
  22. package/dist/internal/crypto/sig-verify.js.map +1 -0
  23. package/dist/internal/crypto/signing.d.ts +12 -8
  24. package/dist/internal/crypto/signing.js +53 -55
  25. package/dist/internal/crypto/signing.js.map +1 -0
  26. package/dist/internal/crypto/webcrypto.js +5 -3
  27. package/dist/internal/crypto/webcrypto.js.map +1 -0
  28. package/dist/internal/shared/base64.js +10 -9
  29. package/dist/internal/shared/base64.js.map +1 -0
  30. package/dist/internal/shared/dn.js +50 -57
  31. package/dist/internal/shared/dn.js.map +1 -0
  32. package/dist/internal/shared/ip.js +43 -53
  33. package/dist/internal/shared/ip.js.map +1 -0
  34. package/dist/internal/verify/name-constraints-engine.js +211 -239
  35. package/dist/internal/verify/name-constraints-engine.js.map +1 -0
  36. package/dist/internal/verify/policy-engine.js +228 -247
  37. package/dist/internal/verify/policy-engine.js.map +1 -0
  38. package/dist/internal/verify/verify-path.js +213 -228
  39. package/dist/internal/verify/verify-path.js.map +1 -0
  40. package/dist/internal/x509/extension-bits.js +62 -59
  41. package/dist/internal/x509/extension-bits.js.map +1 -0
  42. package/dist/internal/x509/extension-registry.js +133 -164
  43. package/dist/internal/x509/extension-registry.js.map +1 -0
  44. package/dist/internal/x509/name-fields.js +35 -41
  45. package/dist/internal/x509/name-fields.js.map +1 -0
  46. package/dist/keys/keys.d.ts +583 -547
  47. package/dist/keys/keys.js +519 -431
  48. package/dist/keys/keys.js.map +1 -0
  49. package/dist/keys.js +2 -2
  50. package/dist/pem/pem.d.ts +46 -46
  51. package/dist/pem/pem.js +62 -81
  52. package/dist/pem/pem.js.map +1 -0
  53. package/dist/pem.js +2 -2
  54. package/dist/pkcs/pfx.d.ts +96 -80
  55. package/dist/pkcs/pfx.js +191 -231
  56. package/dist/pkcs/pfx.js.map +1 -0
  57. package/dist/pkcs/pkcs12-mac.d.ts +20 -18
  58. package/dist/pkcs/pkcs12-mac.js +90 -111
  59. package/dist/pkcs/pkcs12-mac.js.map +1 -0
  60. package/dist/pkcs/pkcs7.d.ts +118 -69
  61. package/dist/pkcs/pkcs7.js +401 -443
  62. package/dist/pkcs/pkcs7.js.map +1 -0
  63. package/dist/pkcs.d.ts +2 -2
  64. package/dist/pkcs.js +4 -4
  65. package/dist/result/result.d.ts +37 -32
  66. package/dist/result/result.js +46 -44
  67. package/dist/result/result.js.map +1 -0
  68. package/dist/result.js +2 -2
  69. package/dist/revocation/chain.d.ts +138 -119
  70. package/dist/revocation/chain.js +248 -281
  71. package/dist/revocation/chain.js.map +1 -0
  72. package/dist/revocation/crl.d.ts +125 -123
  73. package/dist/revocation/crl.js +653 -745
  74. package/dist/revocation/crl.js.map +1 -0
  75. package/dist/revocation/ocsp.d.ts +183 -177
  76. package/dist/revocation/ocsp.js +579 -636
  77. package/dist/revocation/ocsp.js.map +1 -0
  78. package/dist/revocation/revocation.d.ts +26 -26
  79. package/dist/revocation/revocation.js +104 -125
  80. package/dist/revocation/revocation.js.map +1 -0
  81. package/dist/revocation.js +5 -5
  82. package/dist/verify/identity.d.ts +42 -42
  83. package/dist/verify/identity.js +158 -167
  84. package/dist/verify/identity.js.map +1 -0
  85. package/dist/verify/name-constraints.d.ts +7 -7
  86. package/dist/verify/policy.d.ts +10 -10
  87. package/dist/verify/verify.d.ts +163 -163
  88. package/dist/verify/verify.js +396 -392
  89. package/dist/verify/verify.js.map +1 -0
  90. package/dist/verify.js +3 -3
  91. package/dist/x509/certificate.d.ts +117 -117
  92. package/dist/x509/certificate.js +51 -60
  93. package/dist/x509/certificate.js.map +1 -0
  94. package/dist/x509/csr.d.ts +25 -25
  95. package/dist/x509/csr.js +26 -30
  96. package/dist/x509/csr.js.map +1 -0
  97. package/dist/x509/extensions.d.ts +228 -184
  98. package/dist/x509/extensions.js +175 -200
  99. package/dist/x509/extensions.js.map +1 -0
  100. package/dist/x509/name.d.ts +94 -93
  101. package/dist/x509/name.js +30 -29
  102. package/dist/x509/name.js.map +1 -0
  103. package/dist/x509/parse.d.ts +185 -185
  104. package/dist/x509/parse.js +638 -676
  105. package/dist/x509/parse.js.map +1 -0
  106. package/dist/x509.js +6 -6
  107. package/package.json +79 -41
@@ -1,7 +1,6 @@
1
1
  import { ErrorResult, Micro509Error } from "../result/result.js";
2
2
  import { ParsedCertificate, ParsedName } from "../x509/parse.js";
3
3
  import { SignatureProfileInput } from "../internal/crypto/signing.js";
4
-
5
4
  //#region src/pkcs/pkcs7.d.ts
6
5
  /** PEM text (may contain multiple CERTIFICATE blocks), raw DER bytes, or an already-parsed certificate. */
7
6
  type Pkcs7CertificateSource = string | Uint8Array | ParsedCertificate;
@@ -40,16 +39,20 @@ interface ParsedPkcs7SignerInfoBase {
40
39
  readonly signature: Uint8Array;
41
40
  }
42
41
  /**
43
- * A single SignerInfo decoded from a PKCS#7 SignedData structure.
44
- *
45
- * Discriminated on `hasSignedAttrs`: when `true`, `signedAttrsDer` is always
46
- * present; when `false`, it cannot exist.
47
- */
42
+ * A single SignerInfo decoded from a PKCS#7 SignedData structure.
43
+ *
44
+ * Discriminated on `hasSignedAttrs`: when `true`, `signedAttrsDer` is always
45
+ * present; when `false`, it cannot exist.
46
+ */
48
47
  type ParsedPkcs7SignerInfo = (ParsedPkcs7SignerInfoBase & {
49
- /** This SignerInfo includes authenticated (signed) attributes. */readonly hasSignedAttrs: true; /** Raw DER of signedAttrs with original IMPLICIT [0] tag (0xa0). */
48
+ /** This SignerInfo includes authenticated (signed) attributes. */
49
+ readonly hasSignedAttrs: true;
50
+ /** Raw DER of signedAttrs with original IMPLICIT [0] tag (0xa0). */
50
51
  readonly signedAttrsDer: Uint8Array;
51
52
  }) | (ParsedPkcs7SignerInfoBase & {
52
- /** This SignerInfo has no authenticated attributes. */readonly hasSignedAttrs: false; /** Never present without signed attributes. */
53
+ /** This SignerInfo has no authenticated attributes. */
54
+ readonly hasSignedAttrs: false;
55
+ /** Never present without signed attributes. */
53
56
  readonly signedAttrsDer?: undefined;
54
57
  });
55
58
  /** Decoded PKCS#7 SignedData content, including certificates and signer info. */
@@ -82,24 +85,47 @@ interface ParsePkcs7Failure extends Micro509Error<ParsePkcs7ErrorCode> {
82
85
  }
83
86
  /** Success-or-failure result from {@linkcode parsePkcs7SignedDataDer} / {@linkcode parsePkcs7SignedDataPem}. */
84
87
  type ParsePkcs7SignedDataResult = {
85
- /** Parse succeeded. */readonly ok: true; /** Decoded SignedData. */
88
+ /** Parse succeeded. */
89
+ readonly ok: true;
90
+ /** Decoded SignedData. */
86
91
  readonly value: ParsedPkcs7SignedData;
87
92
  } | ErrorResult<ParsePkcs7ErrorCode, Record<never, never>, ParsePkcs7Failure>;
88
93
  /** Success-or-failure result from {@linkcode parsePkcs7CertBagDer} / {@linkcode parsePkcs7CertBagPem}. */
89
94
  type ParsePkcs7CertBagResult = {
90
- /** Parse succeeded. */readonly ok: true; /** Parsed certificates from the cert bag. */
95
+ /** Parse succeeded. */
96
+ readonly ok: true;
97
+ /** Parsed certificates from the cert bag. */
91
98
  readonly value: readonly ParsedCertificate[];
92
99
  } | ErrorResult<ParsePkcs7ErrorCode, Record<never, never>, ParsePkcs7Failure>;
100
+ /**
101
+ * Error codes for {@linkcode verifyPkcs7SignedData} failures.
102
+ *
103
+ * `detached_content_required` means the SignedData carries no `eContent`
104
+ * (detached signature or degenerate cert bag) and no external content was
105
+ * supplied via {@linkcode VerifyPkcs7SignedDataOptions}.
106
+ */
107
+ type VerifyPkcs7SignedDataErrorCode = "signer_not_found" | "signature_invalid" | "message_digest_mismatch" | "detached_content_required" | ParsePkcs7ErrorCode;
93
108
  /** Error payload for a failed {@linkcode verifyPkcs7SignedData} call. */
94
- interface VerifyPkcs7SignedDataFailure extends Micro509Error<"signer_not_found" | "signature_invalid" | "message_digest_mismatch" | "content_missing" | ParsePkcs7ErrorCode> {
109
+ interface VerifyPkcs7SignedDataFailure extends Micro509Error<VerifyPkcs7SignedDataErrorCode> {
95
110
  /** Always `false` for failures. */
96
111
  readonly ok: false;
97
112
  }
113
+ /** Options for {@linkcode verifyPkcs7SignedData}. */
114
+ interface VerifyPkcs7SignedDataOptions {
115
+ /**
116
+ * External content for a detached SignedData (RFC 5652 Section 5.2, absent
117
+ * `eContent`). Required to verify a detached signature; ignored when the
118
+ * SignedData embeds its own content.
119
+ */
120
+ readonly content?: Uint8Array;
121
+ }
98
122
  /** Success-or-failure result from {@linkcode verifyPkcs7SignedData}. */
99
123
  type VerifyPkcs7SignedDataResult = {
100
- /** Verification succeeded. */readonly ok: true; /** The verified SignedData structure. */
124
+ /** Verification succeeded. */
125
+ readonly ok: true;
126
+ /** The verified SignedData structure. */
101
127
  readonly value: ParsedPkcs7SignedData;
102
- } | ErrorResult<"signer_not_found" | "signature_invalid" | "message_digest_mismatch" | "content_missing" | ParsePkcs7ErrorCode, Record<never, never>, VerifyPkcs7SignedDataFailure>;
128
+ } | ErrorResult<VerifyPkcs7SignedDataErrorCode, Record<never, never>, VerifyPkcs7SignedDataFailure>;
103
129
  /** Caller-correctable failure code from {@linkcode createPkcs7CertBag}. */
104
130
  type CreatePkcs7CertBagErrorCode = "invalid_certificate";
105
131
  /** Error payload for a failed PKCS#7 certificate bag creation. */
@@ -109,31 +135,33 @@ interface CreatePkcs7CertBagFailure extends Micro509Error<CreatePkcs7CertBagErro
109
135
  }
110
136
  /** Success-or-failure result from {@linkcode createPkcs7CertBag}. */
111
137
  type CreatePkcs7CertBagResult = {
112
- /** Creation succeeded. */readonly ok: true; /** DER, PEM, and base64 forms of the certificate bag. */
138
+ /** Creation succeeded. */
139
+ readonly ok: true;
140
+ /** DER, PEM, and base64 forms of the certificate bag. */
113
141
  readonly value: Pkcs7CertBagMaterial;
114
142
  } | ErrorResult<CreatePkcs7CertBagErrorCode, Record<never, never>, CreatePkcs7CertBagFailure>;
115
143
  /**
116
- * Creates a degenerate PKCS#7 SignedData structure containing only
117
- * certificates (no signers), returning DER, PEM, and base64 forms, or a
118
- * typed `invalid_certificate` failure when a certificate source is not
119
- * valid PEM/DER.
120
- */
144
+ * Creates a degenerate PKCS#7 SignedData structure containing only
145
+ * certificates (no signers), returning DER, PEM, and base64 forms, or a
146
+ * typed `invalid_certificate` failure when a certificate source is not
147
+ * valid PEM/DER.
148
+ */
121
149
  declare function createPkcs7CertBag(certificates: readonly Pkcs7CertificateSource[]): CreatePkcs7CertBagResult;
122
150
  /** A single signer for {@linkcode createPkcs7SignedData}. */
123
151
  interface Pkcs7Signer {
124
152
  /**
125
- * Signer certificate (PEM text with one CERTIFICATE block, or raw DER).
126
- * Embedded in the SignedData certificate set and referenced by the
127
- * SignerInfo via issuerAndSerialNumber.
128
- */
153
+ * Signer certificate (PEM text with one CERTIFICATE block, or raw DER).
154
+ * Embedded in the SignedData certificate set and referenced by the
155
+ * SignerInfo via issuerAndSerialNumber.
156
+ */
129
157
  readonly certificate: Pkcs7CertificateSource;
130
158
  /** Private key matching the certificate's public key, used to sign. */
131
159
  readonly privateKey: CryptoKey;
132
160
  /**
133
- * Signature profile. Defaults to inferring the algorithm from the key
134
- * (e.g. ECDSA→ecdsa-with-SHA*, RSA→sha*WithRSAEncryption, Ed25519).
135
- * Pass `{ kind: 'rsa-pss' }` to force RSA-PSS padding for an RSA-PSS key.
136
- */
161
+ * Signature profile. Defaults to inferring the algorithm from the key
162
+ * (e.g. ECDSA→ecdsa-with-SHA*, RSA→sha*WithRSAEncryption, Ed25519).
163
+ * Pass `{ kind: 'rsa-pss' }` to force RSA-PSS padding for an RSA-PSS key.
164
+ */
137
165
  readonly signature?: SignatureProfileInput;
138
166
  }
139
167
  /** Input for {@linkcode createPkcs7SignedData}. */
@@ -143,15 +171,23 @@ interface CreatePkcs7SignedDataInput {
143
171
  /** One or more signers. Each produces a SignerInfo with signed attributes. */
144
172
  readonly signers: readonly Pkcs7Signer[];
145
173
  /**
146
- * Additional certificates to embed (e.g. intermediates). Signer
147
- * certificates are always embedded; duplicate DER is removed.
148
- */
174
+ * Additional certificates to embed (e.g. intermediates). Signer
175
+ * certificates are always embedded; duplicate DER is removed.
176
+ */
149
177
  readonly additionalCertificates?: readonly Pkcs7CertificateSource[];
150
178
  /**
151
- * Encapsulated content type OID.
152
- * @default `'1.2.840.113549.1.7.1'` (pkcs7-data)
153
- */
179
+ * Encapsulated content type OID.
180
+ * @default `'1.2.840.113549.1.7.1'` (pkcs7-data)
181
+ */
154
182
  readonly encapsulatedContentTypeOid?: string;
183
+ /**
184
+ * Omit `eContent` from `encapContentInfo` (RFC 5652 Section 5.2 detached
185
+ * form). The signature still covers `content` via the messageDigest signed
186
+ * attribute, but the bytes are not embedded — the verifier must supply them
187
+ * externally (e.g. git x509 commit signing, S/MIME detached signatures).
188
+ * @default false
189
+ */
190
+ readonly detached?: boolean;
155
191
  }
156
192
  /** DER, PEM, and base64 encodings of a PKCS#7 SignedData structure. */
157
193
  interface Pkcs7SignedDataMaterial {
@@ -163,7 +199,7 @@ interface Pkcs7SignedDataMaterial {
163
199
  readonly base64: string;
164
200
  }
165
201
  /** Caller-correctable failure codes from {@linkcode createPkcs7SignedData}. */
166
- type CreatePkcs7SignedDataErrorCode = "no_signers" | "invalid_signer_certificate" | "unsupported_signer_key";
202
+ type CreatePkcs7SignedDataErrorCode = "no_signers" | "invalid_signer_certificate" | "invalid_certificate" | "unsupported_signer_key";
167
203
  /** Error payload for a failed PKCS#7 SignedData creation. */
168
204
  interface CreatePkcs7SignedDataFailure extends Micro509Error<CreatePkcs7SignedDataErrorCode> {
169
205
  /** Always `false` for failures. */
@@ -171,26 +207,30 @@ interface CreatePkcs7SignedDataFailure extends Micro509Error<CreatePkcs7SignedDa
171
207
  }
172
208
  /** Success-or-failure result from {@linkcode createPkcs7SignedData}. */
173
209
  type CreatePkcs7SignedDataResult = {
174
- /** Creation succeeded. */readonly ok: true; /** DER, PEM, and base64 forms of the SignedData. */
210
+ /** Creation succeeded. */
211
+ readonly ok: true;
212
+ /** DER, PEM, and base64 forms of the SignedData. */
175
213
  readonly value: Pkcs7SignedDataMaterial;
176
214
  } | ErrorResult<CreatePkcs7SignedDataErrorCode, Record<never, never>, CreatePkcs7SignedDataFailure>;
177
215
  /**
178
- * Creates a PKCS#7/CMS SignedData with one or more signers over `content`.
179
- *
180
- * Each signer uses the RFC 5652 Section 5.4 signed-attributes flow: the
181
- * signature covers a `SET OF` authenticated attributes carrying `contentType`
182
- * and `messageDigest` (the digest of the encapsulated content). The content is
183
- * embedded (attached signature), so the result verifies with
184
- * {@linkcode verifyPkcs7SignedData} without any external data.
185
- *
186
- * The content digest is derived from each signer's key (P-256/RSA-SHA256 →
187
- * SHA-256, P-384 → SHA-384, P-521 → SHA-512, Ed25519 → SHA-512 per RFC 8419).
188
- *
189
- * Returns a {@linkcode CreatePkcs7SignedDataResult}: DER, PEM, and base64
190
- * forms on success, or a typed failure for caller-correctable input (no
191
- * signers, a signer source that is not exactly one certificate, or an
192
- * unsupported signer key).
193
- */
216
+ * Creates a PKCS#7/CMS SignedData with one or more signers over `content`.
217
+ *
218
+ * Each signer uses the RFC 5652 Section 5.4 signed-attributes flow: the
219
+ * signature covers a `SET OF` authenticated attributes carrying `contentType`
220
+ * and `messageDigest` (the digest of the encapsulated content). By default the
221
+ * content is embedded (attached signature), so the result verifies with
222
+ * {@linkcode verifyPkcs7SignedData} without any external data. With
223
+ * `detached: true` the `eContent` is omitted (RFC 5652 Section 5.2) and the
224
+ * verifier must supply the content externally.
225
+ *
226
+ * The content digest is derived from each signer's key (P-256/RSA-SHA256 →
227
+ * SHA-256, P-384 → SHA-384, P-521 → SHA-512, Ed25519 → SHA-512 per RFC 8419).
228
+ *
229
+ * Returns a {@linkcode CreatePkcs7SignedDataResult}: DER, PEM, and base64
230
+ * forms on success, or a typed failure for caller-correctable input (no
231
+ * signers, a signer source that is not exactly one certificate, or an
232
+ * unsupported signer key).
233
+ */
194
234
  declare function createPkcs7SignedData(input: CreatePkcs7SignedDataInput): Promise<CreatePkcs7SignedDataResult>;
195
235
  /** Parses a DER-encoded PKCS#7 cert bag, returning the contained certificates. */
196
236
  declare function parsePkcs7CertBagDer(der: Uint8Array): ParsePkcs7CertBagResult;
@@ -201,22 +241,31 @@ declare function parsePkcs7SignedDataDer(der: Uint8Array): ParsePkcs7SignedDataR
201
241
  /** Decodes a PEM-armored PKCS#7 SignedData. Expects exactly one `PKCS7` PEM block. */
202
242
  declare function parsePkcs7SignedDataPem(pem: string): ParsePkcs7SignedDataResult;
203
243
  /**
204
- * Verifies all signer signatures in a PKCS#7 SignedData structure.
205
- *
206
- * Accepts PEM text, raw DER, or an already-parsed {@linkcode ParsedPkcs7SignedData}.
207
- * For each signer, locates the matching certificate in the embedded set and
208
- * verifies the signature (including signed-attribute digest checks per RFC 5652 Section 5.4).
209
- *
210
- * @example
211
- * ```ts
212
- * import { verifyPkcs7SignedData } from 'micro509';
213
- *
214
- * const result = await verifyPkcs7SignedData(pkcs7Pem);
215
- * if (result.ok) {
216
- * console.log('all signers verified');
217
- * }
218
- * ```
219
- */
220
- declare function verifyPkcs7SignedData(input: string | Uint8Array | ParsedPkcs7SignedData): Promise<VerifyPkcs7SignedDataResult>;
244
+ * Verifies all signer signatures in a PKCS#7 SignedData structure.
245
+ *
246
+ * Accepts PEM text, raw DER, or an already-parsed {@linkcode ParsedPkcs7SignedData}.
247
+ * For each signer, locates the matching certificate in the embedded set and
248
+ * verifies the signature (including signed-attribute digest checks per RFC 5652 Section 5.4).
249
+ *
250
+ * For a detached SignedData (absent `eContent`), pass the externally-held
251
+ * content via `options.content`; without it, verification fails with the
252
+ * typed `detached_content_required` code. When the SignedData embeds its own
253
+ * content, that embedded content is verified and `options.content` is ignored.
254
+ *
255
+ * @example
256
+ * ```ts
257
+ * import { verifyPkcs7SignedData } from 'micro509';
258
+ *
259
+ * const result = await verifyPkcs7SignedData(pkcs7Pem);
260
+ * if (result.ok) {
261
+ * console.log('all signers verified');
262
+ * }
263
+ *
264
+ * // Detached signature: supply the content externally
265
+ * const detached = await verifyPkcs7SignedData(cmsBlob, { content: signedBytes });
266
+ * ```
267
+ */
268
+ declare function verifyPkcs7SignedData(input: string | Uint8Array | ParsedPkcs7SignedData, options?: VerifyPkcs7SignedDataOptions): Promise<VerifyPkcs7SignedDataResult>;
221
269
  //#endregion
222
- export { CreatePkcs7CertBagErrorCode, CreatePkcs7CertBagFailure, CreatePkcs7CertBagResult, CreatePkcs7SignedDataErrorCode, CreatePkcs7SignedDataFailure, CreatePkcs7SignedDataInput, CreatePkcs7SignedDataResult, ParsePkcs7CertBagResult, ParsePkcs7ErrorCode, ParsePkcs7Failure, ParsePkcs7SignedDataResult, ParsedPkcs7SignedData, ParsedPkcs7SignerInfo, ParsedPkcs7SignerInfoBase, Pkcs7CertBagMaterial, Pkcs7CertificateSource, Pkcs7SignedDataMaterial, Pkcs7Signer, VerifyPkcs7SignedDataFailure, VerifyPkcs7SignedDataResult, createPkcs7CertBag, createPkcs7SignedData, parsePkcs7CertBagDer, parsePkcs7CertBagPem, parsePkcs7SignedDataDer, parsePkcs7SignedDataPem, verifyPkcs7SignedData };
270
+ export { CreatePkcs7CertBagErrorCode, CreatePkcs7CertBagFailure, CreatePkcs7CertBagResult, CreatePkcs7SignedDataErrorCode, CreatePkcs7SignedDataFailure, CreatePkcs7SignedDataInput, CreatePkcs7SignedDataResult, ParsePkcs7CertBagResult, ParsePkcs7ErrorCode, ParsePkcs7Failure, ParsePkcs7SignedDataResult, ParsedPkcs7SignedData, ParsedPkcs7SignerInfo, ParsedPkcs7SignerInfoBase, Pkcs7CertBagMaterial, Pkcs7CertificateSource, Pkcs7SignedDataMaterial, Pkcs7Signer, VerifyPkcs7SignedDataErrorCode, VerifyPkcs7SignedDataFailure, VerifyPkcs7SignedDataOptions, VerifyPkcs7SignedDataResult, createPkcs7CertBag, createPkcs7SignedData, parsePkcs7CertBagDer, parsePkcs7CertBagPem, parsePkcs7SignedDataDer, parsePkcs7SignedDataPem, verifyPkcs7SignedData };
271
+ //# sourceMappingURL=pkcs7.d.ts.map