% tss2_encrypt(1) tpm2-tools | General Commands Manual % % APRIL 2019

NAME

tss2_encrypt(1) - encrypts data

SYNOPSIS

tss2_encrypt [OPTIONS]

common fapi references

DESCRIPTION

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

OPTIONS

These are the available options:

  • -p, --keyPath=STRING:

    Identifies the encryption key.

  • -f, --force:

    Force overwriting the output file.

  • -i, --plainText=FILENAME or - (for stdin):

    The data to be encrypted.

  • -o, --cipherText=FILENAME or - (for stdout):

    Returns the JSON-encoded ciphertext.

common tss2 options

EXAMPLE

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

RETURNS

0 on success or 1 on failure.

footer