tpm2-tools icon indicating copy to clipboard operation
tpm2-tools copied to clipboard

How to change the symmetric key size of the primary object version 1.16

Open dadiestfish2077 opened this issue 2 years ago • 1 comments

In the version of tpm2 tools we are using, which is 3.1, the sym-keybits field seems to be missing from the context file created by tpm2_createprimary. In recent versions, the user can add the flag: -G rsa2048:aes256 and consequently the decryption key is an aes 256 bit key. Can this be done in this version?

In more recent versions of the tools, the user can pass something like: tpm2_createprimary -C o -g sha256 -G rsa2048:aes256 -c primary.context

In this earlier version, if i pass it: tpm2_createprimary -H o -g 0x0004 -G rsa2048 -C context.p_0x0004_0x0001 it returns "invalid key algorithm"

I am wondering how to adjust the key size when creating a primary key?

dadiestfish2077 avatar May 12 '22 22:05 dadiestfish2077

@AndreasFuchsSIT do you know?

idesai avatar May 13 '22 00:05 idesai