I am trying to sign some data with a symmetric key AES128 on the TPM2. However, I get this error during the signing
ERROR: Unknown key type, got: 0x25 ERROR: bad signature scheme for key type! ERROR: Unable to run tpm2_sign
primary key creation command: tpm2_createprimary -C o -g sha256 -G rsa -c primary.ctx
AES key creation command: tpm2_create -C primary.ctx -g sha256 -G aes128 -r AESkey.prv -u AESkey.pub -a "sensitivedataorigin|userwithauth|decrypt|sign"
So, the problem as I understood is related to the signature scheme, but how can I determine a functional scheme to achieve the signing?