~ubuntu-branches/ubuntu/jaunty/trousers/jaunty

« back to all changes in this revision

Viewing changes to man/man3/Tspi_EncodeDER_TssBlob.3

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-01-23 22:03:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080123220300-fhtqja3c0oq0gp6z
Tags: 0.3.1-4
* Added patch from Aaron M. Ucko <ucko@debian.org> to allow trousers to
  build successfully on amd64, and presumably also other 64-bit
  architectures (Closes: #457400).
* Including udev rule for /dev/tpm from William Lima
  <wlima.amadeus@gmail.com> as suggested by David Smith <dds@google.com>
  (Closes: #459682).
* Added lintian overrides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" Copyright (C) 2007 International Business Machines Corporation
 
2
.\" Written by Tom Lendacky based on the Trusted Computing Group Software Stack Specification Version 1.2
 
3
.\"
 
4
.de Sh \" Subsection
 
5
.br
 
6
.if t .Sp
 
7
.ne 5
 
8
.PP
 
9
\fB\\$1\fR
 
10
.PP
 
11
..
 
12
.de Sp \" Vertical space (when we can't use .PP)
 
13
.if t .sp .5v
 
14
.if n .sp
 
15
..
 
16
.de Ip \" List item
 
17
.br
 
18
.ie \\n(.$>=3 .ne \\$3
 
19
.el .ne 3
 
20
.IP "\\$1" \\$2
 
21
..
 
22
.TH "Tspi_EncodeDER_TssBlob" 3 "2007-06-12" "TSS 1.2" "TCG Software Stack Developer's Reference"
 
23
.SH NAME
 
24
Tspi_EncodeDER_TssBlob \- generate a DER encoded TSS blob. 
 
25
.SH "SYNOPSIS"
 
26
.ad l
 
27
.hy 0
 
28
.nf
 
29
.B #include <tss/tspi.h>
 
30
.sp
 
31
.BI "TSS_RESULT Tspi_EncodeDER_TssBlob(UINT32 " rawBlobSize ", BYTE*   " rawBlob ","
 
32
.BI "                                  UINT32 " blobType ",    UINT32* " derBlobSize ","
 
33
.BI "                                  BYTE*  " derBlob ");"
 
34
.fi
 
35
.sp
 
36
.ad
 
37
.hy
 
38
 
 
39
.SH "DESCRIPTION"
 
40
.PP
 
41
\fBTspi_EncodeDER_TssBlob\fR  is used to generate a DER-encoded blob in accordance with the ASN.1 data definitions in the Portable Data section of the Trusted Computing Group Software Stack Specification Version 1.2.
 
42
.SH "PARAMETERS"
 
43
.PP
 
44
.SS rawBlobSize
 
45
Size of the unwrapped blob.
 
46
.PP
 
47
.SS rawBlob
 
48
Pointer to the unwrapped blob.
 
49
.PP
 
50
.SS blobType
 
51
Type of blob being wrapped (refer to the TSS_BLOB_TYPE_* constants).
 
52
.PP
 
53
.SS derBlobSize
 
54
Pointer to the size of the derBlob buffer.  On input this parameter contains a pointer to the maximum size of the supplied derBlob buffer.  On output this parameter contains a pointer to the actual size of the DER-encoded blob.  On input, if this parameter points to a value of 0, then this function will return the size of the buffer required to hold the DER-encoded blob without writing to the derBlob buffer.
 
55
.sp
 
56
\fBNote:\fR If the raw data blob length is less than 2^16 bytes then the DER-encoding may add no more than 20 bytes.
 
57
.PP
 
58
.SS derBlob
 
59
Pointer to a buffer to hold the DER-encoded blob.
 
60
.SH "RETURN CODES"
 
61
.PP
 
62
\fBTspi_EncodeDER_TssBlob\fR returns TSS_SUCCESS on success, otherwise one of the following values are returned:
 
63
.TP
 
64
.SM TSS_E_BAD_PARAMETER
 
65
.TP
 
66
.SM TSS_E_INTERNAL_ERROR - An error occurred internal to the TSS.
 
67
.SH "CONFORMING TO"
 
68
 
 
69
.PP
 
70
\fBTspi_EncodeDER_TssBlob\fR conforms to the Trusted Computing Group Software Specification Version 1.2
 
71
.SH "SEE ALSO"
 
72
 
 
73
.PP
 
74
\fBTspi_DecodeBER_TssBlob\fR(3).
 
75
 
 
76
 
 
77