tpm_buildkey.3

来自「IBM开发的TPM的驱动, 有少量的例子可以供参考」· 3 代码 · 共 40 行

3
40
字号
.\" Copyright 2004 IBM (Jeff Kravitz).\".\" Written Mar 24 2004, Jeff Kravitz.\".TH "TPM_BuildKey" 3  2004-03-24 "IBM" "TPM Library".SH NAMETPM_BuildKey.SH SYNOPSIS.nf.B #include <tpmfunc.h>.sp.BR "int TPM_BuildKey" "(unsigned char *keyblob,keydata *key)".fi.SH DESCRIPTIONThe \fBTPM_BuildKey\fP function converts a keydata structureto a binary blob containing a TPM key..SH ARGUMENTSThe arguments include....TP 10.B keyblobA pointer to an area to receive the key blob. This area shouldbe at least the maximum size of a TPM key blob.  A size of 4096 bytes isrecommended..TP 10.B keyA pointer to a keydata structure containing the key to be converted.The keydata structure is described in the man page for the\fBTPM_CreateWrapKey()\fP function..SH "RETURN VALUE"The value returned is the number of bytes extracted from the key blob,i.e. the length of the key blob, or an error code.  If the returndvalue has the high order bit set, e.g. (return value & 0x80000000) != 0,then it contains an error code.  If the high order bit is off, then itcontains the length of the key blob..SH "SEE ALSO".BR TPM_CreateWrapKey(3) , TSS_KeyExtract(3) ..SH AUTHORJeff Kravitz, IBM T.J. Watson Research Center

⌨️ 快捷键说明

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