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 if 'CONFIG_GCRYPT_HMAC' in config_host
30 crypto_ss.add(files('hmac-gcrypt.c'))
32 crypto_ss.add(files('hmac-glib.c'))
35 crypto_ss.add(files('hash-glib.c', 'hmac-glib.c', 'pbkdf-stub.c'))
38 crypto_ss.add(when: 'CONFIG_SECRET_KEYRING', if_true: files('secret_keyring.c'))
39 crypto_ss.add(when: 'CONFIG_QEMU_PRIVATE_XTS', if_true: files('xts.c'))
40 crypto_ss.add(when: 'CONFIG_AF_ALG', if_true: files('afalg.c', 'cipher-afalg.c', 'hash-afalg.c'))
41 crypto_ss.add(when: 'CONFIG_GNUTLS', if_true: files('tls-cipher-suites.c'))
43 if 'CONFIG_NETTLE' in config_host
45 elif 'CONFIG_GCRYPT' in config_host
49 if 'CONFIG_GNUTLS' in config_host
54 util_ss.add(files('aes.c'))
55 util_ss.add(files('init.c'))
57 if 'CONFIG_GCRYPT' in config_host
58 util_ss.add(files('random-gcrypt.c'))
59 elif 'CONFIG_GNUTLS' in config_host
60 util_ss.add(files('random-gnutls.c'))
61 elif 'CONFIG_RNG_NONE' in config_host
62 util_ss.add(files('random-none.c'))
64 util_ss.add(files('random-platform.c'))
67 if 'CONFIG_GCRYPT' in config_host
71 if 'CONFIG_GNUTLS' in config_host