From cdf95bc776a23139b2d83100b6b3099788ae5e38 Mon Sep 17 00:00:00 2001 From: Rebecca Wallander Date: Sat, 11 Nov 2023 23:27:31 +0100 Subject: [PATCH] [Dump] Fix wrongly removed title keys (#825) --- 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 @@ partial class Dump 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))