From 73b212d3bb730fc67876e3f42bd22d1426289c1c Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 17 Aug 2021 17:35:43 +0100 Subject: [PATCH] Conditional access is known to be not null. --- DVD/CSS.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DVD/CSS.cs b/DVD/CSS.cs index ce9cade5c..cc6ff6a46 100644 --- a/DVD/CSS.cs +++ b/DVD/CSS.cs @@ -379,8 +379,8 @@ namespace Aaru.Decryption.DVD /// A DiscKey struct with the decoded key. public static CSS_CPRM.DiscKey? DecodeDiscKey(byte[] response, byte[] busKey) { - if(response?.Length != 2052 || - busKey?.Length != 5) + if(response.Length != 2052 || + busKey.Length != 5) return null; byte[] key = response.Skip(4).Take(2048).ToArray(); @@ -406,8 +406,8 @@ namespace Aaru.Decryption.DVD /// A TitleKey struct with the decoded key. public static CSS_CPRM.TitleKey? DecodeTitleKey(byte[] response, byte[] busKey) { - if(response?.Length != 12 || - busKey?.Length != 5) + if(response.Length != 12 || + busKey.Length != 5) return null; byte[] key = response.Skip(5).Take(5).ToArray();