Issue1: you must provide a valid hash length input. I.e. you need to provide 20 or 32 bytes as input.
Then it should work. Or you let OpenSSL perform a hashing operation first.
Issue2: The engine currently does not support ECDH. I don't know if TPM's ECDH scheme and OpenSSL's ECDH scheme are compatible to begin with. That would need to be investigated.
Issue1: you must provide a valid hash length input. I.e. you need to provide 20 or 32 bytes as input. Then it should work. Or you let OpenSSL perform a hashing operation first.
Issue2: The engine currently does not support ECDH. I don't know if TPM's ECDH scheme and OpenSSL's ECDH scheme are compatible to begin with. That would need to be investigated.
Originally posted by @AndreasFuchsSIT in https://github.com/tpm2-software/tpm2-tss-engine/issues/178#issuecomment-633492417