Fix build

This commit is contained in:
Matt Nadareski
2021-09-28 21:37:12 -07:00
parent 2fb05b577e
commit 20987573f4
2 changed files with 3 additions and 5 deletions

View File

@@ -191,9 +191,9 @@ More than one path can be specified at a time.");
case FileType.N3DS:
Console.WriteLine("File recognized as Nintendo 3DS");
return new ThreeDSTool(filename, decryptArgs);
// case FileType.N3DSCIA:
// Console.WriteLine("File recognized as Nintendo 3DS CIA");
// return new CIATool(filename, decryptArgs);
case FileType.N3DSCIA:
Console.WriteLine("File recognized as Nintendo 3DS CIA");
return new CIATool(filename, decryptArgs);
case FileType.NULL:
default:
Console.WriteLine($"Unrecognized file format for {filename}. Expected *.nds, *.srl, *.dsi, *.3ds");

View File

@@ -133,13 +133,11 @@ namespace NDecrypt.N3DS.Headers
reader.ReadBytes(0x34); // Padding
break;
case PublicKeyType.RSA_2048:
case PublicKeyType.RSA_2048_REV:
ct.Modulus = reader.ReadBytes(0x100);
ct.PublicExponent = reader.ReadUInt32();
reader.ReadBytes(0x34); // Padding
break;
case PublicKeyType.ECDSA:
case PublicKeyType.ECDSA_REV:
ct.PublicKey = reader.ReadBytes(0x3C);
reader.ReadBytes(0x3C); // Padding
break;