没有合适的资源?快使用搜索试试~ 我知道了~
TCG_TSS_Overview_Common_Structures_v0.9_r03_published
需积分: 5 1 下载量 86 浏览量
2022-03-20
17:20:34
上传
评论
收藏 905KB PDF 举报
温馨提示
试读
52页
TPM-TSS协议栈
资源详情
资源评论
资源推荐
TCG TSS 2.0 Overview and Common Structure Specification Version 0.90 Revision 03
Copyright © TCG 2019
Version 0.90, Revision 03 Page 2 of 52 October 2, 2019
Disclaimers, Notices, and License Terms
Copyright Licenses:
• Trusted Computing Group (TCG) grants to the user of the source code in this
specification (the “Source Code”) a worldwide, irrevocable, nonexclusive, royalty free,
copyright license to reproduce, create derivative works, distribute, display and perform
the Source Code and derivative works thereof, and to grant others the rights granted
herein.
• The TCG grants to the user of the other parts of the specification (other than the Source
Code) the rights to reproduce, distribute, display, and perform the specification solely for
the purpose of developing products based on such documents.
Source Code Distribution Conditions:
• Redistributions of Source Code must retain the above copyright licenses, this list of
conditions and the following disclaimers.
• Redistributions in binary form must reproduce the above copyright licenses, this list of
conditions and the following disclaimers in the documentation and/or other materials
provided with the distribution.
Disclaimers:
• THE COPYRIGHT LICENSES SET FORTH ABOVE DO NOT REPRESENT ANY FORM
OF LICENSE OR WAIVER, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE,
WITH RESPECT TO PATENT RIGHTS HELD BY TCG MEMBERS (OR OTHER THIRD
PARTIES) THAT MAY BE NECESSARY TO IMPLEMENT THIS SPECIFICATION OR
OTHERWISE. Contact TCG Administration (admin@trustedcomputinggroup.org) for
information on specification licensing rights available through TCG membership
agreements.
• THIS SPECIFICATION IS PROVIDED "AS IS" WITH NO EXPRESS OR IMPLIED
WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, ACCURACY,
COMPLETENESS, OR NONINFRINGEMENT OF INTELLECTUAL PROPERTY
RIGHTS, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL,
SPECIFICATION OR SAMPLE.
• Without limitation, TCG and its members and licensors disclaim all liability, including
liability for infringement of any proprietary rights, relating to use of information in this
specification and to the implementation of this specification, and TCG disclaims all liability
for cost of procurement of substitute goods or services, lost profits, loss of use, loss of
data or any incidental, consequential, direct, indirect, or special damages, whether under
contract, tort, warranty or otherwise, arising in any way out of use or reliance upon this
specification or any information herein.
Any marks and brands contained herein are the property of their respective owners.
TCG TSS 2.0 Overview and Common Structure Specification Version 0.90 Revision 03
Copyright © TCG 2019
Version 0.90, Revision 03 Page 3 of 52 October 2, 2019
Corrections and Comments
Please send comments and corrections to admin@trustedcomputinggroup.org.
Normative-Informative Language
“SHALL,” “SHALL NOT”, “SHOULD”, ”SHOULD NOT”, “RECOMMENDED”, “MAY” and “OPTIONAL” in
this document are normative statements. They are to be interpreted as described in [RFC-2119].
Acknowledgements
TCG and the TSS Work Group would like to thank the following people for their work on this specification.
• Will Arthur Raytheon
• Brenda Baggaley Security Innovation (OnBoard Security)
• Dave Challener Johns Hopkins University, Applied Physics Lab
• Mike Cox Security Innovation (OnBoard Security)
• Andreas Fuchs Fraunhofer SIT
• Ken Goldman IBM
• Jürgen Repp Fraunhofer SIT
• Philip Tricca, Intel
• Lee Wilson Security Innovation (OnBoard Security)
TCG TSS 2.0 Overview and Common Structure Specification Version 0.90 Revision 03
Copyright © TCG 2019
Version 0.90, Revision 03 Page 4 of 52 October 2, 2019
Table of Contents
1 Definitions and References .................................................................................................................... 5
Acronyms .................................................................................................................................... 5
TCG Software Stack 2.0 (TSS 2.0) Specification Library Structure ........................................... 6
References .................................................................................................................................. 7
TPM Specification Level Addressed by This Specification Version and Revision ...................... 8
2 TSS Overview ......................................................................................................................................... 9
TPM Device Driver .................................................................................................................... 10
TAB and Resource Manager ..................................................................................................... 10
TPM Command Transmission Interface (TCTI) ........................................................................ 10
Marshaling/Unmarshaling (MUAPI) .......................................................................................... 11
System API (SAPI) .................................................................................................................... 11
Enhanced System API (ESAPI) ................................................................................................ 11
Feature API (FAPI) .................................................................................................................... 12
3 Common Header File ........................................................................................................................... 13
tss2_common.h Prelude ........................................................................................................... 13
tss2_common.h DLL Export Macros ......................................................................................... 13
tss2_common.h Application Binary Interface (ABI) Negotiation ............................................... 13
tss2_common.h Common Return Codes .................................................................................. 14
tss2_common.h Base Return Codes ........................................................................................ 14
tss2_common.h TCTI Response Codes ................................................................................... 15
tss2_common.h SAPI (SYS) Error Codes ................................................................................ 16
tss2_common.h MUAPI Error Codes ........................................................................................ 17
tss2_common.h ESAPI Error Codes......................................................................................... 17
tss2_common.h Postlude .......................................................................................................... 18
4 TPM 2 Types Header File ..................................................................................................................... 19
tss2_tpm2_types.h Prelude ...................................................................................................... 19
tss2_tpm2_types.h ABI Constants ............................................................................................ 19
tss2_tpm2_types.h Definition of Types and Associated Constants .......................................... 20
tss2_tpm2_types.h Postlude ..................................................................................................... 52
TCG TSS 2.0 Overview and Common Structure Specification Version 0.90 Revision 03
Copyright © TCG 2019
Version 0.90, Revision 03 Page 5 of 52 October 2, 2019
1 Definitions and References
.
Acronyms
Term or Acronym
Definition
Application Binary
Interface (ABI)
The ABI is the byte-wise layout of data types and function parameters in RAM
as well as symbol definitions used to communicate between applications,
shared objects and the kernel.
Application
Programming
Interface (API)
The API is the software interface defined by the functions and structures in a
high-level programming language used to communicate between layers in the
software stack.
Caller
The caller is the software that invokes a function call or that sends a TCTI
command to the TAB/RM.
Connection
A “connection” to the TAB/RM corresponds to a TCTI context southbound from
the SAPI to the TAB/RM.
ESAPI
TSS 2.0 Enhanced System API. This layer is intended to sit on top of the
System API providing enhanced context management and cryptography.
FAPI
TSS 2.0 Feature API. This layer sits above the ESAPI and provides a high-
level interface including a policy definition language and key store.
Implementation
An implementation is the source code and binary code that embodies a
specification or parts of a specification.
Marshal
To marshal data is to convert data from C structures to marshaled data.
Marshalled Data
Marshaled data is the representation of data used to communicate with the
TPM. In order to optimize data communication to and from the TPM, the
smallest amount of data possible is sent to the TPM. For instance, if a structure
starts with a size field and that field is set to 0, none of the other fields in the
structure are sent to the TPM. Another example: if an input structure consists
of a union of data structures, the marshalled representation of this structure will
be the size of just the data structure selected from the union (actually the
marshalled version of that structure itself). Also, the marshalled data must be in
big-endian format since this is what the TPM expects.
NV
Non-volatile means that data is not lost when the system is powered down.
PCR
Platform Configuration Register (see TPM 2.0 Library Specification)
RM
The “Resource Manager” is software executing on a system with a TPM that
ensures that the resources necessary to execute TPM commands are present
in the TPM.
SAPI
TSS 2.0 System API. This layer is intended to sit on top of the TCTI providing
marshaling/unmarshalling for TPM commands and responses.
TAB
The TPM Access Broker is software executing on a system with a TPM
managing concurrent access from multiple applications.
TPM Command
Transmission
Interface (TCTI)
The TCTI is an IPC abstraction layer used to send commands to and receive
responses from the TPM or the TAB/RM.
剩余51页未读,继续阅读
狂奔的乌龟
- 粉丝: 2w+
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0