% tss2_decrypt(1) tpm2-tools | General Commands Manual % % APRIL 2019
tss2_decrypt(1) - decrypts data
tss2_decrypt [OPTIONS]
tss2_decrypt(1) - This command decrypts data that was encrypted using tss2_encrypt using the TPM decryption schemes as specified in the cryptographic profile (cf., fapi-profile(5)).
These are the available options:
-
-p, --keyPath=STRING:
Identifies the decryption key.
-
-i, --cipherText=FILENAME or - (for stdin):
The JSON-encoded cipherText.
-
-f, --force:
Force Overwriting the output file.
-
-o, --plainText=FILENAME or - (for stdout):
Returns the decrypted data. Optional parameter.
tss2_decrypt --keyPath=HS/SRK/myRSACrypt --cipherText=cipherText.file --plainText=plainText.file
0 on success or 1 on failure.