25 if 'CONFIG_NETTLE' in config_host
26 crypto_ss.add(files('hash-nettle.c', 'hmac-nettle.c', 'pbkdf-nettle.c'))
27 elif 'CONFIG_GCRYPT' in config_host
28 crypto_ss.add(files('hash-gcrypt.c', 'pbkdf-gcrypt.c'))
29 crypto_ss.add(files('hmac-gcrypt.c'))
31 crypto_ss.add(files('hash-glib.c', 'hmac-glib.c', 'pbkdf-stub.c'))
34 crypto_ss.add(when: 'CONFIG_SECRET_KEYRING', if_true: files('secret_keyring.c'))
35 crypto_ss.add(when: 'CONFIG_QEMU_PRIVATE_XTS', if_true: files('xts.c'))
36 crypto_ss.add(when: 'CONFIG_AF_ALG', if_true: files('afalg.c', 'cipher-afalg.c', 'hash-afalg.c'))
37 crypto_ss.add(when: 'CONFIG_GNUTLS', if_true: files('tls-cipher-suites.c'))
39 if 'CONFIG_NETTLE' in config_host
41 elif 'CONFIG_GCRYPT' in config_host
45 if 'CONFIG_GNUTLS' in config_host
50 util_ss.add(files('aes.c'))
51 util_ss.add(files('init.c'))
53 if 'CONFIG_GCRYPT' in config_host
54 util_ss.add(files('random-gcrypt.c'))
55 elif 'CONFIG_GNUTLS' in config_host
56 util_ss.add(files('random-gnutls.c'))
57 elif 'CONFIG_RNG_NONE' in config_host
58 util_ss.add(files('random-none.c'))
60 util_ss.add(files('random-platform.c'))
63 if 'CONFIG_GCRYPT' in config_host
67 if 'CONFIG_GNUTLS' in config_host