Skip to content
Snippets Groups Projects
  • Thomas Faivre's avatar
    switch from PyCrypto to cryptography lib · c24298b9
    Thomas Faivre authored
    
    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: default avatarThomas Faivre <thomas.faivre@6wind.com>
    c24298b9