summaryrefslogtreecommitdiffstats
path: root/ipatests/test_webui/data_netgroup.py
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-07-21 15:18:40 +0200
committerJan Cholasta <jcholast@redhat.com>2015-07-31 13:33:02 +0200
commita908be2785d4388e3c97c7cd543c817c527d73c9 (patch)
tree3f24d8d0d59787ccedf275ed5bebe12f182355cd /ipatests/test_webui/data_netgroup.py
parent4e18a62dd5adeb4bcb63aafc4bbe50d7a5c71b9c (diff)
downloadfreeipa-a908be2785d4388e3c97c7cd543c817c527d73c9.tar.gz
freeipa-a908be2785d4388e3c97c7cd543c817c527d73c9.tar.xz
freeipa-a908be2785d4388e3c97c7cd543c817c527d73c9.zip
Replace M2Crypto RC4 with python-cryptography ARC4
This patch removes the dependency on M2Crypto in favor for cryptography. Cryptography is more strict about the key size and doesn't support non-standard key sizes: >>> from M2Crypto import RC4 >>> from ipaserver.dcerpc import arcfour_encrypt >>> RC4.RC4(b'key').update(b'data') 'o\r@\x8c' >>> arcfour_encrypt(b'key', b'data') Traceback (most recent call last): ... ValueError: Invalid key size (24) for RC4. Standard key sizes 40, 56, 64, 80, 128, 192 and 256 are supported: >>> arcfour_encrypt(b'key12', b'data') '\xcd\xf80d' >>> RC4.RC4(b'key12').update(b'data') '\xcd\xf80d' http://cryptography.readthedocs.org/en/latest/hazmat/primitives/symmetric-encryption/#cryptography.hazmat.primitives.ciphers.algorithms.ARC4 https://fedorahosted.org/freeipa/ticket/5148 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipatests/test_webui/data_netgroup.py')
0 files changed, 0 insertions, 0 deletions