1tpm2_commit(1)              General Commands Manual             tpm2_commit(1)
2
3
4

NAME

6       tpm2_commit(1)  -  Performs  the first part of an ECC anonymous signing
7       operation.
8

SYNOPSIS

10       tpm2_commit [OPTIONS]
11

DESCRIPTION

13       tpm2_commit(1) - Performs the first part of an  ECC  anonymous  signing
14       operation.   The TPM will perform the point multiplications on the pro‐
15       vided points and return intermediate signing values.  The  signing  key
16       is  an  ECC key.  The key cannot be a sign+decrypt key and must have an
17       anonymous signing scheme.  TPM_ALG_ECDAA is the only  supported  anony‐
18       mous scheme.
19

OPTIONS

21ARGUMENT=FILE:
22
23         Specify  the  input data used to derive the x coordinate of the base‐
24         point.
25
26--basepoint-y=FILE:
27
28         Specify the y coordinate of the basepoint.
29
30--eccpoint-P=FILE:
31
32         Specify a point on the curve used by sign handle.
33
34--eccpoint-K=FILE:
35
36         Output ECC point K ≔ [ds](x2, y2).
37
38--eccpoint-L=FILE:
39
40         Output ECC point L ≔ [r](x2, y2).
41
42-u, --public=FILE:
43
44         Output ECC point E ≔ [r]P1.
45
46-t, --counter=FILE
47
48         Specify file path to save the least-significant  16  bits  of  commit
49         count.
50
51-p, --auth=AUTH:
52
53         The authorization value for the created object.
54
55-c, --context=FILE:
56
57         Context  object  pointing  to the the key used for signing.  Either a
58         file or a handle number.  See section "Context Object Format".
59
60   References

Algorithm Specifiers

62       Options that take algorithms support "nice-names".
63
64       There are two major algorithm specification string classes, simple  and
65       complex.  Only certain algorithms will be accepted by the TPM, based on
66       usage and conditions.
67
68   Simple specifiers
69       These are strings with no additional specification data.  When creating
70       objects,  non-specified  portions of an object are assumed to defaults.
71       You can find the list of known "Simple Specifiers Below".
72
73   Asymmetric
74       • rsa
75
76       • ecc
77
78   Symmetric
79       • aes
80
81       • camellia
82
83   Hashing Algorithms
84       • sha1
85
86       • sha256
87
88       • sha384
89
90       • sha512
91
92       • sm3_256
93
94       • sha3_256
95
96       • sha3_384
97
98       • sha3_512
99
100   Keyed Hash
101       • hmac
102
103       • xor
104
105   Signing Schemes
106       • rsassa
107
108       • rsapss
109
110       • ecdsa
111
112       • ecdaa
113
114       • ecschnorr
115
116   Asymmetric Encryption Schemes
117       • oaep
118
119       • rsaes
120
121       • ecdh
122
123   Modes
124       • ctr
125
126       • ofb
127
128       • cbc
129
130       • cfb
131
132       • ecb
133
134   Misc
135       • null
136
137   Complex Specifiers
138       Objects, when specified for creation by the TPM,  have  numerous  algo‐
139       rithms  to  populate  in the public data.  Things like type, scheme and
140       asymmetric details, key size, etc.  Below is  the  general  format  for
141       specifying this data: <type>:<scheme>:<symmetric-details>
142
143   Type Specifiers
144       This  portion  of the complex algorithm specifier is required.  The re‐
145       maining scheme and symmetric details will default  based  on  the  type
146       specified and the type of the object being created.
147
148       • aes - Default AES: aes128
149
150       • aes128<mode>  - 128 bit AES with optional mode (ctr|ofb|cbc|cfb|ecb).
151         If mode is not specified, defaults to null.
152
153       • aes192<mode> - Same as aes128<mode>, except for a 192 bit key size.
154
155       • aes256<mode> - Same as aes128<mode>, except for a 256 bit key size.
156
157       • ecc - Elliptical Curve, defaults to ecc256.
158
159       • ecc192 - 192 bit ECC
160
161       • ecc224 - 224 bit ECC
162
163       • ecc256 - 256 bit ECC
164
165       • ecc384 - 384 bit ECC
166
167       • ecc521 - 521 bit ECC
168
169       • rsa - Default RSA: rsa2048
170
171       • rsa1024 - RSA with 1024 bit keysize.
172
173       • rsa2048 - RSA with 2048 bit keysize.
174
175       • rsa4096 - RSA with 4096 bit keysize.
176
177   Scheme Specifiers
178       Next, is an optional field, it can be skipped.
179
180       Schemes are usually Signing Schemes or Asymmetric  Encryption  Schemes.
181       Most signing schemes take a hash algorithm directly following the sign‐
182       ing scheme.  If the hash algorithm is missing, it defaults  to  sha256.
183       Some take no arguments, and some take multiple arguments.
184
185   Hash Optional Scheme Specifiers
186       These  scheme  specifiers are followed by a dash and a valid hash algo‐
187       rithm, For example: oaep-sha256.
188
189       • oaep
190
191       • ecdh
192
193       • rsassa
194
195       • rsapss
196
197       • ecdsa
198
199       • ecschnorr
200
201   Multiple Option Scheme Specifiers
202       This scheme specifier is followed by a count  (max  size  UINT16)  then
203       followed by a dash(-) and a valid hash algorithm.  * ecdaa For example,
204       ecdaa4-sha256.  If no count is specified, it defaults to 4.
205
206   No Option Scheme Specifiers
207       This scheme specifier takes NO arguments.  * rsaes
208
209   Symmetric Details Specifiers
210       This field is optional, and defaults based on the type of object  being
211       created  and it's attributes.  Generally, any valid Symmetric specifier
212       from the Type Specifiers list should work.  If not specified, an  asym‐
213       metric objects symmetric details defaults to aes128cfb.
214
215   Examples
216   Create an rsa2048 key with an rsaes asymmetric encryption scheme
217       tpm2_create -C parent.ctx -G rsa2048:rsaes -u key.pub -r key.priv
218
219   Create an ecc256 key with an ecdaa signing scheme with a count of 4
220       and sha384 hash
221
222       /tpm2_create -C parent.ctx -G ecc256:ec‐
223       daa4-sha384 -u key.pub -r key.priv cryptographic algorithms ALGORITHM.
224

