xref: /linux/arch/riscv/crypto/Makefile (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1178f3856SHeiko Stuebner# SPDX-License-Identifier: GPL-2.0-only
2eb24af5dSJerry Shih
3eb24af5dSJerry Shihobj-$(CONFIG_CRYPTO_AES_RISCV64) += aes-riscv64.o
4eb24af5dSJerry Shihaes-riscv64-y := aes-riscv64-glue.o aes-riscv64-zvkned.o \
5eb24af5dSJerry Shih		 aes-riscv64-zvkned-zvbb-zvkg.o aes-riscv64-zvkned-zvkb.o
6bb546688SJerry Shih
7bb546688SJerry Shihobj-$(CONFIG_CRYPTO_CHACHA_RISCV64) += chacha-riscv64.o
8bb546688SJerry Shihchacha-riscv64-y := chacha-riscv64-glue.o chacha-riscv64-zvkb.o
9600a3853SJerry Shih
10600a3853SJerry Shihobj-$(CONFIG_CRYPTO_GHASH_RISCV64) += ghash-riscv64.o
11600a3853SJerry Shihghash-riscv64-y := ghash-riscv64-glue.o ghash-riscv64-zvkg.o
128c8e4047SJerry Shih
138c8e4047SJerry Shihobj-$(CONFIG_CRYPTO_SHA256_RISCV64) += sha256-riscv64.o
148c8e4047SJerry Shihsha256-riscv64-y := sha256-riscv64-glue.o sha256-riscv64-zvknha_or_zvknhb-zvkb.o
15b3415925SJerry Shih
16b3415925SJerry Shihobj-$(CONFIG_CRYPTO_SHA512_RISCV64) += sha512-riscv64.o
17b3415925SJerry Shihsha512-riscv64-y := sha512-riscv64-glue.o sha512-riscv64-zvknhb-zvkb.o
18563a5255SJerry Shih
19563a5255SJerry Shihobj-$(CONFIG_CRYPTO_SM3_RISCV64) += sm3-riscv64.o
20563a5255SJerry Shihsm3-riscv64-y := sm3-riscv64-glue.o sm3-riscv64-zvksh-zvkb.o
21*b8d06352SJerry Shih
22*b8d06352SJerry Shihobj-$(CONFIG_CRYPTO_SM4_RISCV64) += sm4-riscv64.o
23*b8d06352SJerry Shihsm4-riscv64-y := sm4-riscv64-glue.o sm4-riscv64-zvksed-zvkb.o
24