mirror of https://github.com/wolfSSL/wolfTPM.git
use correct session index for wrap test so parameter encryption works
parent
382ff91eb3
commit
d1cd4eff52
|
@ -259,7 +259,7 @@ int TPM2_Wrapper_TestArgs(void* userCtx, int argc, char *argv[])
|
||||||
(word32)tpmSession.handle.hndl);
|
(word32)tpmSession.handle.hndl);
|
||||||
|
|
||||||
/* set session for authorization of the storage key */
|
/* set session for authorization of the storage key */
|
||||||
rc = wolfTPM2_SetAuthSession(&dev, 1, &tpmSession,
|
rc = wolfTPM2_SetAuthSession(&dev, 0, &tpmSession,
|
||||||
(TPMA_SESSION_decrypt | TPMA_SESSION_encrypt | TPMA_SESSION_continueSession));
|
(TPMA_SESSION_decrypt | TPMA_SESSION_encrypt | TPMA_SESSION_continueSession));
|
||||||
if (rc != 0) goto exit;
|
if (rc != 0) goto exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue