参考链接:https://github.com/tpm2-software/tpm2-tools/blob/master/man/common/ctxobj.md
Context Object Format —— 对象上下文格式
The type of a context object, whether it is a handle or file name, is determined according to the following logic in-order:
- If the argument is a file path, then the file is loaded as a restored TPM transient object.
- If the argument is a prefix match on one of:
- owner: the owner hierarchy
- platform: the platform hierarchy
- endorsement: the endorsement hierarchy
- lockout: the lockout control persistent object
- If the argument can be loaded as a number it will be treat as a handle, e.g. 0x81010013 and used directly.
对象上下文的类型,不管它是一个句柄还是一个文件名,按照以下按顺序排列的逻辑决定:
- 如果参数第一个文件路径,则文件作为复原的(归还的)TPM临时对象被加载。
- 如果参数是一个匹配以下之一的前缀:
- owner:所有者层级
- platform:平台层级
- endorsement:背书层级
- lockout:锁定控制持久对象
- 如果参数能够被作为一个数字(号码)加载,它将被视为句柄,例如:0x81010013和直接使用。