mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27: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 */
|
||||
info->hmac.hmac->devId = INVALID_DEVID;
|
||||
|
||||
if (info->hash.in != NULL) {
|
||||
if (info->hmac.in != NULL) {
|
||||
ret = wc_HmacUpdate(
|
||||
info->hmac.hmac,
|
||||
info->hmac.in,
|
||||
info->hmac.inSz);
|
||||
}
|
||||
else if (info->hash.digest != NULL) {
|
||||
else if (info->hmac.digest != NULL) {
|
||||
ret = wc_HmacFinal(
|
||||
info->hmac.hmac,
|
||||
info->hmac.digest);
|
||||
|
Reference in New Issue
Block a user