VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.0/man/man3/TPMLIB_DecodeBlob.pod@ 91612

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

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

檔案大小: 1.5 KB
 
1=head1 NAME
2
3TPMLIB_DecodeBlob - Decode a base64-encode TPM blob
4
5=head1 SYNOPSIS
6
7B<#include <libtpms/tpm_types.h>>
8
9B<#include <libtpms/tpm_library.h>>
10
11B<TPM_RESULT TPMLIB_DecodeBlob(const char> *I<buffer>B<,
12 enum TPMLIB_BlobType> I<type>B<,
13 unsigned char> **I<result>B<
14 size_t> *I<result_len>B<);>
15
16=head1 DESCRIPTION
17
18The B<TPMLIB_DecodeBlob()> function is used to decode a base64-encoded
19TPM state blob. The caller must pass what type of blob is expected to be
20decoded and following that the function will look for the start and
21end markers of the data.
22
23The following types of blobs are supported along with their start and
24end markers:
25
26=over 4
27
28=item B<BLOB_TYPE_INITSTATE>
29
30'-----BEGIN INITSTATE-----' marks the beginning of the base64-encoded blob.
31
32'-----END INITSTATE-----' marks the end of the base64-encoded blob.
33
34=back
35
36This function is useful when passing state to the TPM inside the
37callback that is invoked to get the TPM's state blob.
38See I<TPMLIB_RegisterCallbacks>(3).
39
40=head1 ERRORS
41
42=over 4
43
44=item B<TPM_SUCCESS>
45
46The function completed successfully.
47
48=item B<TPM_SIZE>
49
50The size of a requested buffer exceeds the limit or the
51system is out of memory.
52
53=item B<TPM_FAIL>
54
55An error occurred while attempting to decode the blob.
56
57=back
58
59For a complete list of TPM error codes please consult the include file
60B<libtpms/tpm_error.h>
61
62=head1 SEE ALSO
63
64B<TPMLIB_MainInit>(3), B<TPMLIB_RegisterCallbacks>(3)
65
66=cut
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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