Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve openssl dependency handling #42

Open
konradkonrad opened this issue Mar 15, 2016 · 0 comments
Open

Improve openssl dependency handling #42

konradkonrad opened this issue Mar 15, 2016 · 0 comments
Assignees

Comments

@konradkonrad
Copy link

Context is on gitter: https://gitter.im/ethereum/pyethapp?at=56e7bb0f3194fbd110971f04

Hi Everyone, So the segmentation fault that I'm experiencing described above is due to openssl library that comes with centos 7 . The command openssl ecparam -list_curves
secp384r1 : NIST/SECG curve over a 384 bit prime field
secp521r1 : NIST/SECG curve over a 521 bit prime field
prime256v1: X9.62/SECG curve over a 256 bit prime field
now pydev2p2 in crypto.py sets the curve = 'secp256k1' so when ecc.py (from pyelliptic) calls self.curve = OpenSSL.get_curve(curve)
you get 714 (I think this is misleading because the curve is not implemented in the library or perhaps disabled) and the function raw_check_key which calls key = OpenSSL.EC_KEY_new_by_curve_name(curve) returns a 'None' which is the equivalent C to NULL since openssl is a wrapper to the c-shared library. The check that is done to raise exception is if ( key==0) which is not the same as (key == None) . My suggestion would be to actually test whether openssl that include the curves required
during the init of pyethapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants