1crypto_ss.add(genh) 2crypto_ss.add(files( 3 'afsplit.c', 4 'block-luks.c', 5 'block-qcow.c', 6 'block.c', 7 'cipher.c', 8 'hash.c', 9 'hmac.c', 10 'ivgen-essiv.c', 11 'ivgen-plain.c', 12 'ivgen-plain64.c', 13 'ivgen.c', 14 'pbkdf.c', 15 'secret_common.c', 16 'secret.c', 17 'tlscreds.c', 18 'tlscredsanon.c', 19 'tlscredspsk.c', 20 'tlscredsx509.c', 21 'tlssession.c', 22)) 23 24if nettle.found() 25 crypto_ss.add(nettle, files('hash-nettle.c', 'hmac-nettle.c', 'pbkdf-nettle.c')) 26 if xts == 'private' 27 crypto_ss.add(files('xts.c')) 28 endif 29elif gcrypt.found() 30 crypto_ss.add(gcrypt, files('hash-gcrypt.c', 'hmac-gcrypt.c', 'pbkdf-gcrypt.c')) 31elif gnutls_crypto.found() 32 crypto_ss.add(gnutls, files('hash-gnutls.c', 'hmac-gnutls.c', 'pbkdf-gnutls.c')) 33else 34 crypto_ss.add(files('hash-glib.c', 'hmac-glib.c', 'pbkdf-stub.c')) 35endif 36 37if have_keyring 38 crypto_ss.add(files('secret_keyring.c')) 39endif 40if have_afalg 41 crypto_ss.add(if_true: files('afalg.c', 'cipher-afalg.c', 'hash-afalg.c')) 42endif 43crypto_ss.add(when: gnutls, if_true: files('tls-cipher-suites.c')) 44 45util_ss.add(files('sm4.c')) 46util_ss.add(files('aes.c')) 47util_ss.add(files('init.c')) 48if gnutls.found() 49 util_ss.add(gnutls) 50endif 51 52if gcrypt.found() 53 util_ss.add(gcrypt, files('random-gcrypt.c')) 54elif gnutls.found() 55 util_ss.add(gnutls, files('random-gnutls.c')) 56elif get_option('rng_none') 57 util_ss.add(files('random-none.c')) 58else 59 util_ss.add(files('random-platform.c')) 60endif 61 62