Updated CryptoEngine with cbc upstream fix.

This commit is contained in:
codestation 2011-07-24 13:24:35 -04:30
parent de17430656
commit 966c01a9c8

View file

@ -1869,9 +1869,9 @@ public class CryptoEngine {
buf[15] = code; buf[15] = code;
// Set the the data size to size. // Set the the data size to size.
buf[16] = 0; buf[16] = (byte) ((size >> 24) & 0xFF);
buf[17] = 0; buf[17] = (byte) ((size >> 16) & 0xFF);
buf[18] = 0; buf[18] = (byte) ((size >> 8) & 0xFF);
buf[19] = (byte) (size & 0xFF); buf[19] = (byte) (size & 0xFF);
ByteBuffer bBuf = ByteBuffer.wrap(buf); ByteBuffer bBuf = ByteBuffer.wrap(buf);
@ -1906,7 +1906,7 @@ public class CryptoEngine {
tmp[14] = 0; tmp[14] = 0;
tmp[15] = code; tmp[15] = code;
// Set the the data size to size. // Set the the data size to 0xA0.
tmp[16] = 0; tmp[16] = 0;
tmp[17] = 0; tmp[17] = 0;
tmp[18] = 0; tmp[18] = 0;
@ -1943,10 +1943,10 @@ public class CryptoEngine {
buf[15] = (byte) seed; buf[15] = (byte) seed;
// Set the the data size to size. // Set the the data size to size.
buf[16] = (byte) (size >> 24); buf[16] = (byte) ((size >> 24) & 0xFF);
buf[17] = (byte) (size >> 16); buf[17] = (byte) ((size >> 16) & 0xFF);
buf[18] = (byte) (size >> 8); buf[18] = (byte) ((size >> 8) & 0xFF);
buf[19] = (byte) (size); buf[19] = (byte) (size & 0xFF);
ByteBuffer bBuf = ByteBuffer.wrap(buf); ByteBuffer bBuf = ByteBuffer.wrap(buf);
hleUtilsBufferCopyWithRange(bBuf, size, bBuf, size, kirk); hleUtilsBufferCopyWithRange(bBuf, size, bBuf, size, kirk);