From a5bb95e7c1a0e7a8ab4aea3272665cd3c572776d Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 12 Jan 2023 13:29:02 -0800 Subject: [PATCH] Hook up AACS media block printing --- Test/Printer.cs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Test/Printer.cs b/Test/Printer.cs index c33e92a4..ace3f0a5 100644 --- a/Test/Printer.cs +++ b/Test/Printer.cs @@ -145,6 +145,25 @@ namespace Test } } + // AACS Media Key Block + else if (ft == SupportedFileType.AACSMediaKeyBlock) + { + // Build the AACS MKB information + Console.WriteLine("Creating AACS media key block deserializer"); + Console.WriteLine(); + + var mkb = AACSMediaKeyBlock.Create(stream); + if (mkb == null) + { + Console.WriteLine("Something went wrong parsing AACS media key block"); + Console.WriteLine(); + return; + } + + // Print the AACS MKB info to screen + mkb.Print(); + } + // BFPK archive else if (ft == SupportedFileType.BFPK) { @@ -479,7 +498,7 @@ namespace Test else { if (debug) Console.WriteLine($"File format found: {ft}"); - Console.WriteLine("Not a recognized file format, skipping..."); + Console.WriteLine("Not a printable file format, skipping..."); Console.WriteLine(); return; }