Skip to content

Commit

Permalink
sync to last commit-12
Browse files Browse the repository at this point in the history
Signed-off-by: Simo <[email protected]>
  • Loading branch information
Simo3ds authored May 4, 2024
1 parent f2d9e9f commit f2dd9e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arm9/source/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ int ctrNandInit(void)
__attribute__((aligned(4))) u8 cid[AES_BLOCK_SIZE],
shaSum[SHA_256_HASH_SIZE];

if ((getFileSize(CID_PATH) > 0) && (CONFIG(HARDWAREPATCHING)))
if ((nandcid) && (CONFIG(HARDWAREPATCHING)))

{
memcpy(cid, (u32*)__NANDCID_ADDR, sizeof(cid));
Expand Down
1 change: 1 addition & 0 deletions arm9/source/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
#define SHA_1_HASH_SIZE (160 / 8)

extern FirmwareSource ctrNandLocation;
extern bool nandcid;

void sha(void *res, const void *src, u32 size, u32 mode);

Expand Down

0 comments on commit f2dd9e6

Please sign in to comment.