⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tpm_getpubkey.3

📁 IBM开发的TPM的驱动, 有少量的例子可以供参考
💻 3
字号:
.\" Copyright 2004 IBM (Jeff Kravitz).\".\" Written Jan 29 2004, Jeff Kravitz.\".TH "TPM_GetPubKey" 3  2004-02-11 "IBM" "TPM Library".SH NAMETPM_GetPubKey.SH SYNOPSIS.nf.B #include <tpmfunc.h>.sp.BR "uint32_t TPM_GetPubKey" "(uint32_t keyhandle,"                  unsigned char *keyauth,                  unsigned char *keyblob,                  unsigned int  *bloblen).fi.SH DESCRIPTIONThe \fBTPM_GetPubKey()\fP function returns a blob containing the public portionof a key that is already loaded into the TPM..SH ARGUMENTSThe arguments include....TP 10.B keyhandleThe handle of the key. This is usually obtained from \fBTPM_LoadKey()\fP..TP 10.B keyauthA pointer to the key authorization data,(a 20 byte value which is usually calculated as the hash of a password)..TP 10.B keyblobA pointer to an area to receive the public key blob..TP 10.B bloblenA pointer to an integer to receive the size of the returned blob..SH NOTES.PThe area to receive the blobshould be large enough to receive the largest possible public key, as nobuffer overflow checking is done. A buffer of 4096 bytes is recommended..PThe resulting public key blob can be converted to a pubkeydata structurevia the \fBTSS_PubKeyExtract()\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 TPM_LoadKey(3) , TSS_PubKeyExtract(3) , TPM_GetErrMsg(3) ..SH AUTHORJeff Kravitz, IBM T.J. Watson Research Center

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -