blob: ed43a41f2dcc8b25d7ed849573ee288a607ca078 [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. Donenfeld6048fdc2021-12-22 14:56:58 +010013# blake2s is used by the /dev/random driver which is always builtin
14obj-y += libblake2s.o
15libblake2s-y := blake2s.o
16libblake2s-$(CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC) += blake2s-generic.o
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010017
Ard Biesheuveled200782019-11-08 13:22:39 +010018obj-$(CONFIG_CRYPTO_LIB_CHACHA20POLY1305) += libchacha20poly1305.o
19libchacha20poly1305-y += chacha20poly1305.o
20
Herbert Xua8bdf2c2020-01-08 12:37:35 +080021obj-$(CONFIG_CRYPTO_LIB_CURVE25519_GENERIC) += libcurve25519-generic.o
22libcurve25519-generic-y := curve25519-fiat32.o
23libcurve25519-generic-$(CONFIG_ARCH_SUPPORTS_INT128) := curve25519-hacl64.o
24libcurve25519-generic-y += curve25519-generic.o
25
26obj-$(CONFIG_CRYPTO_LIB_CURVE25519) += libcurve25519.o
Jason A. Donenfeld0ed42a6f2019-11-08 13:22:32 +010027libcurve25519-y += curve25519.o
28
Ard Biesheuvel746b2e02019-11-08 13:22:07 +010029obj-$(CONFIG_CRYPTO_LIB_DES) += libdes.o
30libdes-y := des.o
Hans de Goede01d3aee2019-08-17 16:24:33 +020031
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +010032obj-$(CONFIG_CRYPTO_LIB_POLY1305_GENERIC) += libpoly1305.o
Jason A. Donenfeld1c08a102020-01-05 22:40:46 -050033libpoly1305-y := poly1305-donna32.o
34libpoly1305-$(CONFIG_ARCH_SUPPORTS_INT128) := poly1305-donna64.o
35libpoly1305-y += poly1305.o
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +010036
Ard Biesheuvel746b2e02019-11-08 13:22:07 +010037obj-$(CONFIG_CRYPTO_LIB_SHA256) += libsha256.o
38libsha256-y := sha256.o
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010039
Tianjia Zhang2b312772021-07-20 11:46:39 +080040obj-$(CONFIG_CRYPTO_LIB_SM4) += libsm4.o
41libsm4-y := sm4.o
42
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010043ifneq ($(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS),y)
44libblake2s-y += blake2s-selftest.o
Ard Biesheuveled200782019-11-08 13:22:39 +010045libchacha20poly1305-y += chacha20poly1305-selftest.o
Jason A. Donenfeldaa127962019-12-16 19:53:26 +010046libcurve25519-y += curve25519-selftest.o
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010047endif