COMMON OPTIONS

226       This collection of options are common to many programs and provide  in‐
227       formation that many users may expect.
228
229-h,  --help=[man|no-man]:  Display the tools manpage.  By default, it
230         attempts to invoke the manpager for the  tool,  however,  on  failure
231         will  output  a short tool summary.  This is the same behavior if the
232         "man" option argument is specified, however if explicit "man" is  re‐
233         quested,  the  tool  will  provide errors from man on stderr.  If the
234         "no-man" option if specified, or the manpager fails,  the  short  op‐
235         tions will be output to stdout.
236
237         To  successfully use the manpages feature requires the manpages to be
238         installed or on MANPATH, See man(1) for more details.
239
240-v, --version: Display version information for this  tool,  supported
241         tctis and exit.
242
243-V,  --verbose:  Increase the information that the tool prints to the
244         console during its execution.  When using this option  the  file  and
245         line number are printed.
246
247-Q, --quiet: Silence normal tool output to stdout.
248
249-Z, --enable-errata: Enable the application of errata fixups.  Useful
250         if an errata fixup needs to be applied to commands sent to  the  TPM.
251         Defining  the environment TPM2TOOLS_ENABLE_ERRATA is equivalent.  in‐
252         formation many users may expect.
253

TCTI Configuration

255       The TCTI or "Transmission Interface"  is  the  communication  mechanism
256       with  the TPM.  TCTIs can be changed for communication with TPMs across
257       different mediums.
258
259       To control the TCTI, the tools respect:
260
261       1. The command line option -T or --tcti
262
263       2. The environment variable: TPM2TOOLS_TCTI.
264
265       Note: The command line option always overrides  the  environment  vari‐
266       able.
267
268       The current known TCTIs are:
269
270       • tabrmd      -     The     resource     manager,     called     tabrmd
271         (https://github.com/tpm2-software/tpm2-abrmd).  Note that tabrmd  and
272         abrmd as a tcti name are synonymous.
273
274       • mssim  - Typically used for communicating to the TPM software simula‐
275         tor.
276
277       • device - Used when talking directly to a TPM device file.
278
279       • none - Do not initalize a connection with the TPM.  Some tools  allow
280         for off-tpm options and thus support not using a TCTI.  Tools that do
281         not support it will error when attempted to be used  without  a  TCTI
282         connection.   Does  not  support ANY options and MUST BE presented as
283         the exact text of "none".
284
285       The arguments to either the command  line  option  or  the  environment
286       variable are in the form:
287
288       <tcti-name>:<tcti-option-config>
289
290       Specifying  an  empty  string  for  either the <tcti-name> or <tcti-op‐
291       tion-config> results in the default being used for that portion respec‐
292       tively.
293
294   TCTI Defaults
295       When  a  TCTI  is not specified, the default TCTI is searched for using
296       dlopen(3) semantics.  The tools will  search  for  tabrmd,  device  and
297       mssim  TCTIs  IN THAT ORDER and USE THE FIRST ONE FOUND.  You can query
298       what TCTI will be chosen as the default by using the -v option to print
299       the  version information.  The "default-tcti" key-value pair will indi‐
300       cate which of the aforementioned TCTIs is the default.
301
302   Custom TCTIs
303       Any TCTI that implements the dynamic TCTI interface can be loaded.  The
304       tools internally use dlopen(3), and the raw tcti-name value is used for
305       the lookup.  Thus, this could be a path to the shared library, or a li‐
306       brary name as understood by dlopen(3) semantics.
307

TCTI OPTIONS

309       This collection of options are used to configure the various known TCTI
310       modules available:
311
312device: For the device TCTI, the TPM character device file for use by
313         the device TCTI can be specified.  The default is /dev/tpm0.
314
315         Example:    -T   device:/dev/tpm0   or   export   TPM2TOOLS_TCTI="de‐
316         vice:/dev/tpm0"
317
318        mssim: For the mssim TCTI, the domain name or  IP  address  and  port
319         number  used  by  the  simulator  can  be specified.  The default are
320         127.0.0.1 and 2321.
321
322         Example: -T mssim:host=localhost,port=2321  or  export  TPM2TOOLS_TC‐
323         TI="mssim:host=localhost,port=2321"
324
325        abrmd:  For  the abrmd TCTI, the configuration string format is a se‐
326         ries of simple key value pairs separated by a  ','  character.   Each
327         key and value string are separated by a '=' character.
328
329         • TCTI abrmd supports two keys:
330
331           1. 'bus_name'  :  The  name  of  the  tabrmd  service on the bus (a
332              string).
333
334           2. 'bus_type' : The type of the dbus instance (a string) limited to
335              'session' and 'system'.
336
337         Specify  the tabrmd tcti name and a config string of bus_name=com.ex‐
338         ample.FooBar:
339
340         \--tcti=tabrmd:bus_name=com.example.FooBar
341
342         Specify the default (abrmd) tcti and a config string of bus_type=ses‐
343         sion:
344
345         \--tcti:bus_type=session
346
347         NOTE:  abrmd  and tabrmd are synonymous.  the various known TCTI mod‐
348         ules.
349

EXAMPLES

351              tpm2_createprimary -C o -c prim.ctx -Q
352
353              tpm2_create -C prim.ctx -c key.ctx -u key.pub -r key.priv -G ecc256:ecdaa
354
355              tpm2_commit -c key.ctx -t count.er \
356              --eccpoint-K K.bin --eccpoint-L L.bin -u E.bin
357

Returns

359       Tools can return any of the following codes:
360
361       • 0 - Success.
362
363       • 1 - General non-specific error.
364
365       • 2 - Options handling error.
366
367       • 3 - Authentication error.
368
369       • 4 - TCTI related error.
370
371       • 5 - Non supported scheme.  Applicable to tpm2_testparams.
372

BUGS

374       Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
375

HELP

377       See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
378
379
380
381tpm2-tools                                                      tpm2_commit(1)
Impressum