securityos/node_modules/resedit/dist/sign/index.d.ts

15 lines
910 B
TypeScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import { type NtExecutable } from 'pe-library';
import { type DigestAlgorithmType, type EncryptionAlgorithmType } from './SignerObject.js';
import type SignerObject from './SignerObject.js';
/**
* Generates the executable binary data with signed info.
* This function is like an extension of `generate` method of `NtExecutable`.
* @param executable a valid instance of `NtExecutable`
* @param signer user-defined `SignerObject` instance for signing
* @param alignment alignment value for placing certificate data
* (using `executable.getFileAlignment()` if omitted)
* @return Promise-like (Thenable) object which will resolve with generated executable binary
*/
export declare function generateExecutableWithSign(executable: NtExecutable, signer: SignerObject, alignment?: number): PromiseLike<ArrayBuffer>;
export type { SignerObject, DigestAlgorithmType, EncryptionAlgorithmType };