UNPKG

@syncfusion/ej2-pdf

Version:

Feature-rich JavaScript PDF library with built-in support for loading and manipulating PDF document.

27 lines (26 loc) 863 B
import { _PdfNativeAlgorithmIdentifier } from './pdf-accumulator'; /** * Builds the internal DER-encoded DigestInfo structure for a given AlgorithmIdentifier and digest. * * @private */ export declare class _PdfDigestInformation { private _algorithm; private _digest; constructor(algorithm: _PdfNativeAlgorithmIdentifier, digest: Uint8Array); /** * Encodes the DigestInfo structure as DER: SEQUENCE { AlgorithmIdentifier, OCTET STRING digest }. * * @private * @returns {Uint8Array} The DER-encoded DigestInfo bytes. */ _getUniqueEncoded(): Uint8Array; /** * Encodes a length using DER definite-length rules. * * @private * @param {number} length The content length to encode. * @returns {number[]} The DER-encoded length bytes. */ _getLengthBytes(length: number): number[]; }