^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) # chacha is used by the /dev/random driver which is always builtin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) obj-y += chacha.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) obj-$(CONFIG_CRYPTO_LIB_CHACHA_GENERIC) += libchacha.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) obj-$(CONFIG_CRYPTO_LIB_AES) += libaes.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) libaes-y := aes.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) obj-$(CONFIG_CRYPTO_LIB_ARC4) += libarc4.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) libarc4-y := arc4.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) obj-$(CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC) += libblake2s-generic.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) libblake2s-generic-y += blake2s-generic.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) obj-$(CONFIG_CRYPTO_LIB_BLAKE2S) += libblake2s.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) libblake2s-y += blake2s.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) obj-$(CONFIG_CRYPTO_LIB_CHACHA20POLY1305) += libchacha20poly1305.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) libchacha20poly1305-y += chacha20poly1305.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) obj-$(CONFIG_CRYPTO_LIB_CURVE25519_GENERIC) += libcurve25519-generic.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) libcurve25519-generic-y := curve25519-fiat32.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) libcurve25519-generic-$(CONFIG_ARCH_SUPPORTS_INT128) := curve25519-hacl64.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) libcurve25519-generic-y += curve25519-generic.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) obj-$(CONFIG_CRYPTO_LIB_CURVE25519) += libcurve25519.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) libcurve25519-y += curve25519.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) obj-$(CONFIG_CRYPTO_LIB_DES) += libdes.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) libdes-y := des.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) obj-$(CONFIG_CRYPTO_LIB_POLY1305_GENERIC) += libpoly1305.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) libpoly1305-y := poly1305-donna32.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) libpoly1305-$(CONFIG_ARCH_SUPPORTS_INT128) := poly1305-donna64.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) libpoly1305-y += poly1305.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) obj-$(CONFIG_CRYPTO_LIB_SHA256) += libsha256.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) libsha256-y := sha256.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) ifneq ($(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS),y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) libblake2s-y += blake2s-selftest.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) libchacha20poly1305-y += chacha20poly1305-selftest.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) libcurve25519-y += curve25519-selftest.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) endif