lib:crypto: Add implementation of GKDI key derivation
[Samba.git] / lib / crypto / wscript
blob1c94a8300b93d937de747a52c7e8a6c0251618c3
1 #!/usr/bin/env python
4 def build(bld):
5 bld.SAMBA_SUBSYSTEM("GNUTLS_HELPERS",
6 source='''
7 gnutls_error.c
8 gnutls_aead_aes_256_cbc_hmac_sha512.c
9 gnutls_arcfour_confounded_md5.c
10 gnutls_weak_crypto.c
11 gnutls_sp800_108.c
12 ''',
13 deps="gnutls samba-errors")
15 bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
16 source='''
17 md4.c
18 ''',
19 deps='''
20 talloc
21 ''')
23 bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
24 source='md4test.c',
25 autoproto='test_proto.h',
26 deps='''
27 LIBCRYPTO
28 ''')
30 bld.SAMBA_SUBSYSTEM('gkdi',
31 source='gkdi.c',
32 deps='''
33 talloc
34 GNUTLS_HELPERS
35 NDR_GKDI
36 ''')
38 bld.SAMBA_PYTHON('python_crypto',
39 source='py_crypto.c',
40 deps='gnutls talloc LIBCLI_AUTH',
41 realname='samba/crypto.so')
43 bld.SAMBA_BINARY('test_gnutls_aead_aes_256_cbc_hmac_sha512',
44 source='''
45 gnutls_error.c
46 tests/test_gnutls_aead_aes_256_cbc_hmac_sha512.c
47 ''',
48 deps='cmocka gnutls samba-util samba-errors',
49 local_include=False,
50 for_selftest=True)
52 bld.SAMBA_BINARY('test_gnutls_sp800_108',
53 source='''
54 tests/test_gnutls_sp800_108.c
55 ''',
56 deps='cmocka GNUTLS_HELPERS samba-util',
57 local_include=False,
58 for_selftest=True)