mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Fix typo with HMAC determination of update/final.
This commit is contained in:
@ -49461,13 +49461,13 @@ static int myCryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
|
|||||||
/* set devId to invalid, so software is used */
|
/* set devId to invalid, so software is used */
|
||||||
info->hmac.hmac->devId = INVALID_DEVID;
|
info->hmac.hmac->devId = INVALID_DEVID;
|
||||||
|
|
||||||
if (info->hash.in != NULL) {
|
if (info->hmac.in != NULL) {
|
||||||
ret = wc_HmacUpdate(
|
ret = wc_HmacUpdate(
|
||||||
info->hmac.hmac,
|
info->hmac.hmac,
|
||||||
info->hmac.in,
|
info->hmac.in,
|
||||||
info->hmac.inSz);
|
info->hmac.inSz);
|
||||||
}
|
}
|
||||||
else if (info->hash.digest != NULL) {
|
else if (info->hmac.digest != NULL) {
|
||||||
ret = wc_HmacFinal(
|
ret = wc_HmacFinal(
|
||||||
info->hmac.hmac,
|
info->hmac.hmac,
|
||||||
info->hmac.digest);
|
info->hmac.digest);
|
||||||
|
Reference in New Issue
Block a user