The digest itself will end up on the wire. But the computed hash including
the secrets should probably be obsecured. For the TPM that's an input
parameter, which it must decrypt. Hence TPMA_SESSION_DECRYPT.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
(COMMAND_PARAMETERS *)&in,
NULL,
TPM_CC_RSA_Decrypt,
- authHandle, pass, 0,
+ authHandle, pass, TPMA_SESSION_DECRYPT,
TPM_RH_NULL, NULL, 0);
if (rc == KEY_AUTH_FAILED) {
free_pass(&pass);
(COMMAND_PARAMETERS *)&in,
NULL,
TPM_CC_Sign,
- authHandle, pass, 0,
+ authHandle, pass, TPMA_SESSION_DECRYPT,
TPM_RH_NULL, NULL, 0);
if (rc == KEY_AUTH_FAILED) {
free_pass(&pass);