没有合适的资源?快使用搜索试试~ 我知道了~
TSS_SAPI_v1p1_r36_pub10012021.pdf
需积分: 1 0 下载量 192 浏览量
2023-07-21
06:35:33
上传
评论
收藏 723KB PDF 举报
温馨提示
试读
107页
TPM 软件栈技术规范
资源推荐
资源详情
资源评论
TSS 2.0 System Level API (SAPI) Specification
Family "2.0" TCG PUBLISHED Page 2
Version 1.1, Revision 36 Copyright © TCG 2021 1 October 2021
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.
TSS 2.0 System Level API (SAPI) Specification
Family "2.0" TCG PUBLISHED Page 3
Version 1.1, Revision 36 Copyright © TCG 2021 1 October 2021
Any marks and brands contained herein are the property of their respective owners.
Corrections and Comments
Please send comments and corrections to techquestionsadmin@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].
Revision History
Version 1.1 rev 01
12/05/16
• Addressed TC comments
• Removed header information – moved to hdr
document
• Added new namespace (and chapter) for
marshalling/unmarshalling.
Version 1.1 rev 04
02/03/17
• Moved all header information to header
document.
• Addressed TC comments
• Added TCG Source Code License to End
Users
• Added new figures
• Added new section of
marshaling/unmarshalling API
• Added text to TPM command templates to
indicate that the TPM2 prefix is removed
before insertion into the template.
Version 1.1 rev 06
02/09/17
• Removed resolved comments.
Version 1.1 rev 14
04/28/17
• TC Comments addressed
Version 1.1 rev 16
05/09/17
• Changed copyrights and disclaimers to match
the TPM Specification.
Version 1.1 rev 18
05/30/17
• Removed TCTI and Marshalling/Unmarshalling
– moved to their own documents.
• Moved sys.h header file documentation to this
document.
Version 1.1 rev 19
06/02/17
• Resolved issues from review of the
restructured specifications with TCTI and
MUAPI moved to new independent
specifications.
Version 1.1 rev 23
9/7/18
• Added TSS2_SYS_MAX_SESSIONS
• Clarified encrypted parameters are not
supported in one-call functions..
TSS 2.0 System Level API (SAPI) Specification
Family "2.0" TCG PUBLISHED Page 4
Version 1.1, Revision 36 Copyright © TCG 2021 1 October 2021
• Fixed language in Tss2_Sys_SetCmdAuths
and Tss2_Sys_GetCmdAuths related to
• Clarified Tss2_Sys_SetCmdsAuths cannot be
called with an array of size 0.
• Fixed typos in Tss2_Sys_ExecuteFinish.
• Clarified description of behavior when
Tss2_Sys_ExecuteFinish is called out of
sequence.
• Removed requirement to test whether TPM
response could fit in the default context buffer
size.
Version 1.1 rev 24
10/9/18
• Allowed commands to be reissued after a TPM
error from Execute or ExecuteFinish. This
simplifies supporting ESAPI retry efforts in
response to TPM_RC_RETRY and similar.
Version 1.1 rev 26
11/6/18
• Added a scope statement plus minor
corrections.
Version 1.1 rev 27
11/16/18
• Correcting the mention of ESAPI when SAPI
was meant.
• Spelling correction.
Version 1.1 rev 28
1/16/19
• Removed TSS2_SYS_RC_BAD_VALUE as a
return code from Tss2_Sys_SetEncryptParam.
Version 1.1 rev 29
1/17/19
• Updated version number and date in
headers/footers.
Version 1.1. rev 30
7/13/20
• Added new functions from TPM2 spec 1.59
Version 1.1 rev 31
11/24/20
• Add additional missing changes for TPM2
spec 1.59
Version 1.1 rev 32
12/3/2020
• Remove extra SAPI param in CertifyX509
Version 1.1 rev 33
01/20/2021
• Change TPM_AT to TPM2_AT
Version 1.1 rev 34
03/9/2021
• Address TC Feeedback.
Version 1.1 rev 35
08/24/2021
• Address TC/Public Review Feedback
Version 1.1 rev 36
10/1/2021
• Fixed spelling of addressed in Changelog.
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 OnBoard Security
• Dave Challener Johns Hopkins University, APL
• Michael Cox OnBoard Security
• Andreas Fuchs Fraunhofer SIT
• Ken Goldman IBM
• Jürgen Repp Fraunhofer SIT
• William Roberts Intel
• Tadeusz Struk Intel
• Philip Tricca Intel
• Lee Wilson OnBoard Security
TSS 2.0 System Level API (SAPI) Specification
Family "2.0" TCG PUBLISHED Page 5
Version 1.1, Revision 36 Copyright © TCG 2021 1 October 2021
Table of Contents
Table of Contents .......................................................................................................................................... 5
1 General Information on the TCG TSS 2.0 Specification Library ........................................................... 9
1.1 Scope of this Specification .............................................................................................................. 9
1.2 Acronyms ........................................................................................................................................ 9
1.3 TCG Software Stack 2.0 (TSS 2.0) Specification Library Structure ............................................... 9
1.4 References .................................................................................................................................... 10
2 TSS 2.0 SAPI Introduction .................................................................................................................. 11
2.1 Architecture ................................................................................................................................... 11
2.2 SAPI High Level Design Requirements: ....................................................................................... 11
2.2.1 Threading Model .................................................................................................................. 11
3 SAPI .................................................................................................................................................... 13
3.1 Overall functionality ...................................................................................................................... 13
3.2 Design requirements ..................................................................................................................... 13
3.3 Design rules .................................................................................................................................. 14
3.4 Architecture ................................................................................................................................... 15
3.5 SAPI data structures ..................................................................................................................... 17
3.6 Application Binary Interface (ABI) Negotiation ............................................................................. 17
3.7 Command Parameters .................................................................................................................. 18
3.7.1 System API Parameter Rules .............................................................................................. 18
3.8 SAPI Function APIs (by Category) ............................................................................................... 18
3.8.1 Command Context Allocation Functions .............................................................................. 19
3.8.2 Command Preparation Functions ........................................................................................ 21
3.8.3 Command Execution Functions ........................................................................................... 25
3.8.4 Command Completion .......................................................................................................... 29
4 SYS Header File .................................................................................................................................. 34
4.1 tss2_sys.h Prelude ....................................................................................................................... 34
4.2 tss2_sys.h sysContext Structure .................................................................................................. 34
4.3 tss2_sys.h Command and Response Session Structures ........................................................... 34
4.4 tss2_sys.h Command Context Management Functions ............................................................... 35
4.5 tss2_sys.h Command Preparation Functions ............................................................................... 35
4.6 tss2_sys.h Command Execution Functions .................................................................................. 36
4.7 tss2_sys.h Command Completion Functions ............................................................................... 36
4.8 tss2_sys.h Functions for Invoking TPM Commands .................................................................... 37
4.8.1 TPM Tss2_Sys_Startup Commands .................................................................................... 37
4.8.2 TPM Tss2_Sys_Shutdown Commands ............................................................................... 38
4.8.3 TPM Tss2_Sys_SelfTest Commands .................................................................................. 38
4.8.4 TPM Tss2_Sys_IncrementalSelfTest Commands ............................................................... 39
4.8.5 TPM Tss2_Sys_GetTestResult Commands ........................................................................ 39
4.8.6 TPM Tss2_Sys_StartAuthSession Commands.................................................................... 40
4.8.7 TPM Tss2_Sys_PolicyRestart Commands .......................................................................... 40
4.8.8 TPM Tss2_Sys_Create Commands ..................................................................................... 41
剩余106页未读,继续阅读
资源评论
书香度年华
- 粉丝: 1w+
- 资源: 383
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功