-
Notifications
You must be signed in to change notification settings - Fork 105
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
Default params for tpm2_createprimary #52
Comments
Hi, Peter |
Right, using my TPM (SLB9665 v1.16) rsa2048:aes128 works but rsa2048:aes256 does not |
Yes, aes256 is not supported by slb9655. |
I have modified ptool to pass '-G rsa2048:aes128' to tpm2_createprimary and that seems to work ok. Then create a label: But the final step fails or |
In addtoken change |
Thanks, that got it working |
There's a few bugs here we should document:
@dwmw2 - this seems to line up with the issues you were having. |
I'm going to close this as we have concrete bugs filed. |
I have built tpm2_tools, tpm2_tss and tpm2_pkcs11 from the tip of their respective master branches.
When I run ptool init:
$ tpm2_ptool.py init --pobj-pin=mypobjpin --path=/tmp
I get the following error:
Could not execute tpm2_createprimary: ERROR: Tss2_Sys_CreatePrimary(0x2C4) - tpm:parameter(2):value is out of range or is not correct for the context
ERROR: Unable to run tpm2_createprimary
Recreating the cmd line ptool used I get:
$ tpm2_createprimary -p hex:55d15e8bff73005fd860d47191a4192087cfbfa09443c45320e47e4b8e912b64 -o /tmp/tmp4c6Z3M/context.out
This fails with the same error message. However if I specify the algorithm (rsa) the command succeeds
$ tpm2_createprimary -G rsa -p hex:55d15e8bff73005fd860d47191a4192087cfbfa09443c45320e47e4b8e912b64 -o /tmp/tmp4c6Z3M/context.out
Similarly, if I modify the ptool code to add '-G rsa' to the tpm2_createprimary cmd line it works.
The tpm2_createprimary man page suggests the default algorithm will be rsa if it is not specified but the behavior seems different.
Any ideas?
The text was updated successfully, but these errors were encountered: