diff --git a/MAINTAINERS b/MAINTAINERS index f25a0df953b3..5af23e8cb3eb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3901,6 +3901,7 @@ F: crypto/ F: drivers/crypto/ F: include/crypto/ F: include/linux/crypto* +F: lib/crypto/ CRYPTOGRAPHIC RANDOM NUMBER GENERATOR M: Neil Horman diff --git a/crypto/Kconfig b/crypto/Kconfig index fad605d59dbc..ac8234056250 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1895,6 +1895,7 @@ config CRYPTO_USER_API_AEAD config CRYPTO_HASH_INFO bool +source "lib/crypto/Kconfig" source "drivers/crypto/Kconfig" source crypto/asymmetric_keys/Kconfig source certs/Kconfig diff --git a/lib/Makefile b/lib/Makefile index ade189df9ebe..5767a4796fdc 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -96,6 +96,8 @@ endif obj-$(CONFIG_DEBUG_INFO_REDUCED) += debug_info.o CFLAGS_debug_info.o += $(call cc-option, -femit-struct-debug-detailed=any) +obj-y += crypto/ + obj-$(CONFIG_GENERIC_IOMAP) += iomap.o obj-$(CONFIG_GENERIC_PCI_IOMAP) += pci_iomap.o obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig new file mode 100644 index 000000000000..43bd54c02020 --- /dev/null +++ b/lib/crypto/Kconfig @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +comment "Crypto library routines" diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile new file mode 100644 index 000000000000..f66554cd5c45 --- /dev/null +++ b/lib/crypto/Makefile @@ -0,0 +1 @@ +# SPDX-License-Identifier: GPL-2.0