1Tspi_TPM_DirWrite(3)       Library Functions Manual       Tspi_TPM_DirWrite(3)
2
3
4
5                   TCG Software Stack Developer's Reference
6

NAME

8       Tspi_TPM_DirWrite - write to a Data Integrity Register
9

SYNOPSIS

11       #include <tss/platform.h>
12       #include <tss/tcpa_defines.h>
13       #include <tss/tcpa_typedef.h>
14       #include <tss/tcpa_struct.h>
15       #include <tss/tss_typedef.h>
16       #include <tss/tss_structs.h>
17       #include <tss/tspi.h>
18
19       TSS_RESULT Tspi_TPM_DirWrite(TSS_HTPM hTPM,            UINT32 ulDirIndex,
20                                    UINT32   ulDirDataLength, BYTE*  rgbDirData);
21
22
23

DESCRIPTION

25       Tspi_TPM_DirWrite  writes  a  data integrity register. You need to know
26       the DIR index and data you wish to write to the DIR prior to using this
27       command.
28
29

PARAMETERS

31   hTPM
32       The hTPM parameter is used to specify the handle of the TPM object.
33
34   ulDirIndex
35       The ulDirIndex parameter is the index of the DIR to write. To query the
36       TPM for the number of DIR registers it supports, use  Tspi_TPM_GetCapa‐
37       bility(3).
38
39   ulDirDataLength
40       The  ulDirDataLength parameter is the length in bytes of the rgbDirData
41       parameter.
42
43   rgbDirData
44       The rgbDirData parameter is a pointer to memory containing the data  to
45       be written to the DIR.
46
47

RETURN CODES

49       Tspi_TPM_DirWrite  returns TSS_SUCCESS on success, otherwise one of the
50       following values is returned:
51
52       TSS_E_INVALID_HANDLE
53              hTPM is not a valid handle.
54
55
56       TSS_E_INTERNAL_ERROR
57              An internal SW error has been detected.
58
59
60       TSS_E_BAD_PARAMETER
61              One or more parameters is bad.
62
63

CONFORMING TO

65       Tspi_TPM_DirWrite conforms to  the  Trusted  Computing  Group  Software
66       Specification version 1.1 Golden
67
68

SEE ALSO

70       Tspi_TPM_GetCapability(3), Tspi_TPM_DirRead(3).
71
72
73
74
75TSS 1.1                           2004-05-25              Tspi_TPM_DirWrite(3)
Impressum