Commit Graph

4 Commits

Author SHA1 Message Date
Daniel Collins 620f195c65 Corrected ICV length for AES-GCM and AES-CCM in IPSec layer. Added un… (#269)
* Corrected ICV length for AES-GCM and AES-CCM in IPSec layer. Added unit tests to the ipsec campaign.

* Added travis support for pycrypto 2.7a1 combined modes.

* Updated documentation for pycrypto installation.
2016-10-26 10:03:37 +02:00
Robin Jarry 6057906368 Fix individual modules import
When using scapy as a third party library, we do not "benefit" from the
loading routine that puts all symbols in the __builtin__ namespace. This
implies that all modules must be "importable" without any errors for
undefined symbols.

This patch fixes importing every scapy module individually. Some
circular imports were fixed (between inet6 and dhcp6).

Most errors were detected by using pylint with the right configuration
(scapy produces a *lot* of errors). Other errors were detected with the
following shell script:

    export PYTHONPATH=".:$PYTHONPATH"
    for f in $(find scapy/ -name '*.py'); do
        f=${f%/__init__.py}
        module=$(echo ${f%.py} | sed 's,/,.,g')
        python -c "import $module; print $module"
    done

Also, replace all implicit relative imports by absolute imports to avoid
surprises with some python versions.

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
2016-08-01 18:42:31 +02:00
Robin Jarry def2cd8be2 ipsec: fixes for NAT-T and unit tests
--HG--
branch : ipsec
2014-06-17 18:37:05 +02:00
Robin Jarry f94c674503 layers: full implementation of ipsec (esp & ah)
This patch adds a full implementation of the IPSec layer in
scapy/layers/ipsec.py. See the module's doc string for instructions.
In order to support encryption/decryption and authentication, the
pycrypto library is required. If not found, only the NULL/NULL
algorithms will be available.

(almost) complete test suite can be found in test/ipsec.uts and can
be launched with:

  ./bin/UTscapy -m scapy/layers/ipsec.py -t test/ipsec.uts -f text -F

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>

--HG--
branch : ipsec
2014-03-28 12:03:01 +01:00