public class MpqCrypto
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MPQ_HASH_FILE_KEY |
static int |
MPQ_HASH_KEY2_MIX |
static int |
MPQ_HASH_NAME_A |
static int |
MPQ_HASH_NAME_B |
static int |
MPQ_HASH_TABLE_INDEX |
static int |
MPQ_KEY_BLOCK_TABLE |
static int |
MPQ_KEY_HASH_TABLE |
| Constructor and Description |
|---|
MpqCrypto() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decryptBlock(byte[] block,
int key) |
byte[] |
decryptBlock(java.nio.ByteBuffer buf,
int length,
int key) |
byte[] |
encryptMpqBlock(byte[] bytes,
int length,
int key) |
byte[] |
encryptMpqBlock(java.nio.ByteBuffer buf,
int length,
int dwKey1) |
int |
hash(java.lang.String fileName,
int hashType) |
static void |
main(java.lang.String[] args) |
public static final int MPQ_HASH_TABLE_INDEX
public static final int MPQ_HASH_NAME_A
public static final int MPQ_HASH_NAME_B
public static final int MPQ_HASH_FILE_KEY
public static final int MPQ_HASH_KEY2_MIX
public static final int MPQ_KEY_HASH_TABLE
public static final int MPQ_KEY_BLOCK_TABLE
public int hash(java.lang.String fileName,
int hashType)
public byte[] decryptBlock(byte[] block,
int key)
public byte[] decryptBlock(java.nio.ByteBuffer buf,
int length,
int key)
public byte[] encryptMpqBlock(java.nio.ByteBuffer buf,
int length,
int dwKey1)
public static void main(java.lang.String[] args)
public byte[] encryptMpqBlock(byte[] bytes,
int length,
int key)