From 23a1abf52d6492447e655216d1d92d0c925732b8 Mon Sep 17 00:00:00 2001 From: N2614 Date: Thu, 25 Aug 2011 06:54:46 +0000 Subject: [PATCH] =?UTF-8?q?[Verifier]=E6=A4=9C=E8=A8=BC=E5=A4=B1=E6=95=97?= =?UTF-8?q?=E6=99=82=E3=81=AB=E6=9C=9F=E5=BE=85=E5=80=A4=E3=82=92=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../sources/tools/ExportedDataVerifier/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/trunk/ConsoleDataMigration/sources/tools/ExportedDataVerifier/main.cpp b/trunk/ConsoleDataMigration/sources/tools/ExportedDataVerifier/main.cpp index 8277387..322b839 100644 --- a/trunk/ConsoleDataMigration/sources/tools/ExportedDataVerifier/main.cpp +++ b/trunk/ConsoleDataMigration/sources/tools/ExportedDataVerifier/main.cpp @@ -153,6 +153,16 @@ bool CalculateAndCompareCmac(nn::crypto::Sha256Context* context, bit8* sdCmac) 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; }