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 'desrfb.c', 9 'hash.c', 10 'hmac.c', 11 'ivgen-essiv.c', 12 'ivgen-plain.c', 13 'ivgen-plain64.c', 14 'ivgen.c', 15 'pbkdf.c', 16 'secret_common.c', 17 'secret.c', 18 'tlscreds.c', 19 'tlscredsanon.c', 20 'tlscredspsk.c', 21 'tlscredsx509.c', 22 'tlssession.c', 23)) 24 25if nettle.found() 26 crypto_ss.add(nettle, files('hash-nettle.c', 'hmac-nettle.c', 'pbkdf-nettle.c')) 27elif gcrypt.found() 28 crypto_ss.add(gcrypt, files('hash-gcrypt.c', 'hmac-gcrypt.c', 'pbkdf-gcrypt.c')) 29else 30 crypto_ss.add(files('hash-glib.c', 'hmac-glib.c', 'pbkdf-stub.c')) 31endif 32if xts == 'private' 33 crypto_ss.add(files('xts.c')) 34endif 35 36crypto_ss.add(when: 'CONFIG_SECRET_KEYRING', if_true: files('secret_keyring.c')) 37crypto_ss.add(when: 'CONFIG_AF_ALG', if_true: files('afalg.c', 'cipher-afalg.c', 'hash-afalg.c')) 38crypto_ss.add(when: gnutls, if_true: files('tls-cipher-suites.c')) 39 40util_ss.add(files('aes.c')) 41util_ss.add(files('init.c')) 42 43if gcrypt.found() 44 util_ss.add(gcrypt, files('random-gcrypt.c')) 45elif gnutls.found() 46 util_ss.add(gnutls, files('random-gnutls.c')) 47elif 'CONFIG_RNG_NONE' in config_host 48 util_ss.add(files('random-none.c')) 49else 50 util_ss.add(files('random-platform.c')) 51endif 52 53