-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve TPM provider #168
Improve TPM provider #168
Conversation
This commit includes a couple of fixes in the TPM provider. * the TSS crate used has been updated to the latest one, including a few functionality updates; this now allows the session hash algorithm and the cipher used for sessions and primary key * more control over the format of the authentication value is now offered to admins; more precisely, they can provide string versions of hex values, prefixed by "hex:" Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
# be empty, however we strongly suggest that you use a secure passcode. | ||
# To align with TPM tooling, PARSEC allows "owner_hierarchy_auth" to have a prefix indicating a string value, | ||
# e.g. "str:password", or to represent a string version of a hex value, e.g. "hex:1a2b3c". If no prefix is | ||
# provided, the value is considered to be a string. | ||
#owner_hierarchy_auth = "password" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we set str:password
as default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could, but as stated above it's not really needed
@@ -16,4 +16,4 @@ manager_type = "OnDisk" | |||
provider_type = "Tpm" | |||
key_info_manager = "on-disk-manager" | |||
tcti = "mssim" | |||
owner_hierarchy_auth = "tpm_pass" | |||
owner_hierarchy_auth = "hex:74706d5f70617373" # "tpm_pass" in hex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that different from "str:tpm_pass"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it isn't, just wanted to test it.
This commit includes a couple of fixes in the TPM provider.
functionality updates; this now allows the session hash algorithm and
the cipher used for sessions and primary key
offered to admins; more precisely, they can provide string versions of
hex values, prefixed by "hex:"
Signed-off-by: Ionut Mihalcea ionut.mihalcea@arm.com
Fixes #120
Fixes #121