tss2_encrypt(1)
β¨ tss2_encrypt(1) β¨
okay bestie, welcome to the page for tss2_encrypt(1) from the General Commands Manual β it's giving secure-data-glow-up energy, and we're gonna walk through every single detail together π
π NAME π
tss2_encrypt(1) - encrypts data. periodt. π
π§ SYNOPSIS π§
tss2_encrypt [OPTIONS]
π SEE ALSO π
fapi-config(5)β use this to adjust Fapi parameters like the used cryptographic profile and TCTI or directories for the Fapi metadata storages. π οΈfapi-profile(5)β use this to determine the cryptographic algorithms and parameters for all keys and operations of a specific TPM interaction, like the name hash algorithm, the asymmetric signature algorithm, scheme and parameters, and PCR bank selection. π
πΈ DESCRIPTION πΈ
tss2_encrypt(1) is the command that encrypts the provided data for a target key using the TPM encryption schemes as specified in the cryptographic profile (cf., fapi-profile(5)). literally its whole main character job π
π OPTIONS π
These are the available options, bestie:
-p,--keyPath=STRINGβ Identifies the encryption key. π-f,--forceβ Force overwriting the output file. (yes, force it β you've been warned-ish π)-i,--plainText=FILENAMEor-(for stdin) β The data to be encrypted. π-o,--cipherText=FILENAMEor-(for stdout) β Returns the JSON-encoded ciphertext. β¨
π«Ά COMMON OPTIONS π«Ά
This collection of options is common to all tss2 programs and provides information that many users may expect:
-h,--help [man|no-man]β Display the tool's manpage. By default, it attempts to invoke the manpager for the tool; however, on failure it will output a short tool summary. This is the same behavior if the βmanβ option argument is specified, but if explicit βmanβ is requested, the tool will provide errors frommanon stderr. If the βno-manβ option is specified, or the manpager fails, the short options will be output to stdout. To successfully use the manpages feature, the manpages need to be installed or onMANPATH; seeman(1)for more details. πβ¨-v,--versionβ Display version information for this tool, supported tctis and exit. π
π EXAMPLE π
Run it like this, no cap:
tss2_encrypt --keyPath=HS/SRK/myRSACrypt --plainText=plainText.file --cipherText=cipherText.file
β RETURNS β
0 on success or 1 on failure. that's the whole vibe check πβ
π BUGS π
Github Issues. π«‘
π£ HELP π£
See the Mailing List. π
π License π
This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). slay, legally π«
mwah π source/version: tpm2-tools, date: APRIL 2019, and this is the tss2_encrypt(1) page β bye bestie! π
π¦ where this page comes from
- arch rolling: tpm2-tools 5.8-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms