TPM
845
Comment:
|
1447
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= TPM = | <<Include(TPM/WikiHeader)>> ||<tablebgcolor="#f1f1ed" tablewidth="20%" tablestyle="margin: 0pt 0pt 1em 1em; float: right; font-size: 0.9em;"style="padding: 0.5em;"><<TableOfContents>>|| = Trusted Platform Module = |
Line 6: | Line 10: |
Line 13: | Line 18: |
Given the complexity of using a TPM, it is strongly recommended to use a resource manager (usually ''tabrmd'', or the kernel's own resource manager, if available via '''/dev/tpmrm#''') It is also possible to use the TPM device or simulator directly as a device, see [[Testing]] |
|
Line 15: | Line 24: |
If the resource manager isn't started automaticlaly: | If the resource manager isn't started automatically: |
Line 17: | Line 26: |
{{{ | |
Line 18: | Line 28: |
}}} | |
Line 21: | Line 32: |
{{{ | |
Line 22: | Line 34: |
}}} | |
Line 23: | Line 36: |
{{{ | |
Line 26: | Line 39: |
}}} | |
Line 29: | Line 43: |
tpm2_listpcrs / tpm2_pcrlist | For Ubuntu 19.04 and newer: {{{ $ tpm2_pcrlist }}} |
Line 31: | Line 48: |
For previous releases: {{{ $ tpm2_listpcrs }}} |
Trusted Platform Module
TPM stands for Trusted Platform Module. TPM devices have two main implementations: an older one, called TPM or TPM 1.2, which has been in use for a number of years in various applications, and a newer implementation called TPM 2, which has started to appear on many modern devices.
This document focuses only on TPM2.
TPM2
[ describe theoretical uses for tpm2 ]
Using the TPM
Given the complexity of using a TPM, it is strongly recommended to use a resource manager (usually tabrmd, or the kernel's own resource manager, if available via /dev/tpmrm#)
It is also possible to use the TPM device or simulator directly as a device, see Testing
Starting a resource manager
If the resource manager isn't started automatically:
$ sudo service tpm2-abrmd start
Or:
/usr/sbin/tpm2-abrmd -T device
# For simulator ... /usr/sbin/tpm2-abrmd -T mssim
Listing PCRs
For Ubuntu 19.04 and newer:
$ tpm2_pcrlist
For previous releases:
$ tpm2_listpcrs
Hashing a value
[other useful userland things]
Reference
[ link to Practical Guide to TPM2 book ]
TPM (last edited 2019-02-19 14:09:12 by cyphermox)