blob: 34a701ab8b92ea12e67440e096c45bd43fa3e15c [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
Jason A. Donenfeld0ed42a6f2019-11-08 13:22:32 +010022obj-$(CONFIG_CRYPTO_LIB_CURVE25519_GENERIC) += libcurve25519.o
23libcurve25519-y := curve25519-fiat32.o
24libcurve25519-$(CONFIG_ARCH_SUPPORTS_INT128) := curve25519-hacl64.o
25libcurve25519-y += curve25519.o
26
Ard Biesheuvel746b2e02019-11-08 13:22:07 +010027obj-$(CONFIG_CRYPTO_LIB_DES) += libdes.o
28libdes-y := des.o
Hans de Goede01d3aee2019-08-17 16:24:33 +020029
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +010030obj-$(CONFIG_CRYPTO_LIB_POLY1305_GENERIC) += libpoly1305.o
31libpoly1305-y := poly1305.o
32
Ard Biesheuvel746b2e02019-11-08 13:22:07 +010033obj-$(CONFIG_CRYPTO_LIB_SHA256) += libsha256.o
34libsha256-y := sha256.o
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010035
36ifneq ($(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS),y)
37libblake2s-y += blake2s-selftest.o
Ard Biesheuveled200782019-11-08 13:22:39 +010038libchacha20poly1305-y += chacha20poly1305-selftest.o
Jason A. Donenfeld66d7fb92019-11-08 13:22:28 +010039endif