Skip to content

Commit 5937bd0

Browse files
authored
Update BLTE IVSize assert to allow 8 for bytes
1 parent 6e42e52 commit 5937bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TACTSharp/BLTE.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ private static bool TryDecrypt(ReadOnlySpan<byte> data, int chunkIndex, out Span
121121

122122
byte IVSize = data[keyNameSize + 1];
123123

124-
if (IVSize != 4 || IVSize > 0x10)
125-
throw new Exception("IVSize != 4 || IVSize > 0x10");
124+
if ((IVSize != 4 && IVSize != 8) || IVSize > 0x10)
125+
throw new Exception("(IVSize != 4 && IVSize != 8) || IVSize > 0x10");
126126

127127
byte[] IV = data.Slice(keyNameSize + 2, IVSize).ToArray();
128128
// expand to 8 bytes

0 commit comments

Comments
 (0)