installed-update-signature.d.mts 642 B

12345678910
  1. /** Hash a local file without executing it. @param path File path. @returns Base64 SHA-512. */
  2. export function installedUpdateFileHash(path: string): Promise<string>
  3. /**
  4. * Verify with the updater and Authenticode, including timestamp presence, without private-key access.
  5. * @param file Executable inspected as data.
  6. * @param publisher Trusted public certificate DN.
  7. * @param directory New private evidence directory.
  8. * @returns Public signature attributes; rejects skipped, invalid, untimestamped, or changed inputs.
  9. */
  10. export function verifyInstalledUpdateSignature(file: string, publisher: string, directory: string): Promise<object>