Include correct usage and show decrypt option

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
This commit is contained in:
Sergio Arroutbi 2022-09-14 16:23:43 +02:00
parent 9dd15aaac1
commit fd27ca2d20
No known key found for this signature in database
GPG key ID: 5FBD8D7D35E2839C

View file

@ -227,15 +227,16 @@ fn print_summary() {
fn print_help() {
eprintln!(
"
Usage: clevis encrypt tpm2 CONFIG < PLAINTEXT > JWE
Usage (encryption): clevis encrypt tpm2 CONFIG < PLAINTEXT > JWE
Usage (decryption): clevis decrypt tpm2 CONFIG < JWE > PLAINTEXT
Encrypts using a TPM2.0 chip binding policy
Encrypts or decrypts using a TPM2.0 chip binding policy
This command uses the following configuration properties:
hash: <string> Hash algorithm used in the computation of the object name (default: sha256)
key: <string> Algorithm type for the generated key (options: eecc, rsa; default: ecc)
key: <string> Algorithm type for the generated key (options: ecc, rsa; default: ecc)
pcr_bank: <string> PCR algorithm bank to use for policy (default: sha256)