mirror of
https://github.com/codestation/mhtools
synced 2024-12-12 12:52:30 +00:00
Updated CryptoEngine with cbc upstream fix.
This commit is contained in:
parent
de17430656
commit
966c01a9c8
1 changed files with 8 additions and 8 deletions
|
@ -1869,9 +1869,9 @@ public class CryptoEngine {
|
|||
buf[15] = code;
|
||||
|
||||
// Set the the data size to size.
|
||||
buf[16] = 0;
|
||||
buf[17] = 0;
|
||||
buf[18] = 0;
|
||||
buf[16] = (byte) ((size >> 24) & 0xFF);
|
||||
buf[17] = (byte) ((size >> 16) & 0xFF);
|
||||
buf[18] = (byte) ((size >> 8) & 0xFF);
|
||||
buf[19] = (byte) (size & 0xFF);
|
||||
|
||||
ByteBuffer bBuf = ByteBuffer.wrap(buf);
|
||||
|
@ -1906,7 +1906,7 @@ public class CryptoEngine {
|
|||
tmp[14] = 0;
|
||||
tmp[15] = code;
|
||||
|
||||
// Set the the data size to size.
|
||||
// Set the the data size to 0xA0.
|
||||
tmp[16] = 0;
|
||||
tmp[17] = 0;
|
||||
tmp[18] = 0;
|
||||
|
@ -1943,10 +1943,10 @@ public class CryptoEngine {
|
|||
buf[15] = (byte) seed;
|
||||
|
||||
// Set the the data size to size.
|
||||
buf[16] = (byte) (size >> 24);
|
||||
buf[17] = (byte) (size >> 16);
|
||||
buf[18] = (byte) (size >> 8);
|
||||
buf[19] = (byte) (size);
|
||||
buf[16] = (byte) ((size >> 24) & 0xFF);
|
||||
buf[17] = (byte) ((size >> 16) & 0xFF);
|
||||
buf[18] = (byte) ((size >> 8) & 0xFF);
|
||||
buf[19] = (byte) (size & 0xFF);
|
||||
|
||||
ByteBuffer bBuf = ByteBuffer.wrap(buf);
|
||||
hleUtilsBufferCopyWithRange(bBuf, size, bBuf, size, kirk);
|
||||
|
|
Loading…
Reference in a new issue