switch from PyCrypto to cryptography lib
Change the cryptographic library used in the following layers:
* IPSec
* TLS
* Dot11
Notes:
* Fix the WEP key in regression.uts: Should be a 40 bits key (5 ASCII)
and 24 bits nonce for 64 bits WEP. The key was 8 ASCII => 88 bits
in total
* AES-GCM and AES-CMAC algorithms are now native in cryptography: add
tests in ipsec.uts
* cryptography only supports Python 2.6+
* Fix the docstring for the pad method
Removed:
* MD2 and MD4 hash algorithms for RSA in tls/crypto/pkcs1.py
* AES-XCBC-96 not supported by cryptography.
Signed-off-by:
Thomas Faivre <thomas.faivre@6wind.com>
Showing
- .travis/install.sh 1 addition, 12 deletions.travis/install.sh
- doc/scapy/installation.rst 2 additions, 2 deletionsdoc/scapy/installation.rst
- scapy/layers/dot11.py 19 additions, 7 deletionsscapy/layers/dot11.py
- scapy/layers/ipsec.py 169 additions, 184 deletionsscapy/layers/ipsec.py
- scapy/layers/tls/__init__.py 2 additions, 2 deletionsscapy/layers/tls/__init__.py
- scapy/layers/tls/cert.py 12 additions, 3 deletionsscapy/layers/tls/cert.py
- scapy/layers/tls/crypto/pkcs1.py 58 additions, 279 deletionsscapy/layers/tls/crypto/pkcs1.py
- test/ipsec.uts 584 additions, 33 deletionstest/ipsec.uts
- test/regression.uts 2 additions, 2 deletionstest/regression.uts
Loading
Please register or sign in to comment