tpm2-tools
tpm2-tools copied to clipboard
How to change the symmetric key size of the primary object version 1.16
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?
@AndreasFuchsSIT do you know?