📄 tpm_loadkey.3
字号:
.\" Copyright 2004 IBM (Jeff Kravitz).\".\" Written Jan 29 2004, Jeff Kravitz.\".TH "TPM_LoadKey" 3 2004-02-11 "IBM" "TPM Library".SH NAMETPM_LoadKey.SH SYNOPSIS.nf.B #include <tpmfunc.h>.sp.BR "uint32_t TPM_LoadKey" "(uint32_t parhandle," unsigned char *parauth, keydata *key, uint32_t *newhandle).fi.SH DESCRIPTIONThe \fBTPM_LoadKey()\fP function loads a specified key into the TPMand returns a handle to be used when performing cryptographic TPM functionsusing the 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 keydataa pointer to a keydata structure containing the key to be loaded..TP 10.B newhandleA pointer to a 32 bit integer which will receive the handle of the newly loaded key..SH NOTES.PThe handle returned as the last argument is passed to many other TPM functionsto specify the key to be used by those functions. Handles are volatile anddo not necessary last between TPM resets or computer reboots. Handles and keysuse resourcesin the TPM which are limited, so keys should be kept loadedin the TPM only while necessary, and the handle and its associated key storage should be releasedas soon as possible via the \fBTPM_EvictKey()\fP function..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..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) , TPM_EvictKey(3) ..SH AUTHORJeff Kravitz, IBM T.J. Watson Research Center
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -