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

📄 tpm_seal.3

📁 IBM开发的TPM的驱动, 有少量的例子可以供参考
💻 3
字号:
.\" Copyright 2004 IBM (Jeff Kravitz).\".\" Written Feb 11 2004, Jeff Kravitz.\".TH "TPM_Seal" 3  2004-04-15 "IBM" "TPM Library".SH NAMETPM_Seal.SH SYNOPSIS.nf.B #include <tpmfunc.h>.sp.BR "uint32_t TPM_Seal" "(uint32_t keyhandle,"                       unsigned char *pcrinfo, uint32_t pcrinfosize,                       unsigned char *keyauth,                       unsigned char *dataauth,                       unsigned char *data, unsigned int datalen,                       unsigned char *blob, unsigned int *bloblen).fi.SH DESCRIPTIONThe \fBTPM_Seal()\fP functions perform a cryptographic encryption operation,and also allow the software to explicitly state the future "trusted" configurationthat the platform must be in for the secret to be revealed. In addition, thedata is bound to the specific TPM and cannot be unsealed by another TPM..SH ARGUMENTSThe arguments include....TP 10.B keyhandleThe handle of the key used to seal the data. This is usually obtainedfrom \fBTPM_LoadKey()\fP. This key must be a storage (encryption) key. The keycannot be migrate-able..TP 10.B pcrinfoA pointer to a \fBpcrinfo\fP structure, which specifies the PCR registersand their contents to be used when sealing.  The \fBpcrinfo\fP structureis described in the man page for the \fBTSS_GenPCRInfo()(\fP function..TP 10.B pcrinfosizeAn integer containing the length of the \fBpcrinfo\fP structure..TP 10.B keyauthA pointer to the authorization data for the key.(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 dataauthA pointer to the authorization for the 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 dataA pointer to the data to be sealed..B datalenThe length of the data to be sealed..TP 10.B blobA pointer to an area to receive the sealed data..B bloblenA pointer to an integer to receive the length of the sealed data..TP 10.SH NOTES.PThe area receiving the sealed data must be the size of the maximum sealed data,as no buffer overflow checking is performed. A buffer of 4096 bytes is recommended..PThe data being sealed must be no longer than the size of thekey being used to sign it, minus some overhead.  Usually only smallobjects, such as symmetric keys are sealed..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) , TPM_Unseal(3) , TSS_GenPCRInfo(3) , TPM_GetErrMsg(3) ..SH AUTHORJeff Kravitz, IBM T.J. Watson Research Center

⌨️ 快捷键说明

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