From 783f5eee6124658da751d5ad35663f11d9f6236b Mon Sep 17 00:00:00 2001 From: Rebecca Wallander Date: Sat, 28 Oct 2023 22:26:11 +0200 Subject: [PATCH] [Dump] Fix wrongly removed title keys --- Aaru.Core/Devices/Dumping/Sbc/Data.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Aaru.Core/Devices/Dumping/Sbc/Data.cs b/Aaru.Core/Devices/Dumping/Sbc/Data.cs index 67f94ec0c..46a7e79d4 100644 --- a/Aaru.Core/Devices/Dumping/Sbc/Data.cs +++ b/Aaru.Core/Devices/Dumping/Sbc/Data.cs @@ -138,25 +138,6 @@ void ReadSbcData(in ulong blocks, in uint maxBlocksToRead, in uint blockSize else continue; - // If the CMI bit is 1, the sector is using copy protection, else it is not - if((titleKey.Value.CMI & 0x80) >> 7 == 0) - { - // The CMI indicates this sector is not encrypted. - outputFormat.WriteSectorTag(new byte[] - { - 0, 0, 0, 0, 0 - }, i + j, SectorTagType.DvdSectorTitleKey); - - outputFormat.WriteSectorTag(new byte[] - { - 0, 0, 0, 0, 0 - }, i + j, SectorTagType.DvdTitleKeyDecrypted); - - _resume.MissingTitleKeys.Remove(i + j); - - continue; - } - // According to libdvdcss, if the key is all zeroes, the sector is actually // not encrypted even if the CMI says it is. if(titleKey.Value.Key.All(static k => k == 0))