3 ms·
I don't understand why this is built on OpenSSL. I looked (not carefully! Very quickly!) and it looks like most of the cgo calls just hit OpenSSL's bignum inter
by tptacek 8y ago
I don't understand why this is built on OpenSSL. I looked (not carefully! Very quickly!) and it looks like most of the cgo calls just hit OpenSSL's bignum interface. But Go already has a decent bignum interface, and for that matter curve implementations with rudiments sufficient to build additional curve support. A Go crypto library with an OpenSSL dependency is somewhat un-idiomatic.
What does OpenSSL provide that Go doesn't have? I'm asking because I'm sure there's something (or you wouldn't have done this), and I'm curious.
- tuxxy 8y agoGo supports Bignums, this is true. I love Go's interfaces, but it doesn't support constant time arithmetic for all of the operations[0]. Go also doesn't support all the curves we need (mainly secp256k1). We also have a `Point` struct that hits the OpenSSL EC_POINT API. Go only supports constant time arithmetic for a few specific curves (also not secp256k1). 0. https://github.com/golang/go/issues/20654 https://github.com/golang/go/issues/20654