18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci# 38c2ecf20Sopenharmony_ci# linux/arch/arm64/crypto/Makefile 48c2ecf20Sopenharmony_ci# 58c2ecf20Sopenharmony_ci# Copyright (C) 2014 Linaro Ltd <ard.biesheuvel@linaro.org> 68c2ecf20Sopenharmony_ci# 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_SHA1_ARM64_CE) += sha1-ce.o 98c2ecf20Sopenharmony_cisha1-ce-y := sha1-ce-glue.o sha1-ce-core.o 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_SHA2_ARM64_CE) += sha2-ce.o 128c2ecf20Sopenharmony_cisha2-ce-y := sha2-ce-glue.o sha2-ce-core.o 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_SHA512_ARM64_CE) += sha512-ce.o 158c2ecf20Sopenharmony_cisha512-ce-y := sha512-ce-glue.o sha512-ce-core.o 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_SHA3_ARM64) += sha3-ce.o 188c2ecf20Sopenharmony_cisha3-ce-y := sha3-ce-glue.o sha3-ce-core.o 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_SM3_ARM64_CE) += sm3-ce.o 218c2ecf20Sopenharmony_cism3-ce-y := sm3-ce-glue.o sm3-ce-core.o 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_SM4_ARM64_CE) += sm4-ce.o 248c2ecf20Sopenharmony_cism4-ce-y := sm4-ce-glue.o sm4-ce-core.o 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_GHASH_ARM64_CE) += ghash-ce.o 278c2ecf20Sopenharmony_cighash-ce-y := ghash-ce-glue.o ghash-ce-core.o 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_CRCT10DIF_ARM64_CE) += crct10dif-ce.o 308c2ecf20Sopenharmony_cicrct10dif-ce-y := crct10dif-ce-core.o crct10dif-ce-glue.o 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_AES_ARM64_CE) += aes-ce-cipher.o 338c2ecf20Sopenharmony_ciaes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_AES_ARM64_CE_CCM) += aes-ce-ccm.o 368c2ecf20Sopenharmony_ciaes-ce-ccm-y := aes-ce-ccm-glue.o aes-ce-ccm-core.o 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_AES_ARM64_CE_BLK) += aes-ce-blk.o 398c2ecf20Sopenharmony_ciaes-ce-blk-y := aes-glue-ce.o aes-ce.o 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_AES_ARM64_NEON_BLK) += aes-neon-blk.o 428c2ecf20Sopenharmony_ciaes-neon-blk-y := aes-glue-neon.o aes-neon.o 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_SHA256_ARM64) += sha256-arm64.o 458c2ecf20Sopenharmony_cisha256-arm64-y := sha256-glue.o sha256-core.o 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_SHA512_ARM64) += sha512-arm64.o 488c2ecf20Sopenharmony_cisha512-arm64-y := sha512-glue.o sha512-core.o 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_CHACHA20_NEON) += chacha-neon.o 518c2ecf20Sopenharmony_cichacha-neon-y := chacha-neon-core.o chacha-neon-glue.o 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_POLY1305_NEON) += poly1305-neon.o 548c2ecf20Sopenharmony_cipoly1305-neon-y := poly1305-core.o poly1305-glue.o 558c2ecf20Sopenharmony_ciAFLAGS_poly1305-core.o += -Dpoly1305_init=poly1305_init_arm64 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_NHPOLY1305_NEON) += nhpoly1305-neon.o 588c2ecf20Sopenharmony_cinhpoly1305-neon-y := nh-neon-core.o nhpoly1305-neon-glue.o 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_AES_ARM64) += aes-arm64.o 618c2ecf20Sopenharmony_ciaes-arm64-y := aes-cipher-core.o aes-cipher-glue.o 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_AES_ARM64_BS) += aes-neon-bs.o 648c2ecf20Sopenharmony_ciaes-neon-bs-y := aes-neonbs-core.o aes-neonbs-glue.o 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ciCFLAGS_aes-glue-ce.o := -DUSE_V8_CRYPTO_EXTENSIONS 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci$(obj)/aes-glue-%.o: $(src)/aes-glue.c FORCE 698c2ecf20Sopenharmony_ci $(call if_changed_rule,cc_o_c) 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ciifdef REGENERATE_ARM64_CRYPTO 728c2ecf20Sopenharmony_ciquiet_cmd_perlasm = PERLASM $@ 738c2ecf20Sopenharmony_ci cmd_perlasm = $(PERL) $(<) void $(@) 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci$(src)/poly1305-core.S_shipped: $(src)/poly1305-armv8.pl 768c2ecf20Sopenharmony_ci $(call cmd,perlasm) 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci$(src)/sha256-core.S_shipped: $(src)/sha512-armv8.pl 798c2ecf20Sopenharmony_ci $(call cmd,perlasm) 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci$(src)/sha512-core.S_shipped: $(src)/sha512-armv8.pl 828c2ecf20Sopenharmony_ci $(call cmd,perlasm) 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ciendif 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ciclean-files += poly1305-core.S sha256-core.S sha512-core.S 87