VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.0/man/man3/TPM_IO_Hash_Start.pod@ 97817

最後變更 在這個檔案從97817是 91612,由 vboxsync 提交於 3 年 前

src/libs: Export libtpms-0.9.0, bugref:10078

檔案大小: 2.0 KB
 
1=head1 NAME
2
3TPM_IO_Hash_Start - indicate the beginging of a TPM TIS hash operation
4
5TPM_IO_Hash_Data - hash the provided data
6
7TPM_IO_Hash_End - indicate the end of a TPM TIS hash operation
8
9=head1 LIBRARY
10
11TPM library (libtpms, -ltpms)
12
13=head1 SYNOPSIS
14
15B<#include <libtpms/tpm_types.h>>
16
17B<#include <libtpms/tpm_tis.h>>
18
19B<#include <libtpms/tpm_error.h>>
20
21B<TPM_RESULT TPM_IO_Hash_Start(void);>
22
23B<TPM_RESULT TPM_IO_Hash_Data(const unsigned char> *I<data>B<,
24 uint32_t> I<data_length>B<);>
25
26B<TPM_RESULT TPM_IO_Hash_End(void);>
27
28=head1 DESCRIPTION
29
30The B<TPM_IO_Hash_Start()> function can be used by an implementation of the
31TPM TIS hardware interface to indicate the beginning of a hash operation.
32Following the TPM TIS interface specification it resets several PCRs and
33terminates existing transport sessions.
34The B<TPM_IO_Hash_Data()> function is used to send the data to be hashed to
35the TPM.
36The B<TPM_IO_Hash_End()> function calculates the final hash and stores it
37in the locality 4 PCR.
38The 3 functions must be called in the order they were explained.
39
40The implementation of the above functions handles all TPM-internal actions
41such as the setting and clearing of permanent flags and PCRs and the
42calculation of the hash. Any functionality related to the TPM's TIS interface
43and the handling of flags, locality and state has to be implemented by the
44caller.
45
46=head1 ERRORS
47
48=over 4
49
50=item B<TPM_SUCCESS>
51
52The function completed successfully.
53
54=item B<TPM_FAIL>
55
56General failure.
57
58=item B<TPM_INVALID_POSTINIT>
59
60The B<TPM_IO_Hash_Start()> function was called before the TPM received
61a TPM_Startup command.
62
63=item B<TPM_SHA_THREAD>
64
65The B<TPM_IO_Hash_Data()> or B<TPM_IO_Hash_End()> functions were called before
66the B<TPM_IO_Hash_Start()> function.
67
68=back
69
70For a complete list of TPM error codes please consult the include file
71B<libtpms/tpm_error.h>
72
73=head1 SEE ALSO
74
75B<TPMLIB_MainInit>(3), B<TPMLIB_Terminate>(3), B<TPMLIB_RegisterCallbacks>(3),
76B<TPMLIB_Process>(3)
77
78=cut
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette