1tss2_encrypt(1) General Commands Manual tss2_encrypt(1)
2
3
4
6 tss2_encrypt(1) - encrypts data
7
9 tss2_encrypt [OPTIONS]
10
12 tss2_encrypt(1) - This command encrypts the provided data for a target
13 key using the TPM encryption schemes as specified in the crypto pro‐
14 file.
15
17 These are the available options:
18
19 · -p, --keyPath STRING:
20
21 Identifies the encryption key.
22
23 · -f, --force:
24
25 Force overwriting the output file.
26
27 · -i, --plainText FILENAME or - (for stdin):
28
29 The data to be encrypted.
30
31 · -o, --cipherText FILENAME or - (for stdout):
32
33 Returns the JSON-encoded ciphertext.
34
36 This collection of options are common to all tss2 programs and provide
37 information that many users may expect.
38
39 · -h, --help [man|no-man]: Display the tools manpage. By default, it
40 attempts to invoke the manpager for the tool, however, on failure
41 will output a short tool summary. This is the same behavior if the
42 “man” option argument is specified, however if explicit “man” is re‐
43 quested, the tool will provide errors from man on stderr. If the
44 “no-man” option if specified, or the manpager fails, the short op‐
45 tions will be output to stdout.
46
47 To successfully use the manpages feature requires the manpages to be
48 installed or on MANPATH, See man(1) for more details.
49
50 · -v, --version: Display version information for this tool, supported
51 tctis and exit.
52
54 tss2_encrypt --keyPath HS/SRK/myRSACrypt --plainText plainText.file --cipherText cipherText.file
55
57 0 on success or 1 on failure.
58
60 Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
61
63 See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
64
65
66
67tpm2-tools APRIL 2019 tss2_encrypt(1)