Expand description
All TPM 2.0 keys consist of two binary pieces, a public part, which can be parsed according to the TPM specification for TPM2B_PUBLIC [TPM2.0] and a private part, which is cryptographically sealed in such a way as to be only readable on the TPM that created it.
Structs§
- Rasn
Decode Error - An error type for failed decoding for every decoder. Abstracts over the different generic and codec-specific errors.
- Rasn
Encode Error - An error type for failed encoding for every encoder. Abstracts over the different generic and codec-specific errors.
- TPMAuth
Policy - TPMKey
- The design of the TPMkey ASN.1 format is that it should have a distinguishing OID at the beginning so the DER form of the key can be easily recognized. In PEM form, the key MUST have the following PEM guards: “—–BEGIN TSS2 PRIVATE KEY—–” and “—–END TSS2 PRIVATE KEY—–”
- TPMKey
Type - TPM Key Type (OID encoding)
- TPMPolicy
Enums§
Constants§
- OID_
TPMKEY_ IMPORTABLE - A TPM importable key, to be imported with
TPM2_Import - OID_
TPMKEY_ LOADABLE - A TPM loadable key, to be loaded with
TPM2_Load - OID_
TPMKEY_ SEALED - A sealed data key, to be extracted with
TPM2_Unseal
Functions§
- checked_
pem_ to_ der - decode PEM, check label, return copy as DER