diff --git a/src/tpm2.c b/src/tpm2.c index 1de04c56..9984ee70 100644 --- a/src/tpm2.c +++ b/src/tpm2.c @@ -5051,7 +5051,7 @@ TPM_RC TPM2_NV_Extend(NV_Extend_In* in) TPM2_Packet packet; CmdInfo_t info = {0,0,0,0}; info.inHandleCnt = 2; - info.flags = (CMD_FLAG_DEC2 | CMD_FLAG_AUTH_USER1); + info.flags = (CMD_FLAG_ENC2 | CMD_FLAG_AUTH_USER1); TPM2_Packet_Init(ctx, &packet);