Skip to content

Commit fde0571

Browse files
committed
Fix for session index in hmac -aes test.
1 parent 92b9127 commit fde0571

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/wrap/hmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ int TPM2_Wrapper_HmacArgs(void* userCtx, int argc, char *argv[])
141141
(word32)tpmSession.handle.hndl);
142142

143143
/* set session for authorization of the storage key */
144-
rc = wolfTPM2_SetAuthSession(&dev, 1, &tpmSession,
144+
rc = wolfTPM2_SetAuthSession(&dev, 0, &tpmSession,
145145
(TPMA_SESSION_decrypt | TPMA_SESSION_encrypt | TPMA_SESSION_continueSession));
146146
if (rc != 0) goto exit;
147147
}

0 commit comments

Comments
 (0)