Skip to content

Commit ccd04cb

Browse files
committed
Remove an unneeded BouncyCastle use
1 parent 97c17bb commit ccd04cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

NDecrypt.Core/PartitionKeys.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using Org.BouncyCastle.Crypto;
32
using SabreTools.Data.Models.N3DS;
43
using static NDecrypt.Core.CommonOperations;
54

@@ -44,7 +43,7 @@ public PartitionKeys(DecryptArgs args, byte[]? signature, BitMasks masks, Crypto
4443
if (args.IsReady != true)
4544
throw new InvalidOperationException($"{nameof(args)} must be initialized before use");
4645
if (signature != null && signature.Length < 16)
47-
throw new DataLengthException($"{nameof(signature)} must be at least 16 bytes");
46+
throw new ArgumentOutOfRangeException($"{nameof(signature)} must be at least 16 bytes");
4847

4948
// Set fields for future use
5049
_decryptArgs = args;

0 commit comments

Comments
 (0)