whyoleg / cryptography-kotlin

Kotlin Multiplatform cryptography / crypto library
https://whyoleg.github.io/cryptography-kotlin/
Apache License 2.0
254 stars 13 forks source link

Secret/Shared Key generation using ECDSA #32

Open na2axl opened 2 months ago

na2axl commented 2 months ago

Hey there,

Using the ECDSA algorithm, and given Bob public key and Alice private key, how can I generate a secret key between Bob and Alice using this library?

It seems that the library doesn't provide access to curve parameters so I cannot generate a secret key myself, and there is not public API for that.

Is it planned in the near future or do you have an advice for me to achieve that?

whyoleg commented 2 months ago

Hey! ECDH support is planned in the upcoming release, no specific date for now, unfortunately.

Access to curve parameters is not planned at this moment, and overall, there are not a lot of use-cases for this on current moment.