📄 tpm_changeauth.3
字号:
.\" Copyright 2004 IBM (Jeff Kravitz).\".\" Written Mar 24 2004, Jeff Kravitz.\".TH "TPM_ChangeAuth" 3 2004-03-24 "IBM" "TPM Library".SH NAMETPM_ChangeAuth.SH SYNOPSIS.nf.B #include <tpmfunc.h>.sp.BR "uint32_t TPM_ChangeAuth" "(uint32_t parhandle," unsigned char *parauth, unsigned char *oldauth, unsigned char *newauth, keydata *key,.fi.SH DESCRIPTIONThe \fBTPM_ChangeAuth()\fP function changes the authorization (password) valuefor a specified key..SH ARGUMENTSThe arguments include....TP 10.B parhandlethe parent key handle..TP 10.B parauththe parent key authorization data(a 20 byte value which is usually calculated as the hash of a password).If NULL, it will be assumed that no password is required..TP 10.B oldauththe existing key authorization data(a 20 byte value which is usually calculated as the hash of a password)..TP 10.B newauththe new key authorization data(a 20 byte value which is usually calculated as the hash of a password)..TP 10.B keydataa pointer to a keydata structure containing the key to be modified..SH NOTES.PIf the operation completes successfully, the keydata structure pointedto by the \fBkey\fP argument will have the private key element replaced bythe modified version..PA key read in from external storage is usually in a binary format whichcan be converted to a keydata structure via the \fBTSS_KeyExtract()\fP function..PThe modified keydata structure can be converted back to a binary object viathe \fBTPM_BuildKey()\fP function..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 TSS_KeyExtract(3) , TPM_GetErrMsg(3) ..SH AUTHORJeff Kravitz, IBM T.J. Watson Research Center
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -