Commit Graph

31 Commits

Author SHA1 Message Date
Maschell
1ebe37b77e Adjust log levels 2019-04-19 10:56:59 +02:00
Maschell
1698acb3f6 Don't swallow the exception on checksum errors. 2019-04-14 14:49:47 +02:00
Maschell
8c75a1a43e Move the decryption of a inputstream into a output stream in the NUSDecryption class. 2019-04-11 13:28:12 +02:00
Maschell
88c0bb8a9e Add/Update copyright information. Minor cleanup, moved some interfaces 2019-04-10 20:13:38 +02:00
Maschell
44b04ea637 Formatting and organizing imports 2019-04-10 18:57:55 +02:00
Maschell
b6a5946f9e Move some classes and interfaces 2019-04-10 18:55:40 +02:00
Maschell
d08a42719a Convert the NUSDataProvider class into an interfacer. All Utility functions are moved to a new DataProviderUtils class.
Changes the return values of the raw TMD/TICKET/CERT to Optionals.
Replacing some more null values with Optionals
2019-04-10 18:43:44 +02:00
Maschell
95c6c085f6 Optimize the getBytesFromStream function StreamUtils 2019-04-10 18:11:54 +02:00
Maschell
9cc1a8c948 Update the XMLParser to return Optionals instead of null values. 2019-04-10 17:56:36 +02:00
Maschell
e3dbf81a8e Add try catch arround the output write in decryptFileStreamHashed to check if the output stream was already closed. 2019-04-10 17:54:20 +02:00
Maschell
dd8f7bcb5f Added optional parameter to limit the size of a input stream for content 2019-04-07 14:57:41 +02:00
Maschell
7bd424ec42 Fix a bug in the "getChunkOfStream" function 2019-04-07 14:53:35 +02:00
Maschell
31fcc4fc6d Fix the buffer size in the getBytesFromStream function 2019-04-07 00:38:51 +02:00
Maschell
a5bc706cb9 Fixing the IV for certain reads 2019-04-07 00:12:20 +02:00
Maschell
48f8629744 Implement random access for non-hashed files 2019-04-07 00:10:36 +02:00
Maschell
6d98a8b92c File::listFiles may return null, let's catch that potentional null pointer. 2019-02-28 10:03:11 +01:00
Maschell
654e2f38f7 Ignore cases in filenames, EXT4 is case sensitive... 2018-12-16 15:21:16 +01:00
Maschell
fa3b0df7d2 Fix some paths for *nix users. 2018-12-16 13:19:26 +01:00
Maschell
b6c6ae7320 Improved logging 2018-12-06 17:40:11 +01:00
Maschell
ed488d3904 Organize import, formatting. 2018-12-06 17:37:32 +01:00
Maschell
8ef84f48dd Extract contents in parallel if supported. 2018-12-06 16:48:36 +01:00
Maschell
31becf6c8b Synchronize access to streams. 2018-12-06 16:45:01 +01:00
Maschell
b0b678c851 Remove speical case from HashUtil 2018-12-06 16:41:02 +01:00
Maschell
bb1c6b30d4 Add serveral functions to the Utils class 2018-12-06 15:44:10 +01:00
Maschell
51140fb7c7 Write new files from a Stream at first to a .tmp file. This avoids fragmentation. 2018-12-06 15:40:05 +01:00
Maschell
659b408a59 Fix the hash calculation for some files in "non hashed" .app files 2018-12-06 15:29:57 +01:00
Maschell
e046031dd2 Fix downloading certain files to a byte array. 2018-12-06 15:29:13 +01:00
Maschell
5603bfb94e Use a proper user agent for downloading 2018-12-06 15:28:25 +01:00
Maschell
eaef0fefd1 Added license information, some code formatting 2018-03-10 12:22:10 +01:00
Maschell
0dc62ef4c0 Added cert downloading for remote titles 2017-07-28 16:53:52 +02:00
Maschell
14c987456d Code clean up, changed to a maven project 2017-05-17 19:20:42 +02:00