1srcs-y += crypto.c 2 3ifeq (y-y,$(CFG_CRYPTO_AES)-$(CFG_CRYPTO_GCM)) 4srcs-y += aes-gcm.c 5ifneq ($(CFG_CRYPTO_WITH_CE),y) 6srcs-y += aes-gcm-sw.c 7ifeq ($(CFG_AES_GCM_TABLE_BASED),y) 8srcs-y += aes-gcm-ghash-tbl.c 9endif 10endif 11endif 12 13srcs-$(CFG_WITH_USER_TA) += signed_hdr.c 14 15ifeq ($(CFG_WITH_SOFTWARE_PRNG),y) 16srcs-y += rng_fortuna.c 17else 18srcs-y += rng_hw.c 19endif 20 21ifneq ($(CFG_CRYPTO_CBC_MAC_FROM_CRYPTOLIB),y) 22srcs-$(CFG_CRYPTO_CBC_MAC) += cbc-mac.c 23endif 24ifneq ($(CFG_CRYPTO_CTS_FROM_CRYPTOLIB),y) 25srcs-$(CFG_CRYPTO_CTS) += aes-cts.c 26endif 27ifneq (,$(filter y,$(CFG_CRYPTO_SM2_PKE) $(CFG_CRYPTO_SM2_KEP))) 28srcs-y += sm2-kdf.c 29endif 30ifeq ($(CFG_CRYPTO_SM3),y) 31srcs-y += sm3.c 32srcs-y += sm3-hash.c 33srcs-$(CFG_CRYPTO_HMAC) += sm3-hmac.c 34endif 35ifeq ($(CFG_CRYPTO_SM4),y) 36srcs-y += sm4.c 37srcs-$(CFG_CRYPTO_ECB) += sm4-ecb.c 38srcs-$(CFG_CRYPTO_CBC) += sm4-cbc.c 39srcs-$(CFG_CRYPTO_CTR) += sm4-ctr.c 40srcs-$(CFG_CRYPTO_XTS) += sm4-xts.c 41endif 42