mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-25 09:26:55 +01:00
Minor formatting
This commit is contained in:
parent
0d39c037ad
commit
c1a1961e03
@ -201,12 +201,16 @@ public class NUSDecryption extends AESDecryption {
|
|||||||
long block = (fileoffset / HASHBLOCKSIZE);
|
long block = (fileoffset / HASHBLOCKSIZE);
|
||||||
long soffset = fileoffset - (fileoffset / HASHBLOCKSIZE * HASHBLOCKSIZE);
|
long soffset = fileoffset - (fileoffset / HASHBLOCKSIZE * HASHBLOCKSIZE);
|
||||||
|
|
||||||
if (soffset + filesize > writeSize) writeSize = writeSize - soffset;
|
if (soffset + filesize > writeSize) {
|
||||||
|
writeSize = writeSize - soffset;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
byte[] encryptedBlockBuffer = new byte[BLOCKSIZE];
|
byte[] encryptedBlockBuffer = new byte[BLOCKSIZE];
|
||||||
ByteArrayBuffer overflow = new ByteArrayBuffer(BLOCKSIZE);
|
ByteArrayBuffer overflow = new ByteArrayBuffer(BLOCKSIZE);
|
||||||
long wrote = 0;
|
long wrote = 0;
|
||||||
int inBlockBuffer = 0;
|
int inBlockBuffer = 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
do {
|
do {
|
||||||
inBlockBuffer = StreamUtils.getChunkFromStream(inputStream, encryptedBlockBuffer, overflow, BLOCKSIZE);
|
inBlockBuffer = StreamUtils.getChunkFromStream(inputStream, encryptedBlockBuffer, overflow, BLOCKSIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user