UNPKG

unpak.js

Version:

Modern TypeScript library for reading Unreal Engine pak files and assets, inspired by CUE4Parse

30 lines 893 B
import { ICryptoProvider, AESMode } from './ICrypto'; /** * Node.js crypto implementation of ICryptoProvider */ export declare class NodeCryptoProvider implements ICryptoProvider { decryptAES(data: Buffer, key: Buffer, mode: AESMode, iv?: Buffer): Promise<Buffer>; testKey(data: Buffer, key: Buffer, mode: AESMode, iv?: Buffer): Promise<boolean>; } /** * Utility functions for key conversion */ export declare class KeyUtils { /** * Convert hex string to Buffer */ static hexToBuffer(hex: string): Buffer; /** * Convert Buffer to hex string */ static bufferToHex(buffer: Buffer): string; /** * Validate key length for AES */ static validateKeyLength(key: Buffer): boolean; /** * Normalize key input to Buffer */ static normalizeKey(key: string | Buffer): Buffer; } //# sourceMappingURL=CryptoProvider.d.ts.map