Golang support for ECDH

Does golang have a package that supports ecdh?

I think so :slight_smile: https://github.com/wsddn/go-ecdh or https://pkg.go.dev/github.com/aead/ecdh?tab=doc

I did come across this, but is there anything in golang/go? We were looking for a solution using only golang/go

Both of the linked libraries seem to be implemented in pure go.

I think he’s asking about implementation in the standard library. Unfortunately, you won’t find anything like that there.

To be honest… I very often prefer external solutions, as those enable me to update the library in case of bugs, rather than having to update my toolchain!

how often do you have bugs in stdlib that it’s an issue for you? :slight_smile:

Not that I had them, but this is a concern our review team often raises, and I got used to this and follow it.

Still I try to weigh, if I have to choose between stdlib and an aged library, piling issues in the tracker without any response by the maintainers, my choice is obvious… Though when the lib is actively maintained, I might prefer it over stdlib.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.