tpm2-software / tpm2-tss-engine

OpenSSL Engine for TPM2 devices
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
151 stars 100 forks source link

Add ECDH support if compatible with OpenSSL ECDH scheme. #206

Closed abeltrano closed 3 years ago

abeltrano commented 3 years ago

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