spacemonkeygo / openssl

OpenSSL bindings for Go
http://godoc.org/github.com/spacemonkeygo/openssl
Apache License 2.0
473 stars 236 forks source link

Compare two keys #125

Open dignifiedquire opened 5 years ago

dignifiedquire commented 5 years ago

It would be great to have a Equal method to allow to compare keys, as currently they have to be serialized, allocating in go, making any comparisons very expensive.

dignifiedquire commented 5 years ago

probably using https://www.openssl.org/docs/man1.0.2/man3/EVP_PKEY_cmp.html