5 if bld
.CONFIG_SET('HAVE_BSD_MD5_H'):
7 elif bld
.CONFIG_SET('HAVE_SYS_MD5_H') and bld
.CONFIG_SET('HAVE_LIBMD5'):
9 elif bld
.CONFIG_SET('HAVE_SYS_MD5_H') and bld
.CONFIG_SET('HAVE_LIBMD'):
11 elif not bld
.CONFIG_SET('HAVE_SYS_MD5_H') and not bld
.CONFIG_SET('HAVE_COMMONCRYPTO_COMMONDIGEST_H'):
12 extra_source
+= ' md5.c'
14 if bld
.CONFIG_SET("HAVE_AESNI_INTEL"):
15 extra_deps
+= ' aesni-intel'
17 bld
.SAMBA_SUBSYSTEM('LIBCRYPTO',
18 source
='''crc32.c hmacmd5.c md4.c arcfour.c sha256.c sha512.c hmacsha256.c
19 aes.c rijndael-alg-fst.c aes_cmac_128.c aes_ccm_128.c aes_gcm_128.c
21 deps
='talloc' + extra_deps
24 bld
.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
25 source
='''md4test.c md5test.c hmacmd5test.c
26 aes_cmac_128_test.c aes_ccm_128_test.c aes_gcm_128_test.c
28 autoproto
='test_proto.h',
32 for env
in bld
.gen_python_environments():
33 bld
.SAMBA_PYTHON('python_crypto',
36 realname
='samba/crypto.so'