1Tspi_DecodeBER_TssBlToCbG(3S)oftware Stack Developer's RefeTrsepnic_eDecodeBER_TssBlob(3)
2
3
4

NAME

6       Tspi_DecodeBER_TssBlob - unwraps a BER-encoded TSS blob.
7

SYNOPSIS

9       #include <tss/tspi.h>
10
11       TSS_RESULT Tspi_DecodeBER_TssBlob(UINT32  berBlobSize, BYTE*   berBlob,
12                                         UINT32* blobType,    UINT32* rawBlobSize,
13                                         BYTE*   rawBlob);
14
15
16

DESCRIPTION

18       Tspi_DecodeBER_TssBlob   is used to unwrap a BER-encoded blob in accor‐
19       dance with the ASN.1 data definitions in the Portable Data  section  of
20       the Trusted Computing Group Software Stack Specification Version 1.2.
21

PARAMETERS

23   berBlobSize
24       Size of the BER-encoded blob.
25
26   berBlob
27       Pointer to the BER-encoded blob.
28
29   blobType
30       Pointer   to   the   type   of  blob  being  unwrapped  (refer  to  the
31       TSS_BLOB_TYPE_* constants).
32
33   rawBlobSize
34       Pointer to the size of the rawBlob buffer.   On  input  this  parameter
35       contains  a pointer to the maximum size of the supplied rawBlob buffer.
36       On output this parameter contains a pointer to the actual size  of  the
37       unwrapped  blob.   On  input, if this parameter points to a value of 0,
38       then this function will return the size of the buffer required to  hold
39       the unwrapped blob without writing to the rawBlob buffer.
40
41       Note:  The  output  data  must  be  shorter  than  the BER-encoding, so
42       berBlobSize is a useful upper limit on rawBlob buffer size.
43
44   rawBlob
45       Pointer to a buffer to hold the unwrapped blob.
46

RETURN CODES

48       Tspi_EncodeDER_TssBlob returns TSS_SUCCESS on success, otherwise one of
49       the following values are returned:
50
51       TSS_E_BAD_PARAMETER
52
53       TSS_E_INTERNAL_ERROR - An error occurred internal to the TSS.
54

CONFORMING TO

56       Tspi_DecodeBER_TssBlob conforms to the Trusted Computing Group Software
57       Specification Version 1.2
58

SEE ALSO

60       Tspi_DecodeBER_TssBlob(3).
61
62
63
64
65
66
67TSS 1.2                           2007-06-12         Tspi_DecodeBER_TssBlob(3)
Impressum