temporary ec math abstracted API. once we migrate to non-openssl code, I suspect the API will change/improve.