1dc51f257SArd Biesheuvel# SPDX-License-Identifier: GPL-2.0 2dc51f257SArd Biesheuvel 37033b937SEric Biggersobj-$(CONFIG_CRYPTO_LIB_UTILS) += libcryptoutils.o 46e78ad0bSEric Biggerslibcryptoutils-y := memneq.o utils.o 57033b937SEric Biggers 65fb8ef25SArd Biesheuvel# chacha is used by the /dev/random driver which is always builtin 75fb8ef25SArd Biesheuvelobj-y += chacha.o 85fb8ef25SArd Biesheuvelobj-$(CONFIG_CRYPTO_LIB_CHACHA_GENERIC) += libchacha.o 95fb8ef25SArd Biesheuvel 10e59c1c98SArd Biesheuvelobj-$(CONFIG_CRYPTO_LIB_AES) += libaes.o 11e59c1c98SArd Biesheuvellibaes-y := aes.o 12e59c1c98SArd Biesheuvel 13f1354404SArd Biesheuvelobj-$(CONFIG_CRYPTO_LIB_AESCFB) += libaescfb.o 14f1354404SArd Biesheuvellibaescfb-y := aescfb.o 15f1354404SArd Biesheuvel 16520af5daSArd Biesheuvelobj-$(CONFIG_CRYPTO_LIB_AESGCM) += libaesgcm.o 17520af5daSArd Biesheuvellibaesgcm-y := aesgcm.o 18520af5daSArd Biesheuvel 19dc51f257SArd Biesheuvelobj-$(CONFIG_CRYPTO_LIB_ARC4) += libarc4.o 20dc51f257SArd Biesheuvellibarc4-y := arc4.o 2104007b0eSArd Biesheuvel 2261c581a4SArd Biesheuvelobj-$(CONFIG_CRYPTO_LIB_GF128MUL) += gf128mul.o 2361c581a4SArd Biesheuvel 246048fdccSJason A. Donenfeld# blake2s is used by the /dev/random driver which is always builtin 256048fdccSJason A. Donenfeldobj-y += libblake2s.o 266048fdccSJason A. Donenfeldlibblake2s-y := blake2s.o 276048fdccSJason A. Donenfeldlibblake2s-$(CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC) += blake2s-generic.o 28*40b99697SEric Biggerslibblake2s-$(CONFIG_CRYPTO_SELFTESTS) += blake2s-selftest.o 2966d7fb94SJason A. Donenfeld 30ed20078bSArd Biesheuvelobj-$(CONFIG_CRYPTO_LIB_CHACHA20POLY1305) += libchacha20poly1305.o 31ed20078bSArd Biesheuvellibchacha20poly1305-y += chacha20poly1305.o 32*40b99697SEric Biggerslibchacha20poly1305-$(CONFIG_CRYPTO_SELFTESTS) += chacha20poly1305-selftest.o 33ed20078bSArd Biesheuvel 34a8bdf2c4SHerbert Xuobj-$(CONFIG_CRYPTO_LIB_CURVE25519_GENERIC) += libcurve25519-generic.o 35a8bdf2c4SHerbert Xulibcurve25519-generic-y := curve25519-fiat32.o 36a8bdf2c4SHerbert Xulibcurve25519-generic-$(CONFIG_ARCH_SUPPORTS_INT128) := curve25519-hacl64.o 37a8bdf2c4SHerbert Xulibcurve25519-generic-y += curve25519-generic.o 38a8bdf2c4SHerbert Xu 39a8bdf2c4SHerbert Xuobj-$(CONFIG_CRYPTO_LIB_CURVE25519) += libcurve25519.o 400ed42a6fSJason A. Donenfeldlibcurve25519-y += curve25519.o 41*40b99697SEric Biggerslibcurve25519-$(CONFIG_CRYPTO_SELFTESTS) += curve25519-selftest.o 420ed42a6fSJason A. Donenfeld 4304007b0eSArd Biesheuvelobj-$(CONFIG_CRYPTO_LIB_DES) += libdes.o 4404007b0eSArd Biesheuvellibdes-y := des.o 4501d3aee8SHans de Goede 469b9d4ef0SHerbert Xuobj-$(CONFIG_CRYPTO_LIB_POLY1305) += libpoly1305.o 471c08a104SJason A. Donenfeldlibpoly1305-y += poly1305.o 4848ea8c6eSArd Biesheuvel 499b9d4ef0SHerbert Xuobj-$(CONFIG_CRYPTO_LIB_POLY1305_GENERIC) += libpoly1305-generic.o 509b9d4ef0SHerbert Xulibpoly1305-generic-y := poly1305-donna32.o 519b9d4ef0SHerbert Xulibpoly1305-generic-$(CONFIG_ARCH_SUPPORTS_INT128) := poly1305-donna64.o 529b9d4ef0SHerbert Xulibpoly1305-generic-y += poly1305-generic.o 539b9d4ef0SHerbert Xu 54ec8f7f48SEric Biggersobj-$(CONFIG_CRYPTO_LIB_SHA1) += libsha1.o 55ec8f7f48SEric Biggerslibsha1-y := sha1.o 56463f7408SEric Biggers 5701d3aee8SHans de Goedeobj-$(CONFIG_CRYPTO_LIB_SHA256) += libsha256.o 5801d3aee8SHans de Goedelibsha256-y := sha256.o 5966d7fb94SJason A. Donenfeld 60950e5c84SEric Biggersobj-$(CONFIG_CRYPTO_LIB_SHA256_GENERIC) += libsha256-generic.o 61950e5c84SEric Biggerslibsha256-generic-y := sha256-generic.o 62950e5c84SEric Biggers 632a598d0bSHerbert Xuobj-$(CONFIG_MPILIB) += mpi/ 644964a1d9SEric Biggers 654964a1d9SEric Biggersobj-$(CONFIG_CRYPTO_MANAGER_EXTRA_TESTS) += simd.o 66f4065b2fSHerbert Xu 67f4065b2fSHerbert Xuobj-$(CONFIG_CRYPTO_LIB_SM3) += libsm3.o 68f4065b2fSHerbert Xulibsm3-y := sm3.o 69