You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tpm-tools: fix incorrect key parameter defines use
tpm_getpubek is returning nonsense for the key parameters. Example:
jejb@jarvis:~> tpm_getpubek
Public Endorsement Key:
Version: 01010000
Usage: 0x0002 (Unknown)
Flags: 0x00000000 (!VOLATILE, !MIGRATABLE, !REDIRECTION)
AuthUsage: 0x00 (Never)
Algorithm: 0x00000020 (Unknown)
Encryption Scheme: 0x00000012 (Unknown)
Signature Scheme: 0x00000010 (Unknown)
Public Key:
[...]
Apparently someone failed to appreciate that the TSS translates all the
values from the TPM ones into its own different ones, and when you do
attribute getting and setting, you have to use the TSS values. This
patch updates tpm_tspi.c to use the correct TSS_ values and thus
produces the much more correct output:
Public Endorsement Key:
Version: 01010000
Usage: 0x0002
(Legacy)
Flags: 0x00000000 (!VOLATILE, !MIGRATABLE, !REDIRECTION)
AuthUsage: 0x00 (Never)
Algorithm: 0x00000020 (RSA)
Encryption Scheme: 0x00000012 (RSAESOAEP_SHA1_MGF1)
Signature Scheme:
0x00000010 (None)
Key Size: 2048 bits
Public Key:
[...]
Signed-off-by: James Bottomley <jejb@linux.vnet.ibm.com>
Tested-by: Hon Ching(Vicky) Lo <honclo@linux.vnet.ibm.com>
0 commit comments