Fixed CMAC fixing

This commit is contained in:
saibotu 2017-03-31 18:01:30 +02:00
parent 0956e62b9b
commit a4e061aea6
No known key found for this signature in database
GPG Key ID: D1E8E4AF5F8FFDBA

View File

@ -587,7 +587,7 @@ u32 CmacCalculator(const char* path) {
pathstr, getbe64(cmac + 0), getbe64(cmac + 8),
"CMAC verification: ", (identical) ? "passed!" : "failed!",
(!identical) ? "\n \nFix CMAC in file?" : "") &&
!identical && (WriteFileCmac(path, cmac_file) != 0)) {
!identical && (WriteFileCmac(path, cmac) != 0)) {
ShowPrompt(false, "Fixing CMAC: failed!");
}
}