Skip to content
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

ECDSA operations fails #261

Open
jingkang99 opened this issue Oct 27, 2022 · 1 comment
Open

ECDSA operations fails #261

jingkang99 opened this issue Oct 27, 2022 · 1 comment

Comments

@jingkang99
Copy link

creates an ECDSA key using the TPM, signs a data file using the TPM and validates the signature:

tpm2tss-genkey -a ecdsa mykey
OK

openssl pkeyutl -engine tpm2tss -keyform engine -inkey mykey -sign -in mydata -out mysig
engine "tpm2tss" set.
Public Key operation error
140354988619072:error:8007806B:tpm2-tss-engine:ecdsa_sign:Unknown padding scheme requested:src/tpm2-tss-engine-ecc.c:374:
140354988619072:error:8007406F:tpm2-tss-engine:esys_ctx_free:Some unknown error occurred:src/tpm2-tss-engine-common.c:106:


cat mykey

-----BEGIN TSS2 PRIVATE KEY-----
MIHwBgZngQUKAQOgAwEB/wIEQAAAAQRYAFYAIwALAAQEcgAAABAAEAADABAAIJHe
XjpJJKTrljljplP8NPh5CKZ6EKVJ1sfAg9R32sF2ACDoGKhJO/bqlnh0wbzcaboG
xM88611ygDykygksLdfuiASBgAB+ACDRA99DXQ6ndEbXTrl3arAkrtAyPSZeH9F8
gHQd9Juz2gAQmYWAEacFreB2AKGL5DivZNUVl8jiiP9lLwn1EO7jlEelb6eySEgl
LTNJlEAY0kmxFGv8q4+7Xa9ksPKmI7owM7oDx+llIULzMB2Ps3rDYBUhra1b6HpE
4l4g

@AndreasFuchsTPM
Copy link
Member

This is weird.
P.S. the key you posted is incomplete. Would you mind sending the complete key so I can decode it and have a look ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants