blob: 73205ed269bad635d2d057272d01abca4b2dd3f6 [file] [log] [blame]
Ard Biesheuveldc51f252019-06-12 18:19:53 +02001# SPDX-License-Identifier: GPL-2.0
2
Ard Biesheuvel5fb8ef22019-11-08 13:22:08 +01003# chacha is used by the /dev/random driver which is always builtin
4obj-y += chacha.o
5obj-$(CONFIG_CRYPTO_LIB_CHACHA_GENERIC) += libchacha.o
6
Ard Biesheuvel746b2e02019-11-08 13:22:07 +01007obj-$(CONFIG_CRYPTO_LIB_AES) += libaes.o
8libaes-y := aes.o
Ard Biesheuvele59c1c92019-07-02 21:41:22 +02009
Ard Biesheuvel746b2e02019-11-08 13:22:07 +010010obj-$(CONFIG_CRYPTO_LIB_ARC4) += libarc4.o
11libarc4-y := arc4.o
Ard Biesheuvel04007b02019-08-15 12:01:09 +030012
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010013obj-$(CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC) += libblake2s-generic.o
14libblake2s-generic-y += blake2s-generic.o
15
16obj-$(CONFIG_CRYPTO_LIB_BLAKE2S) += libblake2s.o
17libblake2s-y += blake2s.o
18
Ard Biesheuveled200782019-11-08 13:22:39 +010019obj-$(CONFIG_CRYPTO_LIB_CHACHA20POLY1305) += libchacha20poly1305.o
20libchacha20poly1305-y += chacha20poly1305.o
21
Herbert Xua8bdf2c2020-01-08 12:37:35 +080022obj-$(CONFIG_CRYPTO_LIB_CURVE25519_GENERIC) += libcurve25519-generic.o
23libcurve25519-generic-y := curve25519-fiat32.o
24libcurve25519-generic-$(CONFIG_ARCH_SUPPORTS_INT128) := curve25519-hacl64.o
25libcurve25519-generic-y += curve25519-generic.o
26
27obj-$(CONFIG_CRYPTO_LIB_CURVE25519) += libcurve25519.o
Jason A. Donenfeld0ed42a6f2019-11-08 13:22:32 +010028libcurve25519-y += curve25519.o
29
Ard Biesheuvel746b2e02019-11-08 13:22:07 +010030obj-$(CONFIG_CRYPTO_LIB_DES) += libdes.o
31libdes-y := des.o
Hans de Goede01d3aee2019-08-17 16:24:33 +020032
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +010033obj-$(CONFIG_CRYPTO_LIB_POLY1305_GENERIC) += libpoly1305.o
Jason A. Donenfeld1c08a102020-01-05 22:40:46 -050034libpoly1305-y := poly1305-donna32.o
35libpoly1305-$(CONFIG_ARCH_SUPPORTS_INT128) := poly1305-donna64.o
36libpoly1305-y += poly1305.o
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +010037
Ard Biesheuvel746b2e02019-11-08 13:22:07 +010038obj-$(CONFIG_CRYPTO_LIB_SHA256) += libsha256.o
39libsha256-y := sha256.o
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010040
Tianjia Zhang2b312772021-07-20 11:46:39 +080041obj-$(CONFIG_CRYPTO_LIB_SM4) += libsm4.o
42libsm4-y := sm4.o
43
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010044ifneq ($(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS),y)
45libblake2s-y += blake2s-selftest.o
Ard Biesheuveled200782019-11-08 13:22:39 +010046libchacha20poly1305-y += chacha20poly1305-selftest.o
Jason A. Donenfeldaa127962019-12-16 19:53:26 +010047libcurve25519-y += curve25519-selftest.o
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010048endif