1Tspi_EncodeDER_TssBlToCbG(3S)oftware Stack Developer's RefeTrsepnic_eEncodeDER_TssBlob(3)
2
3
4

NAME

6       Tspi_EncodeDER_TssBlob - generate a DER encoded TSS blob.
7

SYNOPSIS

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

DESCRIPTION

18       Tspi_EncodeDER_TssBlob   is  used to generate a DER-encoded blob in ac‐
19       cordance with the ASN.1 data definitions in the Portable  Data  section
20       of  the  Trusted  Computing  Group Software Stack Specification Version
21       1.2.
22

PARAMETERS

24   rawBlobSize
25       Size of the unwrapped blob.
26
27   rawBlob
28       Pointer to the unwrapped blob.
29
30   blobType
31       Type of blob being wrapped (refer to the TSS_BLOB_TYPE_* constants).
32
33   derBlobSize
34       Pointer to the size of the derBlob buffer.   On  input  this  parameter
35       contains  a pointer to the maximum size of the supplied derBlob buffer.
36       On output this parameter contains a pointer to the actual size  of  the
37       DER-encoded  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 DER-encoded blob without writing to the derBlob buffer.
40
41       Note: If the raw data blob length is less than 2^16 bytes then the DER-
42       encoding may add no more than 20 bytes.
43
44   derBlob
45       Pointer to a buffer to hold the DER-encoded 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_EncodeDER_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_EncodeDER_TssBlob(3)
Impressum