From f051f707ed99b6fd4a4249309d92064801b1e468 Mon Sep 17 00:00:00 2001 From: CaramelDunes Date: Thu, 7 Jan 2021 12:11:53 -0500 Subject: [PATCH] Do not blank Rsa2048DeviceCertificate or Rsa2048Device as it prevents HOS from booting on newer PRODINFO versions. --- stratosphere/ams_mitm/source/amsmitm_prodinfo_utils.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/stratosphere/ams_mitm/source/amsmitm_prodinfo_utils.cpp b/stratosphere/ams_mitm/source/amsmitm_prodinfo_utils.cpp index 0931110b9..a624b0da5 100644 --- a/stratosphere/ams_mitm/source/amsmitm_prodinfo_utils.cpp +++ b/stratosphere/ams_mitm/source/amsmitm_prodinfo_utils.cpp @@ -222,8 +222,6 @@ namespace ams::mitm { Blank(info.GetBlock()); Blank(info.GetBlock()); Blank(info.GetBlock()); - if (IsValid(info.GetBlock()) && !IsBlank(info.GetBlock())) Blank(info.GetBlock()); - if (IsValid(info.GetBlock()) && !IsBlank(info.GetBlock())) Blank(info.GetBlock()); /* Set header hash. */ crypto::GenerateSha256Hash(std::addressof(info.header.body_hash), sizeof(info.header.body_hash), std::addressof(info.body), sizeof(info.body));