@mkabatek/pptx-viewer 1.5.4 → 1.5.5
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/package.json +2 -9
- package/node_modules/emf-converter/LICENSE +0 -21
- package/node_modules/emf-converter/README.md +0 -629
- package/node_modules/emf-converter/dist/index.d.mts +0 -86
- package/node_modules/emf-converter/dist/index.d.ts +0 -86
- package/node_modules/emf-converter/dist/index.js +0 -4257
- package/node_modules/emf-converter/dist/index.mjs +0 -4253
- package/node_modules/emf-converter/package.json +0 -53
- package/node_modules/mtx-decompressor/LICENSE +0 -373
- package/node_modules/mtx-decompressor/README.md +0 -271
- package/node_modules/mtx-decompressor/dist/index.d.mts +0 -84
- package/node_modules/mtx-decompressor/dist/index.d.ts +0 -84
- package/node_modules/mtx-decompressor/dist/index.js +0 -1532
- package/node_modules/mtx-decompressor/dist/index.mjs +0 -1528
- package/node_modules/mtx-decompressor/package.json +0 -44
- package/node_modules/pptx-viewer-core/LICENSE +0 -21
- package/node_modules/pptx-viewer-core/NOTICE +0 -16
- package/node_modules/pptx-viewer-core/README.md +0 -1294
- package/node_modules/pptx-viewer-core/dist/SvgExporter-BtZczTlB.d.ts +0 -557
- package/node_modules/pptx-viewer-core/dist/SvgExporter-D4mBWJHE.d.mts +0 -557
- package/node_modules/pptx-viewer-core/dist/cli/index.d.mts +0 -150
- package/node_modules/pptx-viewer-core/dist/cli/index.d.ts +0 -150
- package/node_modules/pptx-viewer-core/dist/cli/index.js +0 -0
- package/node_modules/pptx-viewer-core/dist/cli/index.mjs +0 -0
- package/node_modules/pptx-viewer-core/dist/converter/index.d.mts +0 -48
- package/node_modules/pptx-viewer-core/dist/converter/index.d.ts +0 -48
- package/node_modules/pptx-viewer-core/dist/converter/index.js +0 -0
- package/node_modules/pptx-viewer-core/dist/converter/index.mjs +0 -0
- package/node_modules/pptx-viewer-core/dist/index.d.mts +0 -12744
- package/node_modules/pptx-viewer-core/dist/index.d.ts +0 -12744
- package/node_modules/pptx-viewer-core/dist/index.js +0 -66894
- package/node_modules/pptx-viewer-core/dist/index.mjs +0 -66420
- package/node_modules/pptx-viewer-core/dist/presentation-nZxgWvXq.d.mts +0 -5645
- package/node_modules/pptx-viewer-core/dist/presentation-nZxgWvXq.d.ts +0 -5645
- package/node_modules/pptx-viewer-core/dist/signature-inspection-status-BCUpfCQh.d.mts +0 -220
- package/node_modules/pptx-viewer-core/dist/signature-inspection-status-BCUpfCQh.d.ts +0 -220
- package/node_modules/pptx-viewer-core/dist/signature-node/index.d.mts +0 -177
- package/node_modules/pptx-viewer-core/dist/signature-node/index.d.ts +0 -177
- package/node_modules/pptx-viewer-core/dist/signature-node/index.js +0 -1206
- package/node_modules/pptx-viewer-core/dist/signature-node/index.mjs +0 -1143
- package/node_modules/pptx-viewer-core/dist/text-operations-DCTGMltY.d.mts +0 -134
- package/node_modules/pptx-viewer-core/dist/text-operations-DYmhoi7U.d.ts +0 -134
- package/node_modules/pptx-viewer-core/package.json +0 -96
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Constants for OOXML digital signature processing.
|
|
3
|
-
*
|
|
4
|
-
* OPC URIs, algorithm URIs, digest mappings, and enterprise
|
|
5
|
-
* environment variable names used across both platform-agnostic
|
|
6
|
-
* and Node-only signature modules.
|
|
7
|
-
*/
|
|
8
|
-
/** The OOXML relationship type for the digital signature origin part. */
|
|
9
|
-
declare const DIGITAL_SIGNATURE_ORIGIN_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
|
|
10
|
-
/** The OOXML relationship type for individual signature parts. */
|
|
11
|
-
declare const DIGITAL_SIGNATURE_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
|
|
12
|
-
/** Custom pptx-viewer manifest namespace for extended signature references. */
|
|
13
|
-
declare const PPTX_VIEWER_MANIFEST_NS = "urn:pptx-viewer:ooxml-signature:v1";
|
|
14
|
-
/** W3C XML Digital Signature namespace. */
|
|
15
|
-
declare const XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
16
|
-
/** OPC relationship transform algorithm URI. */
|
|
17
|
-
declare const OPC_RELATIONSHIP_TRANSFORM = "http://schemas.openxmlformats.org/package/2006/RelationshipTransform";
|
|
18
|
-
/** Enveloped signature transform algorithm URI. */
|
|
19
|
-
declare const XML_TRANSFORM_ENVELOPED_SIGNATURE = "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
|
|
20
|
-
/** Set of supported XML canonicalization transform algorithm URIs. */
|
|
21
|
-
declare const SUPPORTED_XML_CANON_TRANSFORMS: Set<string>;
|
|
22
|
-
/** Environment variable: path to file containing enterprise trust root PEM certificates. */
|
|
23
|
-
declare const ENTERPRISE_TRUST_ROOTS_FILE_ENV = "PPTX_VIEWER_TRUST_ROOTS_FILE";
|
|
24
|
-
/** Environment variable: inline PEM trust roots. */
|
|
25
|
-
declare const ENTERPRISE_TRUST_ROOTS_PEM_ENV = "PPTX_VIEWER_TRUST_ROOTS_PEM";
|
|
26
|
-
/** Environment variable: require revocation check. */
|
|
27
|
-
declare const ENTERPRISE_REQUIRE_REVOCATION_ENV = "PPTX_VIEWER_REQUIRE_REVOCATION_CHECK";
|
|
28
|
-
/** Environment variable: fail on unknown revocation status. */
|
|
29
|
-
declare const ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "PPTX_VIEWER_FAIL_ON_REVOCATION_UNKNOWN";
|
|
30
|
-
/** Environment variable: require timestamp authority. */
|
|
31
|
-
declare const ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "PPTX_VIEWER_REQUIRE_TIMESTAMP";
|
|
32
|
-
/**
|
|
33
|
-
* Mapping from XML Digital Signature digest algorithm URIs to hash function names.
|
|
34
|
-
* Used by Node-only code with `node:crypto` (lowercase names).
|
|
35
|
-
*/
|
|
36
|
-
declare const DIGEST_ALGORITHM_TO_HASH: Record<string, string>;
|
|
37
|
-
/**
|
|
38
|
-
* Mapping from XML Digital Signature digest algorithm URIs to Web Crypto algorithm names.
|
|
39
|
-
* Used by platform-agnostic code with `crypto.subtle.digest`.
|
|
40
|
-
*/
|
|
41
|
-
declare const DIGEST_ALGORITHM_TO_WEB_CRYPTO: Record<string, string>;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Rich types for digital signature inspection, signing, and PKI validation.
|
|
45
|
-
*
|
|
46
|
-
* These are platform-agnostic — used by both browser-level detection
|
|
47
|
-
* and Node-only full verification modules.
|
|
48
|
-
*/
|
|
49
|
-
type CertificateRevocationStatus = 'good' | 'revoked' | 'unknown' | 'not-checked' | 'error';
|
|
50
|
-
type TimestampAuthorityStatus = 'valid' | 'invalid' | 'not-present' | 'not-checked' | 'error' | 'untrusted';
|
|
51
|
-
interface SignatureReferenceCheck {
|
|
52
|
-
uri: string;
|
|
53
|
-
resolvedPartPath?: string;
|
|
54
|
-
existsInPackage: boolean;
|
|
55
|
-
digestAlgorithm?: string;
|
|
56
|
-
digestExpectedBase64?: string;
|
|
57
|
-
digestActualBase64?: string;
|
|
58
|
-
digestStatus: 'verified' | 'mismatch' | 'missing-part' | 'unsupported-transform' | 'unsupported-algorithm' | 'insufficient-data';
|
|
59
|
-
transformAlgorithms: string[];
|
|
60
|
-
}
|
|
61
|
-
interface SignatureCertificateInfo {
|
|
62
|
-
subject?: string;
|
|
63
|
-
issuer?: string;
|
|
64
|
-
serialNumber?: string;
|
|
65
|
-
validFrom?: string;
|
|
66
|
-
validTo?: string;
|
|
67
|
-
}
|
|
68
|
-
type SignatureDetailStatus = 'verified' | 'digest-mismatch' | 'reference-missing' | 'signature-invalid' | 'certificate-untrusted' | 'certificate-revoked' | 'timestamp-invalid' | 'timestamp-untrusted' | 'structural-only';
|
|
69
|
-
interface SignatureDetail {
|
|
70
|
-
path: string;
|
|
71
|
-
signatureMethod?: string;
|
|
72
|
-
canonicalizationMethod?: string;
|
|
73
|
-
signingTime?: string;
|
|
74
|
-
referenceCount: number;
|
|
75
|
-
missingPartReferences: string[];
|
|
76
|
-
unsupportedTransforms: string[];
|
|
77
|
-
referenceChecks: SignatureReferenceCheck[];
|
|
78
|
-
certificate?: SignatureCertificateInfo;
|
|
79
|
-
signatureValueStatus: 'verified' | 'invalid' | 'not-checked';
|
|
80
|
-
certificateTrustStatus: 'trusted' | 'untrusted' | 'not-checked';
|
|
81
|
-
certificateTrustError?: string;
|
|
82
|
-
certificateRevocationStatus: CertificateRevocationStatus;
|
|
83
|
-
certificateRevocationError?: string;
|
|
84
|
-
timestampAuthorityStatus: TimestampAuthorityStatus;
|
|
85
|
-
timestampAuthorityError?: string;
|
|
86
|
-
certificateFingerprintSha256?: string;
|
|
87
|
-
status: SignatureDetailStatus;
|
|
88
|
-
}
|
|
89
|
-
type DigitalSignatureVerificationStatus = 'unsigned' | 'verified-trusted' | 'verified-untrusted' | 'certificate-revoked' | 'digest-mismatch' | 'reference-missing' | 'signature-invalid' | 'timestamp-invalid' | 'timestamp-untrusted' | 'present-not-verified' | 'invalid-package' | 'error';
|
|
90
|
-
interface DigitalSignatureReport {
|
|
91
|
-
supported: boolean;
|
|
92
|
-
hasSignature: boolean;
|
|
93
|
-
signatureCount: number;
|
|
94
|
-
signaturePaths: string[];
|
|
95
|
-
verificationStatus: DigitalSignatureVerificationStatus;
|
|
96
|
-
error?: string;
|
|
97
|
-
details?: SignatureDetail[];
|
|
98
|
-
hasOriginRelationship?: boolean;
|
|
99
|
-
}
|
|
100
|
-
interface SignOptions {
|
|
101
|
-
certificatePath: string;
|
|
102
|
-
certificatePassword?: string;
|
|
103
|
-
}
|
|
104
|
-
interface SignResult {
|
|
105
|
-
success: boolean;
|
|
106
|
-
signedData?: Uint8Array;
|
|
107
|
-
report: DigitalSignatureReport;
|
|
108
|
-
error?: string;
|
|
109
|
-
}
|
|
110
|
-
interface LoadedSigningMaterial {
|
|
111
|
-
privateKeyPem: string;
|
|
112
|
-
certificatePem: string;
|
|
113
|
-
}
|
|
114
|
-
interface ParsedReferenceTransform {
|
|
115
|
-
algorithm: string;
|
|
116
|
-
relationshipReferenceIds: string[];
|
|
117
|
-
}
|
|
118
|
-
interface ReferenceTransformResult {
|
|
119
|
-
data: Uint8Array;
|
|
120
|
-
unsupportedAlgorithms: string[];
|
|
121
|
-
}
|
|
122
|
-
interface SignatureValidationPolicy {
|
|
123
|
-
requireRevocationCheck: boolean;
|
|
124
|
-
failOnRevocationUnknown: boolean;
|
|
125
|
-
requireTimestamp: boolean;
|
|
126
|
-
}
|
|
127
|
-
interface OfficeSignatureReference {
|
|
128
|
-
uri: string;
|
|
129
|
-
digestMethod: string;
|
|
130
|
-
digestValue: string;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Pure regex-based XML extraction utilities for digital signature processing.
|
|
135
|
-
*
|
|
136
|
-
* These functions operate on raw XML strings without requiring a DOM parser,
|
|
137
|
-
* making them platform-agnostic (browser + Node).
|
|
138
|
-
*/
|
|
139
|
-
/**
|
|
140
|
-
* Escape special characters in an XML attribute value.
|
|
141
|
-
* Handles `&`, `<`, `>`, `"`, and `'` so the result is safe inside both
|
|
142
|
-
* double- and single-quoted attributes.
|
|
143
|
-
*/
|
|
144
|
-
declare function escapeXmlAttr(value: string): string;
|
|
145
|
-
/**
|
|
146
|
-
* Escape special characters in XML text content.
|
|
147
|
-
* Only `&`, `<`, and `>` need escaping outside of attribute values.
|
|
148
|
-
*/
|
|
149
|
-
declare function escapeXmlText(value: string): string;
|
|
150
|
-
/** Validate that `value` only contains characters from the standard base64 alphabet. */
|
|
151
|
-
declare function isValidBase64(value: string): boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Extract an attribute value from the first matching XML tag via regex.
|
|
154
|
-
* Namespace prefixes on the tag name are supported via the pattern.
|
|
155
|
-
*/
|
|
156
|
-
declare function extractTagAttribute(xml: string, tagName: string, attributeName: string): string | undefined;
|
|
157
|
-
/**
|
|
158
|
-
* Extract the text content of the first matching tag, ignoring namespace prefixes.
|
|
159
|
-
* Whitespace within the content is collapsed.
|
|
160
|
-
*/
|
|
161
|
-
declare function extractFirstTagText(xml: string, localName: string): string | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* Extract the text content of all matching tags, ignoring namespace prefixes.
|
|
164
|
-
* Whitespace within each match is collapsed.
|
|
165
|
-
*/
|
|
166
|
-
declare function extractAllTagText(xml: string, localName: string): string[];
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Pure string utilities for resolving digital signature reference URIs
|
|
170
|
-
* to ZIP part paths. Platform-agnostic (no Node dependencies).
|
|
171
|
-
*/
|
|
172
|
-
/** Normalize a ZIP part path: convert backslashes to forward slashes and strip leading slashes. */
|
|
173
|
-
declare function normalizePartPath(partPath: string): string;
|
|
174
|
-
/**
|
|
175
|
-
* Resolve a signature reference URI to a ZIP part path.
|
|
176
|
-
* Returns `undefined` for empty URIs, fragment-only URIs (#...), or invalid input.
|
|
177
|
-
*/
|
|
178
|
-
declare function resolveReferenceUriToPart(uri: string): string | undefined;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Platform-agnostic digest computation using the Web Crypto API.
|
|
182
|
-
*
|
|
183
|
-
* Works in both browser and Node.js (18+) environments via `crypto.subtle`.
|
|
184
|
-
*/
|
|
185
|
-
/**
|
|
186
|
-
* Compute a Base64-encoded digest of the given content using Web Crypto.
|
|
187
|
-
*
|
|
188
|
-
* @param content - The binary data to hash.
|
|
189
|
-
* @param digestAlgorithmUri - An XML Digital Signature digest algorithm URI
|
|
190
|
-
* (e.g. `http://www.w3.org/2001/04/xmlenc#sha256`).
|
|
191
|
-
* @returns The Base64-encoded digest, or `undefined` if the algorithm is unsupported
|
|
192
|
-
* or `crypto.subtle` is unavailable.
|
|
193
|
-
*/
|
|
194
|
-
declare function computeDigestBase64(content: Uint8Array, digestAlgorithmUri: string): Promise<string | undefined>;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Pure status-computation logic for digital signature inspection.
|
|
198
|
-
*
|
|
199
|
-
* These functions are platform-agnostic — they accept data and policy
|
|
200
|
-
* as parameters instead of reading from the environment.
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Compute the overall status for an individual signature detail
|
|
205
|
-
* based on its reference checks, trust, revocation, and timestamp statuses.
|
|
206
|
-
*
|
|
207
|
-
* @param detail - A partial `SignatureDetail` with the fields needed for status computation.
|
|
208
|
-
* @param policy - The validation policy controlling revocation/timestamp strictness.
|
|
209
|
-
* @returns The computed status for this signature detail.
|
|
210
|
-
*/
|
|
211
|
-
declare function computeDetailStatus(detail: Pick<SignatureDetail, 'signatureValueStatus' | 'missingPartReferences' | 'referenceChecks' | 'certificateTrustStatus' | 'certificateRevocationStatus' | 'timestampAuthorityStatus'>, policy: SignatureValidationPolicy): SignatureDetailStatus;
|
|
212
|
-
/**
|
|
213
|
-
* Compute the overall verification status from all signature details.
|
|
214
|
-
*
|
|
215
|
-
* @param details - Array of signature details from all signatures in the package.
|
|
216
|
-
* @returns The overall verification status for the report.
|
|
217
|
-
*/
|
|
218
|
-
declare function computeVerificationStatus(details: SignatureDetail[]): DigitalSignatureReport['verificationStatus'];
|
|
219
|
-
|
|
220
|
-
export { extractTagAttribute as A, isValidBase64 as B, type CertificateRevocationStatus as C, DIGEST_ALGORITHM_TO_HASH as D, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV as E, normalizePartPath as F, resolveReferenceUriToPart as G, type LoadedSigningMaterial as L, OPC_RELATIONSHIP_TRANSFORM as O, PPTX_VIEWER_MANIFEST_NS as P, type ReferenceTransformResult as R, SUPPORTED_XML_CANON_TRANSFORMS as S, type TimestampAuthorityStatus as T, XMLDSIG_NS as X, DIGEST_ALGORITHM_TO_WEB_CRYPTO as a, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE as b, DIGITAL_SIGNATURE_REL_TYPE as c, type DigitalSignatureReport as d, type DigitalSignatureVerificationStatus as e, ENTERPRISE_REQUIRE_REVOCATION_ENV as f, ENTERPRISE_REQUIRE_TIMESTAMP_ENV as g, ENTERPRISE_TRUST_ROOTS_FILE_ENV as h, ENTERPRISE_TRUST_ROOTS_PEM_ENV as i, type OfficeSignatureReference as j, type ParsedReferenceTransform as k, type SignOptions as l, type SignResult as m, type SignatureDetail as n, type SignatureDetailStatus as o, type SignatureCertificateInfo as p, type SignatureReferenceCheck as q, type SignatureValidationPolicy as r, XML_TRANSFORM_ENVELOPED_SIGNATURE as s, computeDetailStatus as t, computeDigestBase64 as u, computeVerificationStatus as v, escapeXmlAttr as w, escapeXmlText as x, extractAllTagText as y, extractFirstTagText as z };
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Constants for OOXML digital signature processing.
|
|
3
|
-
*
|
|
4
|
-
* OPC URIs, algorithm URIs, digest mappings, and enterprise
|
|
5
|
-
* environment variable names used across both platform-agnostic
|
|
6
|
-
* and Node-only signature modules.
|
|
7
|
-
*/
|
|
8
|
-
/** The OOXML relationship type for the digital signature origin part. */
|
|
9
|
-
declare const DIGITAL_SIGNATURE_ORIGIN_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
|
|
10
|
-
/** The OOXML relationship type for individual signature parts. */
|
|
11
|
-
declare const DIGITAL_SIGNATURE_REL_TYPE = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
|
|
12
|
-
/** Custom pptx-viewer manifest namespace for extended signature references. */
|
|
13
|
-
declare const PPTX_VIEWER_MANIFEST_NS = "urn:pptx-viewer:ooxml-signature:v1";
|
|
14
|
-
/** W3C XML Digital Signature namespace. */
|
|
15
|
-
declare const XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
16
|
-
/** OPC relationship transform algorithm URI. */
|
|
17
|
-
declare const OPC_RELATIONSHIP_TRANSFORM = "http://schemas.openxmlformats.org/package/2006/RelationshipTransform";
|
|
18
|
-
/** Enveloped signature transform algorithm URI. */
|
|
19
|
-
declare const XML_TRANSFORM_ENVELOPED_SIGNATURE = "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
|
|
20
|
-
/** Set of supported XML canonicalization transform algorithm URIs. */
|
|
21
|
-
declare const SUPPORTED_XML_CANON_TRANSFORMS: Set<string>;
|
|
22
|
-
/** Environment variable: path to file containing enterprise trust root PEM certificates. */
|
|
23
|
-
declare const ENTERPRISE_TRUST_ROOTS_FILE_ENV = "PPTX_VIEWER_TRUST_ROOTS_FILE";
|
|
24
|
-
/** Environment variable: inline PEM trust roots. */
|
|
25
|
-
declare const ENTERPRISE_TRUST_ROOTS_PEM_ENV = "PPTX_VIEWER_TRUST_ROOTS_PEM";
|
|
26
|
-
/** Environment variable: require revocation check. */
|
|
27
|
-
declare const ENTERPRISE_REQUIRE_REVOCATION_ENV = "PPTX_VIEWER_REQUIRE_REVOCATION_CHECK";
|
|
28
|
-
/** Environment variable: fail on unknown revocation status. */
|
|
29
|
-
declare const ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV = "PPTX_VIEWER_FAIL_ON_REVOCATION_UNKNOWN";
|
|
30
|
-
/** Environment variable: require timestamp authority. */
|
|
31
|
-
declare const ENTERPRISE_REQUIRE_TIMESTAMP_ENV = "PPTX_VIEWER_REQUIRE_TIMESTAMP";
|
|
32
|
-
/**
|
|
33
|
-
* Mapping from XML Digital Signature digest algorithm URIs to hash function names.
|
|
34
|
-
* Used by Node-only code with `node:crypto` (lowercase names).
|
|
35
|
-
*/
|
|
36
|
-
declare const DIGEST_ALGORITHM_TO_HASH: Record<string, string>;
|
|
37
|
-
/**
|
|
38
|
-
* Mapping from XML Digital Signature digest algorithm URIs to Web Crypto algorithm names.
|
|
39
|
-
* Used by platform-agnostic code with `crypto.subtle.digest`.
|
|
40
|
-
*/
|
|
41
|
-
declare const DIGEST_ALGORITHM_TO_WEB_CRYPTO: Record<string, string>;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Rich types for digital signature inspection, signing, and PKI validation.
|
|
45
|
-
*
|
|
46
|
-
* These are platform-agnostic — used by both browser-level detection
|
|
47
|
-
* and Node-only full verification modules.
|
|
48
|
-
*/
|
|
49
|
-
type CertificateRevocationStatus = 'good' | 'revoked' | 'unknown' | 'not-checked' | 'error';
|
|
50
|
-
type TimestampAuthorityStatus = 'valid' | 'invalid' | 'not-present' | 'not-checked' | 'error' | 'untrusted';
|
|
51
|
-
interface SignatureReferenceCheck {
|
|
52
|
-
uri: string;
|
|
53
|
-
resolvedPartPath?: string;
|
|
54
|
-
existsInPackage: boolean;
|
|
55
|
-
digestAlgorithm?: string;
|
|
56
|
-
digestExpectedBase64?: string;
|
|
57
|
-
digestActualBase64?: string;
|
|
58
|
-
digestStatus: 'verified' | 'mismatch' | 'missing-part' | 'unsupported-transform' | 'unsupported-algorithm' | 'insufficient-data';
|
|
59
|
-
transformAlgorithms: string[];
|
|
60
|
-
}
|
|
61
|
-
interface SignatureCertificateInfo {
|
|
62
|
-
subject?: string;
|
|
63
|
-
issuer?: string;
|
|
64
|
-
serialNumber?: string;
|
|
65
|
-
validFrom?: string;
|
|
66
|
-
validTo?: string;
|
|
67
|
-
}
|
|
68
|
-
type SignatureDetailStatus = 'verified' | 'digest-mismatch' | 'reference-missing' | 'signature-invalid' | 'certificate-untrusted' | 'certificate-revoked' | 'timestamp-invalid' | 'timestamp-untrusted' | 'structural-only';
|
|
69
|
-
interface SignatureDetail {
|
|
70
|
-
path: string;
|
|
71
|
-
signatureMethod?: string;
|
|
72
|
-
canonicalizationMethod?: string;
|
|
73
|
-
signingTime?: string;
|
|
74
|
-
referenceCount: number;
|
|
75
|
-
missingPartReferences: string[];
|
|
76
|
-
unsupportedTransforms: string[];
|
|
77
|
-
referenceChecks: SignatureReferenceCheck[];
|
|
78
|
-
certificate?: SignatureCertificateInfo;
|
|
79
|
-
signatureValueStatus: 'verified' | 'invalid' | 'not-checked';
|
|
80
|
-
certificateTrustStatus: 'trusted' | 'untrusted' | 'not-checked';
|
|
81
|
-
certificateTrustError?: string;
|
|
82
|
-
certificateRevocationStatus: CertificateRevocationStatus;
|
|
83
|
-
certificateRevocationError?: string;
|
|
84
|
-
timestampAuthorityStatus: TimestampAuthorityStatus;
|
|
85
|
-
timestampAuthorityError?: string;
|
|
86
|
-
certificateFingerprintSha256?: string;
|
|
87
|
-
status: SignatureDetailStatus;
|
|
88
|
-
}
|
|
89
|
-
type DigitalSignatureVerificationStatus = 'unsigned' | 'verified-trusted' | 'verified-untrusted' | 'certificate-revoked' | 'digest-mismatch' | 'reference-missing' | 'signature-invalid' | 'timestamp-invalid' | 'timestamp-untrusted' | 'present-not-verified' | 'invalid-package' | 'error';
|
|
90
|
-
interface DigitalSignatureReport {
|
|
91
|
-
supported: boolean;
|
|
92
|
-
hasSignature: boolean;
|
|
93
|
-
signatureCount: number;
|
|
94
|
-
signaturePaths: string[];
|
|
95
|
-
verificationStatus: DigitalSignatureVerificationStatus;
|
|
96
|
-
error?: string;
|
|
97
|
-
details?: SignatureDetail[];
|
|
98
|
-
hasOriginRelationship?: boolean;
|
|
99
|
-
}
|
|
100
|
-
interface SignOptions {
|
|
101
|
-
certificatePath: string;
|
|
102
|
-
certificatePassword?: string;
|
|
103
|
-
}
|
|
104
|
-
interface SignResult {
|
|
105
|
-
success: boolean;
|
|
106
|
-
signedData?: Uint8Array;
|
|
107
|
-
report: DigitalSignatureReport;
|
|
108
|
-
error?: string;
|
|
109
|
-
}
|
|
110
|
-
interface LoadedSigningMaterial {
|
|
111
|
-
privateKeyPem: string;
|
|
112
|
-
certificatePem: string;
|
|
113
|
-
}
|
|
114
|
-
interface ParsedReferenceTransform {
|
|
115
|
-
algorithm: string;
|
|
116
|
-
relationshipReferenceIds: string[];
|
|
117
|
-
}
|
|
118
|
-
interface ReferenceTransformResult {
|
|
119
|
-
data: Uint8Array;
|
|
120
|
-
unsupportedAlgorithms: string[];
|
|
121
|
-
}
|
|
122
|
-
interface SignatureValidationPolicy {
|
|
123
|
-
requireRevocationCheck: boolean;
|
|
124
|
-
failOnRevocationUnknown: boolean;
|
|
125
|
-
requireTimestamp: boolean;
|
|
126
|
-
}
|
|
127
|
-
interface OfficeSignatureReference {
|
|
128
|
-
uri: string;
|
|
129
|
-
digestMethod: string;
|
|
130
|
-
digestValue: string;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Pure regex-based XML extraction utilities for digital signature processing.
|
|
135
|
-
*
|
|
136
|
-
* These functions operate on raw XML strings without requiring a DOM parser,
|
|
137
|
-
* making them platform-agnostic (browser + Node).
|
|
138
|
-
*/
|
|
139
|
-
/**
|
|
140
|
-
* Escape special characters in an XML attribute value.
|
|
141
|
-
* Handles `&`, `<`, `>`, `"`, and `'` so the result is safe inside both
|
|
142
|
-
* double- and single-quoted attributes.
|
|
143
|
-
*/
|
|
144
|
-
declare function escapeXmlAttr(value: string): string;
|
|
145
|
-
/**
|
|
146
|
-
* Escape special characters in XML text content.
|
|
147
|
-
* Only `&`, `<`, and `>` need escaping outside of attribute values.
|
|
148
|
-
*/
|
|
149
|
-
declare function escapeXmlText(value: string): string;
|
|
150
|
-
/** Validate that `value` only contains characters from the standard base64 alphabet. */
|
|
151
|
-
declare function isValidBase64(value: string): boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Extract an attribute value from the first matching XML tag via regex.
|
|
154
|
-
* Namespace prefixes on the tag name are supported via the pattern.
|
|
155
|
-
*/
|
|
156
|
-
declare function extractTagAttribute(xml: string, tagName: string, attributeName: string): string | undefined;
|
|
157
|
-
/**
|
|
158
|
-
* Extract the text content of the first matching tag, ignoring namespace prefixes.
|
|
159
|
-
* Whitespace within the content is collapsed.
|
|
160
|
-
*/
|
|
161
|
-
declare function extractFirstTagText(xml: string, localName: string): string | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* Extract the text content of all matching tags, ignoring namespace prefixes.
|
|
164
|
-
* Whitespace within each match is collapsed.
|
|
165
|
-
*/
|
|
166
|
-
declare function extractAllTagText(xml: string, localName: string): string[];
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Pure string utilities for resolving digital signature reference URIs
|
|
170
|
-
* to ZIP part paths. Platform-agnostic (no Node dependencies).
|
|
171
|
-
*/
|
|
172
|
-
/** Normalize a ZIP part path: convert backslashes to forward slashes and strip leading slashes. */
|
|
173
|
-
declare function normalizePartPath(partPath: string): string;
|
|
174
|
-
/**
|
|
175
|
-
* Resolve a signature reference URI to a ZIP part path.
|
|
176
|
-
* Returns `undefined` for empty URIs, fragment-only URIs (#...), or invalid input.
|
|
177
|
-
*/
|
|
178
|
-
declare function resolveReferenceUriToPart(uri: string): string | undefined;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Platform-agnostic digest computation using the Web Crypto API.
|
|
182
|
-
*
|
|
183
|
-
* Works in both browser and Node.js (18+) environments via `crypto.subtle`.
|
|
184
|
-
*/
|
|
185
|
-
/**
|
|
186
|
-
* Compute a Base64-encoded digest of the given content using Web Crypto.
|
|
187
|
-
*
|
|
188
|
-
* @param content - The binary data to hash.
|
|
189
|
-
* @param digestAlgorithmUri - An XML Digital Signature digest algorithm URI
|
|
190
|
-
* (e.g. `http://www.w3.org/2001/04/xmlenc#sha256`).
|
|
191
|
-
* @returns The Base64-encoded digest, or `undefined` if the algorithm is unsupported
|
|
192
|
-
* or `crypto.subtle` is unavailable.
|
|
193
|
-
*/
|
|
194
|
-
declare function computeDigestBase64(content: Uint8Array, digestAlgorithmUri: string): Promise<string | undefined>;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Pure status-computation logic for digital signature inspection.
|
|
198
|
-
*
|
|
199
|
-
* These functions are platform-agnostic — they accept data and policy
|
|
200
|
-
* as parameters instead of reading from the environment.
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Compute the overall status for an individual signature detail
|
|
205
|
-
* based on its reference checks, trust, revocation, and timestamp statuses.
|
|
206
|
-
*
|
|
207
|
-
* @param detail - A partial `SignatureDetail` with the fields needed for status computation.
|
|
208
|
-
* @param policy - The validation policy controlling revocation/timestamp strictness.
|
|
209
|
-
* @returns The computed status for this signature detail.
|
|
210
|
-
*/
|
|
211
|
-
declare function computeDetailStatus(detail: Pick<SignatureDetail, 'signatureValueStatus' | 'missingPartReferences' | 'referenceChecks' | 'certificateTrustStatus' | 'certificateRevocationStatus' | 'timestampAuthorityStatus'>, policy: SignatureValidationPolicy): SignatureDetailStatus;
|
|
212
|
-
/**
|
|
213
|
-
* Compute the overall verification status from all signature details.
|
|
214
|
-
*
|
|
215
|
-
* @param details - Array of signature details from all signatures in the package.
|
|
216
|
-
* @returns The overall verification status for the report.
|
|
217
|
-
*/
|
|
218
|
-
declare function computeVerificationStatus(details: SignatureDetail[]): DigitalSignatureReport['verificationStatus'];
|
|
219
|
-
|
|
220
|
-
export { extractTagAttribute as A, isValidBase64 as B, type CertificateRevocationStatus as C, DIGEST_ALGORITHM_TO_HASH as D, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV as E, normalizePartPath as F, resolveReferenceUriToPart as G, type LoadedSigningMaterial as L, OPC_RELATIONSHIP_TRANSFORM as O, PPTX_VIEWER_MANIFEST_NS as P, type ReferenceTransformResult as R, SUPPORTED_XML_CANON_TRANSFORMS as S, type TimestampAuthorityStatus as T, XMLDSIG_NS as X, DIGEST_ALGORITHM_TO_WEB_CRYPTO as a, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE as b, DIGITAL_SIGNATURE_REL_TYPE as c, type DigitalSignatureReport as d, type DigitalSignatureVerificationStatus as e, ENTERPRISE_REQUIRE_REVOCATION_ENV as f, ENTERPRISE_REQUIRE_TIMESTAMP_ENV as g, ENTERPRISE_TRUST_ROOTS_FILE_ENV as h, ENTERPRISE_TRUST_ROOTS_PEM_ENV as i, type OfficeSignatureReference as j, type ParsedReferenceTransform as k, type SignOptions as l, type SignResult as m, type SignatureDetail as n, type SignatureDetailStatus as o, type SignatureCertificateInfo as p, type SignatureReferenceCheck as q, type SignatureValidationPolicy as r, XML_TRANSFORM_ENVELOPED_SIGNATURE as s, computeDetailStatus as t, computeDigestBase64 as u, computeVerificationStatus as v, escapeXmlAttr as w, escapeXmlText as x, extractAllTagText as y, extractFirstTagText as z };
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { p as SignatureCertificateInfo, L as LoadedSigningMaterial, C as CertificateRevocationStatus, T as TimestampAuthorityStatus, r as SignatureValidationPolicy, k as ParsedReferenceTransform, R as ReferenceTransformResult, q as SignatureReferenceCheck, l as SignOptions, m as SignResult, d as DigitalSignatureReport } from '../signature-inspection-status-BCUpfCQh.mjs';
|
|
2
|
-
export { D as DIGEST_ALGORITHM_TO_HASH, a as DIGEST_ALGORITHM_TO_WEB_CRYPTO, b as DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, c as DIGITAL_SIGNATURE_REL_TYPE, e as DigitalSignatureVerificationStatus, E as ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, f as ENTERPRISE_REQUIRE_REVOCATION_ENV, g as ENTERPRISE_REQUIRE_TIMESTAMP_ENV, h as ENTERPRISE_TRUST_ROOTS_FILE_ENV, i as ENTERPRISE_TRUST_ROOTS_PEM_ENV, O as OPC_RELATIONSHIP_TRANSFORM, j as OfficeSignatureReference, P as PPTX_VIEWER_MANIFEST_NS, S as SUPPORTED_XML_CANON_TRANSFORMS, n as SignatureDetail, o as SignatureDetailStatus, X as XMLDSIG_NS, s as XML_TRANSFORM_ENVELOPED_SIGNATURE, t as computeDetailStatus, u as computeDigestBase64WebCrypto, v as computeVerificationStatus, w as escapeXmlAttr, x as escapeXmlText, y as extractAllTagText, z as extractFirstTagText, A as extractTagAttribute, B as isValidBase64, F as normalizePartPath, G as resolveReferenceUriToPart } from '../signature-inspection-status-BCUpfCQh.mjs';
|
|
3
|
-
import JSZip from 'jszip';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* XML canonicalization and DOM navigation utilities for digital signatures.
|
|
7
|
-
*
|
|
8
|
-
* Node-only — depends on `@xmldom/xmldom` and `xml-crypto`.
|
|
9
|
-
*/
|
|
10
|
-
/** Get the local name of a DOM node, stripping any namespace prefix. */
|
|
11
|
-
declare function getNodeLocalName(node: Node): string;
|
|
12
|
-
/**
|
|
13
|
-
* Find the first descendant element matching a local name,
|
|
14
|
-
* ignoring namespace prefixes.
|
|
15
|
-
*/
|
|
16
|
-
declare function getFirstDescendantElementByLocalName(parent: Document | Element, localName: string): Element | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Canonicalize a DOM node using the specified canonicalization algorithm.
|
|
19
|
-
* Delegates to xml-crypto's C14N implementation.
|
|
20
|
-
*/
|
|
21
|
-
declare function canonicalizeNode(node: Node, algorithm: string): string;
|
|
22
|
-
/**
|
|
23
|
-
* Canonicalize a `<SignedInfo>` XML fragment for signature verification.
|
|
24
|
-
* Uses Exclusive XML Canonicalization (exc-c14n#).
|
|
25
|
-
*/
|
|
26
|
-
declare function canonicalizeSignedInfoXml(signedInfoXml: string): string;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Certificate handling utilities for digital signature processing.
|
|
30
|
-
*
|
|
31
|
-
* Node-only — depends on `node:crypto`, `node:tls`, `node-forge`, `@xmldom/xmldom`.
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/** Extract certificate metadata from a Base64-encoded DER certificate. */
|
|
35
|
-
declare function certificateInfoFromBase64(certBase64: string): SignatureCertificateInfo | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Validate a certificate chain against system trust roots and optional additional roots.
|
|
38
|
-
*/
|
|
39
|
-
declare function validateCertificateChain(certBase64List: string[], additionalRootsPem: string[]): {
|
|
40
|
-
status: 'trusted' | 'untrusted' | 'not-checked';
|
|
41
|
-
error?: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Cryptographically verify the SignatureValue in an XML signature
|
|
45
|
-
* using the embedded certificate.
|
|
46
|
-
*/
|
|
47
|
-
declare function verifySignatureValue(signatureXml: string, certBase64List: string[]): 'verified' | 'invalid' | 'not-checked';
|
|
48
|
-
/**
|
|
49
|
-
* Load a private key and certificate from a PKCS#12 (.pfx/.p12) or PEM buffer.
|
|
50
|
-
*/
|
|
51
|
-
declare function loadSigningMaterialFromBuffer(certificateBuffer: Uint8Array, certificatePath: string, certificatePassword?: string): LoadedSigningMaterial;
|
|
52
|
-
/** Convert a PEM certificate to Base64-encoded DER (strip armour + whitespace). */
|
|
53
|
-
declare function pemCertificateToBase64(pem: string): string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* PKI validation utilities — certificate revocation (OCSP) and
|
|
57
|
-
* timestamp-authority evaluation for OOXML digital signatures.
|
|
58
|
-
*
|
|
59
|
-
* Node-only — depends on `node:crypto`, `node:http`, `node:https`, and `node-forge`.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
/** Wrap a Base64-encoded DER certificate in PEM armour. */
|
|
63
|
-
declare function certPemFromBase64(certBase64: string): string | undefined;
|
|
64
|
-
/** SHA-256 fingerprint of a PEM certificate (lowercase hex, no colons). */
|
|
65
|
-
declare function certFingerprintSha256(certPem: string): string | undefined;
|
|
66
|
-
declare function extractOcspUrls(certPem: string): string[];
|
|
67
|
-
declare function buildOcspRequestDer(leafPem: string, issuerPem: string): Buffer | undefined;
|
|
68
|
-
declare function parseOcspResponseStatus(data: Buffer): CertificateRevocationStatus;
|
|
69
|
-
declare function evaluateCertificateRevocation(leafCertPem: string, issuerCertPem: string | undefined): Promise<{
|
|
70
|
-
status: CertificateRevocationStatus;
|
|
71
|
-
error?: string;
|
|
72
|
-
checkedOcspUrls: string[];
|
|
73
|
-
checkedCrlUrls: string[];
|
|
74
|
-
}>;
|
|
75
|
-
declare function evaluateTimestampAuthority(signatureXml: string): Promise<{
|
|
76
|
-
status: TimestampAuthorityStatus;
|
|
77
|
-
error?: string;
|
|
78
|
-
}>;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Environment-based configuration for digital signature validation.
|
|
82
|
-
*
|
|
83
|
-
* Node-only — reads trust roots from the file system and validation
|
|
84
|
-
* policy from environment variables.
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
/** Extract individual PEM certificates from a text block. */
|
|
88
|
-
declare function extractPemCertificatesFromText(text: string): string[];
|
|
89
|
-
/**
|
|
90
|
-
* Load enterprise trust root certificates from environment-configured sources.
|
|
91
|
-
*
|
|
92
|
-
* Checks `PPTX_VIEWER_TRUST_ROOTS_PEM` for inline PEM data and
|
|
93
|
-
* `PPTX_VIEWER_TRUST_ROOTS_FILE` for file paths (semicolon/comma-separated).
|
|
94
|
-
*/
|
|
95
|
-
declare function loadEnterpriseTrustRoots(): Promise<string[]>;
|
|
96
|
-
/**
|
|
97
|
-
* Read the signature validation policy from environment variables.
|
|
98
|
-
*/
|
|
99
|
-
declare function getSignatureValidationPolicy(): SignatureValidationPolicy;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* XML reference transform processing for digital signature verification.
|
|
103
|
-
*
|
|
104
|
-
* Node-only — depends on `@xmldom/xmldom` for DOM parsing and
|
|
105
|
-
* `xml-crypto` (via xml-canonicalization) for C14N transforms.
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Parse `<ds:Transform>` elements from a `<ds:Reference>` node.
|
|
110
|
-
*/
|
|
111
|
-
declare function extractReferenceTransforms(referenceNode: Element): ParsedReferenceTransform[];
|
|
112
|
-
/**
|
|
113
|
-
* Apply a chain of transforms to binary part data.
|
|
114
|
-
* Supports OPC Relationship Transform and XML canonicalization algorithms.
|
|
115
|
-
*/
|
|
116
|
-
declare function applyReferenceTransforms(partBytes: Uint8Array, transforms: ParsedReferenceTransform[]): ReferenceTransformResult;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Full reference digest verification for digital signatures.
|
|
120
|
-
*
|
|
121
|
-
* Node-only — uses `node:crypto` for synchronous hashing,
|
|
122
|
-
* `jszip` for ZIP access, and `@xmldom/xmldom` for DOM parsing.
|
|
123
|
-
*/
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Compute a Base64-encoded digest using Node.js `crypto` (synchronous).
|
|
127
|
-
*/
|
|
128
|
-
declare function computeDigestBase64(content: Uint8Array, digestAlgorithmUri: string): string | undefined;
|
|
129
|
-
/**
|
|
130
|
-
* Verify all `<ds:Reference>` digests in an XML signature.
|
|
131
|
-
*/
|
|
132
|
-
declare function buildReferenceChecksFromSignatureXml(zip: JSZip, signatureXml: string): Promise<SignatureReferenceCheck[]>;
|
|
133
|
-
/**
|
|
134
|
-
* Verify references from a PptxViewer manifest extension in the signature XML.
|
|
135
|
-
*/
|
|
136
|
-
declare function buildReferenceChecksFromPptxViewerManifest(zip: JSZip, signatureXml: string): Promise<SignatureReferenceCheck[]>;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* PPTX digital signature creation.
|
|
140
|
-
*
|
|
141
|
-
* Node-only — signs all content in a PPTX package with a certificate
|
|
142
|
-
* and returns the signed data along with a verification report.
|
|
143
|
-
*/
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Sign all content in a PPTX package with a certificate.
|
|
147
|
-
*
|
|
148
|
-
* Removes any existing signatures, creates a new XML-DSig signature
|
|
149
|
-
* covering all non-signature parts, and returns the signed data
|
|
150
|
-
* along with a post-sign verification report.
|
|
151
|
-
*/
|
|
152
|
-
declare function signPptxWithCertificate(data: Uint8Array, certificateBuffer: Uint8Array, options: SignOptions): Promise<SignResult>;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Full PPTX digital signature inspection (Node-only).
|
|
156
|
-
*
|
|
157
|
-
* Orchestrates all sub-modules to analyze every signature in a PPTX package:
|
|
158
|
-
* reference digest checks, certificate chain validation, OCSP revocation,
|
|
159
|
-
* and timestamp authority evaluation.
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Inspect all digital signatures in a PPTX package.
|
|
164
|
-
*
|
|
165
|
-
* Performs full cryptographic verification including:
|
|
166
|
-
* - Reference digest checks (standard XML-DSig + PptxViewer manifest)
|
|
167
|
-
* - Signature value verification (RSA-SHA256/384/512)
|
|
168
|
-
* - Certificate chain validation against system + enterprise trust roots
|
|
169
|
-
* - OCSP revocation checking
|
|
170
|
-
* - Timestamp authority evaluation
|
|
171
|
-
*
|
|
172
|
-
* @param data - The raw PPTX file bytes.
|
|
173
|
-
* @returns A comprehensive digital signature report.
|
|
174
|
-
*/
|
|
175
|
-
declare function inspectPptxDigitalSignatures(data: Uint8Array): Promise<DigitalSignatureReport>;
|
|
176
|
-
|
|
177
|
-
export { CertificateRevocationStatus, DigitalSignatureReport, LoadedSigningMaterial, ParsedReferenceTransform, ReferenceTransformResult, SignOptions, SignResult, SignatureCertificateInfo, SignatureReferenceCheck, SignatureValidationPolicy, TimestampAuthorityStatus, applyReferenceTransforms, buildOcspRequestDer, buildReferenceChecksFromPptxViewerManifest, buildReferenceChecksFromSignatureXml, canonicalizeNode, canonicalizeSignedInfoXml, certFingerprintSha256, certPemFromBase64, certificateInfoFromBase64, computeDigestBase64, evaluateCertificateRevocation, evaluateTimestampAuthority, extractOcspUrls, extractPemCertificatesFromText, extractReferenceTransforms, getFirstDescendantElementByLocalName, getNodeLocalName, getSignatureValidationPolicy, inspectPptxDigitalSignatures, loadEnterpriseTrustRoots, loadSigningMaterialFromBuffer, parseOcspResponseStatus, pemCertificateToBase64, signPptxWithCertificate, validateCertificateChain, verifySignatureValue };
|