tpm_takeownership.3
来自「IBM开发的TPM的驱动, 有少量的例子可以供参考」· 3 代码 · 共 51 行
3
51 行
.\" Copyright 2004 IBM (Jeff Kravitz).\".\" Written Feb 10 2004, Jeff Kravitz.\".TH "TPM_TakeOwnership" 3 2004-02-11 "IBM" "TPM Library".SH NAMETPM_TakeOwnership.SH SYNOPSIS.nf.B #include <tpmfunc.h>.sp.BR "uint32_t TPM_TakeOwnership" "(unsigned char *ownauth," unsigned char *srkauth, keydata *srk).fi.SH DESCRIPTIONThe \fBTPM_TakeOwnership()\fP function performs the function of installinga new \fIowner authorization data\fP,\fIstorage root key\fP,and \fIstorage root key authorization data\fP into a TPM.SH ARGUMENTSThe arguments include....TP 10.B ownauthA pointer to the owner authorization data.TP 10.B srkauthA pointer to the SRK (storage root key) authorization data..TP 10.B srkA pointer to a \fBkeydata\fP structure that will receive the informationon the SRK just created. The \fBkeydata\fP structure is described in theman page for the \fBTPM_CreateWrapKey()\fP function..SH NOTES.PThis function cannot be performed unless the TPM is currently without an owner.The current owner may be removed via the \fBTPM_OwnerClear()\fP function, orby a manual operation. Both methods require some kind of physical presence at thecomputer itself, i.e. an owner can not be removed remotely..PBoth of the authorization data arguments consist ofa 20 byte value which is usually calculated as the hash of a realpassword..SH "RETURN VALUE"0 if the operation is successful. non-zero otherwise.The non zero value can be converted to an error message via the function \fBTPM_GetErrMsg()\fP..SH "SEE ALSO".BR TPM_CreateWrapKey(3) , TPM_OwnerClear(3) , TPM_GetErrMsg(3) ..SH AUTHORJeff Kravitz, IBM T.J. Watson Research Center
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?