Skip to content

Commit 92b9127

Browse files
committed
Fix wrap_test and provide backwards compatibility for wolfTPM2_HmacStart -> wolfTPM2_LoadKeyedHashKey.
1 parent 2d5a27d commit 92b9127

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tpm2_wrap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5639,7 +5639,7 @@ int wolfTPM2_HmacStart(WOLFTPM2_DEV* dev, WOLFTPM2_HMAC* hmac,
56395639
}
56405640

56415641
if (!hmac->hmacKeyLoaded) {
5642-
if (hmac->key.handle.hndl == TPM_RH_NULL) {
5642+
if (hmac->key.handle.hndl == 0 || hmac->key.handle.hndl == TPM_RH_NULL){
56435643
/* Load Keyed Hash Key */
56445644
rc = wolfTPM2_LoadKeyedHashKey(dev, &hmac->key, parent, hashAlg,
56455645
keyBuf, keySz, usageAuth, usageAuthSz);

0 commit comments

Comments
 (0)