Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpm2_create: switch to use tpm2_password_util_from_optarg
Drop the -X argument and use tpm2_password_util_from_optarg. Update the manpage to include new string password formating options. Signed-off-by: William Roberts <william.c.roberts@intel.com>
- Loading branch information
William Roberts
committed
Aug 17, 2017
1 parent
a6e3a5e
commit 8ec1eb8
Showing
4 changed files
with
34 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
Passwords are interpreted in two forms, string and hex-string. A string password is not | ||
interpreted, and is directly used for authorization. A hex-string, is converted from | ||
a hexidecimal form into a byte array form, thus allowing passwords with non-printable | ||
and/or terminal un-friendly characters. | ||
|
||
By default passwords are assumed to be in the string form. Password form is specified | ||
with special prefix values, they are: | ||
str: - Used to indicate it is a raw string. Useful for escaping a password that starts | ||
with the "hex:" prefix. | ||
hex: - Used when specifying a password in hex string format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters