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; }