mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
[Verifier]検証失敗時に期待値を表示
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@418 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
53f63383f1
commit
23a1abf52d
@ -153,6 +153,16 @@ bool CalculateAndCompareCmac(nn::crypto::Sha256Context* context, bit8* sdCmac)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(std::memcmp(cmac, sdCmac, sizeof(cmac)) != 0)
|
||||||
|
{
|
||||||
|
NN_LOG("Faild. Expected CMAC:\n");
|
||||||
|
for (u32 i = 0; i < sizeof(cmac); i++)
|
||||||
|
{
|
||||||
|
NN_LOG("%02X ", cmac[i]);
|
||||||
|
}
|
||||||
|
NN_LOG("\n");
|
||||||
|
}
|
||||||
|
|
||||||
return std::memcmp(cmac, sdCmac, sizeof(cmac)) == 0;
|
return std::memcmp(cmac, sdCmac, sizeof(cmac)) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user