Return a IOException when parsing a WUD fails

This commit is contained in:
Maschell 2019-04-07 14:54:02 +02:00
parent 7bd424ec42
commit 1f1cd3e64a

View File

@ -66,7 +66,7 @@ public final class WUDInfoParser {
// verify DiscKey before proceeding // verify DiscKey before proceeding
if (!Arrays.equals(Arrays.copyOfRange(PartitionTocBlock, 0, 4), DECRYPTED_AREA_SIGNATURE)) { if (!Arrays.equals(Arrays.copyOfRange(PartitionTocBlock, 0, 4), DECRYPTED_AREA_SIGNATURE)) {
// log.info("Decryption of PartitionTocBlock failed"); // log.info("Decryption of PartitionTocBlock failed");
throw new RuntimeException("Decryption of PartitionTocBlock failed"); throw new IOException("Decryption of PartitionTocBlock failed");
} }
result.getPartitions().clear(); result.getPartitions().clear();