From abad1ee666669838bc40b4303e7d97c846756683 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Fri, 21 Jun 2019 15:41:38 -0500 Subject: [PATCH] Fix NCA2 decryption bug --- src/LibHac/Fs/NcaUtils/NcaHeader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LibHac/Fs/NcaUtils/NcaHeader.cs b/src/LibHac/Fs/NcaUtils/NcaHeader.cs index 0466c328..03a32ca3 100644 --- a/src/LibHac/Fs/NcaUtils/NcaHeader.cs +++ b/src/LibHac/Fs/NcaUtils/NcaHeader.cs @@ -217,7 +217,7 @@ namespace LibHac.Fs.NcaUtils { for (int i = 0x400; i < HeaderSize; i += HeaderSectorSize) { - transform.TransformBlock(buf, i, HeaderSectorSize, 1); + transform.TransformBlock(buf, i, HeaderSectorSize, 0); } } else