mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +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);
|
||||
if (ret == 0) {
|
||||
compareRet = ConstantCompare(check, a, (int)min(checkSz, aSz));
|
||||
}
|
||||
|
||||
if (ret == 0)
|
||||
ret = compareRet ? 1 : 0;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user