1tss2_getrandom(1) General Commands Manual tss2_getrandom(1)
2
3
4
6 tss2_getrandom(1) - # SYNOPSIS
7
8 tss2_getrandom [OPTIONS]
9
11 tss2_getrandom(1) - This command uses the TPM to create an array of
12 random bytes.
13
15 These are the available options:
16
17 · -n, --numBytes INTEGER:
18
19 The number of bytes requested by the caller.
20
21 · -f, --force:
22
23 Force overwriting the output file.
24
25 · -o, --data FILENAME or - (for stdout):
26
27 The returned random bytes.
28
30 This collection of options are common to all tss2 programs and provide
31 information that many users may expect.
32
33 · -h, --help [man|no-man]: Display the tools manpage. By default, it
34 attempts to invoke the manpager for the tool, however, on failure
35 will output a short tool summary. This is the same behavior if the
36 “man” option argument is specified, however if explicit “man” is re‐
37 quested, the tool will provide errors from man on stderr. If the
38 “no-man” option if specified, or the manpager fails, the short op‐
39 tions will be output to stdout.
40
41 To successfully use the manpages feature requires the manpages to be
42 installed or on MANPATH, See man(1) for more details.
43
44 · -v, --version: Display version information for this tool, supported
45 tctis and exit.
46
48 tss2_getrandom --numBytes 20 -data - | hexdump -C
49
51 0 on success or 1 on failure.
52
54 Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
55
57 See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
58
59
60
61tpm2-tools APRIL 2019 tss2_getrandom(1)