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=FILENAME or - (for stdin) β€” The data to be encrypted. πŸ“
  • -o, --cipherText=FILENAME or - (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 from man on 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 on MANPATH; see man(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