Skip to content

Commit

Permalink
Merge pull request #21 from sarroutbi/usage_decrypt_option
Browse files Browse the repository at this point in the history
Correct usage and show decrypt option
  • Loading branch information
nullr0ute committed Jul 28, 2023
2 parents 9dd15aa + fd27ca2 commit ba331be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ba331be

Please sign in to comment.