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

NAME

6       tss2_encrypt(1) - encrypts data
7

SYNOPSIS

9       tss2_encrypt [OPTIONS]
10

SEE ALSO

12       fapi-config(5)  to  adjust  Fapi parameters like the used cryptographic
13       profile and TCTI or directories for the Fapi metadata storages.
14
15       fapi-profile(5) to determine the cryptographic algorithms  and  parame‐
16       ters for all keys and operations of a specific TPM interaction like the
17       name hash algorithm, the asymmetric signature algorithm, scheme and pa‐
18       rameters and PCR bank selection.
19

DESCRIPTION

21       tss2_encrypt(1)  - This command encrypts the provided data for a target
22       key using the TPM encryption schemes as specified in the  cryptographic
23       profile (cf., fapi-profile(5)).
24

OPTIONS

26       These are the available options:
27
28-p, --keyPath=STRING:
29
30         Identifies the encryption key.
31
32-f, --force:
33
34         Force overwriting the output file.
35
36-i, --plainText=FILENAME or - (for stdin):
37
38         The data to be encrypted.
39
40-o, --cipherText=FILENAME or - (for stdout):
41
42         Returns the JSON-encoded ciphertext.
43

COMMON OPTIONS

45       This  collection of options are common to all tss2 programs and provide
46       information that many users may expect.
47
48-h, --help [man|no-man]: Display the tools manpage.  By  default,  it
49         attempts  to  invoke  the  manpager for the tool, however, on failure
50         will output a short tool summary.  This is the same behavior  if  the
51         “man”  option argument is specified, however if explicit “man” is re‐
52         quested, the tool will provide errors from man  on  stderr.   If  the
53         “no-man”  option  if  specified, or the manpager fails, the short op‐
54         tions will be output to stdout.
55
56         To successfully use the manpages feature requires the manpages to  be
57         installed or on MANPATH, See man(1) for more details.
58
59-v,  --version:  Display version information for this tool, supported
60         tctis and exit.
61

EXAMPLE

63                tss2_encrypt --keyPath=HS/SRK/myRSACrypt --plainText=plainText.file --cipherText=cipherText.file
64

RETURNS

66       0 on success or 1 on failure.
67

BUGS

69       Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
70

HELP

72       See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
73
74
75
76tpm2-tools                        APRIL 2019                   tss2_encrypt(1)
Impressum