Enable storing CSS sectors decrypted

This commit is contained in:
Rebecca Wallander
2021-01-14 12:46:08 +01:00
parent f0b497cf78
commit 9390e1761b

View File

@@ -186,6 +186,16 @@ namespace Aaru.Core.Devices.Dumping
}
}
}
if(!_storeEncrypted && _titleKeys)
{
// Todo: Flag in the _outputPlugin that a sector has been decrypted
buffer = CSS.DecryptSector(buffer,
_outputPlugin.ReadSectorsTag(i, blocksToRead, SectorTagType.DvdCmi),
_outputPlugin.ReadSectorsTag(i, blocksToRead,
SectorTagType.DvdTitleKeyDecrypted),
blocksToRead, blockSize);
}
}
mhddLog.Write(i, cmdDuration);