mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
bbeef554f2
Implement a small Python module that exposes arcfour_crypt_blob() function widely used in Samba C code. When Samba Python bindings are used to call LSA CreateTrustedDomainEx2, there is a need to encrypt trusted credentials with RC4 cipher. Current Samba Python code relies on Python runtime to provide RC4 cipher. However, in FIPS 140-2 mode system crypto libraries do not provide access RC4 cipher at all. According to Microsoft dochelp team, Windows is treating AuthenticationInformation blob encryption as 'plain text' in terms of FIPS 140-2, thus doing application-level encryption. Replace samba.arcfour_encrypt() implementation with a call to samba.crypto.arcfour_crypt_blob(). Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Simo Sorce <idra@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed Mar 15 01:30:24 CET 2017 on sn-devel-144 |
||
---|---|---|
.. | ||
aes_ccm_128_test.c | ||
aes_ccm_128.c | ||
aes_ccm_128.h | ||
aes_cmac_128_test.c | ||
aes_cmac_128.c | ||
aes_cmac_128.h | ||
aes_gcm_128_test.c | ||
aes_gcm_128.c | ||
aes_gcm_128.h | ||
aes_test.h | ||
aes.c | ||
aes.h | ||
arcfour.c | ||
arcfour.h | ||
crc32.c | ||
crc32.h | ||
crypto.h | ||
hmacmd5.c | ||
hmacmd5.h | ||
hmacmd5test.c | ||
hmacsha256.c | ||
hmacsha256.h | ||
md4.c | ||
md4.h | ||
md4test.c | ||
md5.c | ||
md5.h | ||
md5test.c | ||
py_crypto.c | ||
REQUIREMENTS | ||
rijndael-alg-fst.c | ||
rijndael-alg-fst.h | ||
sha256.c | ||
sha256.h | ||
sha512.c | ||
sha512.h | ||
wscript_build | ||
wscript_configure |