TPM2: Fix primary key generation in decrypting
These changes fix TPM2 primary key generation in decrypting when there is no primary key is present.
Also, fixes a memory issue.
These changes fix TPM2 primary key generation in decrypting when there is no primary key is present.
Also, fixes a memory issue.