mdx-m3-viewer
Version:
A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.
13 lines (12 loc) • 412 B
TypeScript
import MpqBlock from './block';
/**
* MPQ crypto.
*/
export default class MpqCrypto {
cryptTable: Uint32Array;
constructor();
hash(name: string, key: number): number;
decryptBlock<T extends Uint8Array | Uint32Array>(data: T, key: number): T;
encryptBlock<T extends Uint8Array | Uint32Array>(data: T, key: number): T;
computeFileKey(name: string, block: MpqBlock): number;
}