From ccd04cb15edc07c3229256baca1e3c7199dc77cd Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 30 Sep 2025 17:05:50 -0400 Subject: [PATCH] Remove an unneeded BouncyCastle use --- NDecrypt.Core/PartitionKeys.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NDecrypt.Core/PartitionKeys.cs b/NDecrypt.Core/PartitionKeys.cs index 652a79b..f60628c 100644 --- a/NDecrypt.Core/PartitionKeys.cs +++ b/NDecrypt.Core/PartitionKeys.cs @@ -1,5 +1,4 @@ using System; -using Org.BouncyCastle.Crypto; using SabreTools.Data.Models.N3DS; using static NDecrypt.Core.CommonOperations; @@ -44,7 +43,7 @@ namespace NDecrypt.Core if (args.IsReady != true) throw new InvalidOperationException($"{nameof(args)} must be initialized before use"); if (signature != null && signature.Length < 16) - throw new DataLengthException($"{nameof(signature)} must be at least 16 bytes"); + throw new ArgumentOutOfRangeException($"{nameof(signature)} must be at least 16 bytes"); // Set fields for future use _decryptArgs = args;