Skip to content

Commit fd72f72

Browse files
committed
Revert ecc alg change
Reverting changes to tpm2_createprimary algorithm to speed up taking ownership, may be re-evaluated at a later time. Changeset also includes minor fix to correctly determine ownership.
1 parent 2ed90a8 commit fd72f72

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • recipes-openxt/xenclient-tpm-scripts/xenclient-tpm-scripts

recipes-openxt/xenclient-tpm-scripts/xenclient-tpm-scripts/tpm-functions

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ TPM_ALG_SYMCIPHER=0x25
104104

105105
handle_type() {
106106
case "$1" in
107-
${OXT_HANDLE_SHA256}) echo "ecc" ;;
108-
${OXT_HANDLE_SHA1}) echo "ecc" ;;
107+
${OXT_HANDLE_SHA256}) echo "rsa" ;;
108+
${OXT_HANDLE_SHA1}) echo "rsa" ;;
109109
*) echo "INVALID_TYPE" ;;
110110
esac
111111
}
@@ -337,7 +337,7 @@ tpm_is_owned() {
337337
local tpm2=$?
338338
if [ "${tpm2}" -eq 0 ];
339339
then
340-
tpm2_getcap properties-variable | grep -q 'ownerAuthSet:[[:space:]]\+set'
340+
tpm2_getcap properties-variable | grep -q 'ownerAuthSet:[[:space:]]*1'
341341
ret=$?
342342
if [ "${ret}" -eq 0 ]; then
343343
state=1

0 commit comments

Comments
 (0)