python:samba: add a generic arcfour_encrypt() helper function
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Jan 2016 12:52:44 +0000 (13:52 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 5 Feb 2016 09:03:34 +0000 (10:03 +0100)
commit4e6d6c7a177b9b2f3d9441af61a11b530bfc9254
tree7bd793d76d3eeb0c7ea604d5cd5220e8096f7843
parentffd18e18d6b2e88399784754aa2eb33b0e82fe45
python:samba: add a generic arcfour_encrypt() helper function

This works with Crypto.Cipher.ARC4 (from python*-crypto) and
fallback to M2Crypto.RC4.RC4 (from [python*-]m2crypto).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11699

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit 078a7ae71081c24991bb34c818cc2c763eefad99)
python/samba/__init__.py