whyoleg / cryptography-kotlin

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

Secret/Shared Key generation using ECDSA #32

Closed na2axl closed 1 month ago

na2axl commented 6 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 6 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.

whyoleg commented 1 month ago

0.4.0 was just released! PBKDF2, ECDH and HKDF are now available via secret derivation and shared secret derivation APIs.