RustCrypto/elliptic-curves

Using ECDSA key pair for ECDH

vitalyPru opened this issue · 1 comments

The ecdh module assumes only using EphemeralSecret as private key for ECDH operation.
And the only way to create EphemeralSecret is to create random number.
I think it make sense to allow to create EphemeralSecret from ESDCA private key or directly from byte array.

I found the answer in getSharedSecret() #687.