Merge pull request #7575 from josepho0918/cmac

Simplify CMAC verification logic
This commit is contained in:
David Garske
2024-05-23 10:37:57 -07:00
committed by GitHub

View File

@ -449,10 +449,8 @@ int wc_AesCmacVerify_ex(Cmac* cmac,
devId);
if (ret == 0) {
compareRet = ConstantCompare(check, a, (int)min(checkSz, aSz));
}
if (ret == 0)
ret = compareRet ? 1 : 0;
}
return ret;
}