python/cryptographyについて、ここに記述してください。
https://cryptography.io/en/latest/
https://cryptography.io/en/latest/hazmat/bindings/
1. hazmat
Danger This is a “Hazardous Materials” module. You should ONLY use it if you’re 100% absolutely sure that you know what you’re doing because this module is full of land mines, dragons, and dinosaurs with laser guns.
2. _openssl.so
ちょっと違うな。 -- ToshinoriMaeno 2015-11-21 05:08:52
/usr/local/lib/python2.7/site-packages/cryptography-1.1-py2.7-linux-i686.egg/cryptography/hazmat/bindings にて
$ readelf -s _openssl.so | grep EC_curve 195: 00000000 0 NOTYPE GLOBAL DEFAULT UND EC_curve_nid2nist 2416: 0006a030 32 FUNC LOCAL DEFAULT 11 _cffi_d_EC_curve_nid2nist 2417: 0006a050 122 FUNC LOCAL DEFAULT 11 _cffi_f_EC_curve_nid2nist 3302: 00000000 0 NOTYPE GLOBAL DEFAULT UND EC_curve_nid2nist
tmaeno@tmaeno:~/anaconda2/lib/python2.7/site-packages/cryptography-1.0.2-py2.7-linux-i686.egg/cryptography/hazmat/bindings$
readelf -s _openssl.so | grep EC_curve 201: 00000000 200 FUNC GLOBAL DEFAULT UND EC_curve_nid2nist 1990: 0003a660 35 FUNC LOCAL DEFAULT 10 _cffi_d_EC_curve_nid2nist 1991: 0003a690 135 FUNC LOCAL DEFAULT 10 _cffi_f_EC_curve_nid2nist 3283: 00000000 200 FUNC GLOBAL DEFAULT UND EC_curve_nid2nist
cryptography-1.0.2を入れなおしてみたら、 以下のように、OpenSSLをimportできるようになった。
$ python Python 2.7.10 (default, Nov 21 2015, 11:29:15) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import OpenSSL >>>