mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #7575 from josepho0918/cmac
Simplify CMAC verification logic
This commit is contained in:
@ -449,10 +449,8 @@ int wc_AesCmacVerify_ex(Cmac* cmac,
|
|||||||
devId);
|
devId);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
compareRet = ConstantCompare(check, a, (int)min(checkSz, aSz));
|
compareRet = ConstantCompare(check, a, (int)min(checkSz, aSz));
|
||||||
}
|
|
||||||
|
|
||||||
if (ret == 0)
|
|
||||||
ret = compareRet ? 1 : 0;
|
ret = compareRet ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user