Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_CHACHA20POLY1305-related crypto to convert them into pluggable interface.
Signed-off-by: Jay Wang <[email protected]> --- crypto/Makefile | 2 +- crypto/chacha20poly1305.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index cb509e854784..f71f2359ce08 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -100,7 +100,7 @@ crypto-objs-$(CONFIG_CRYPTO_HCTR2) += hctr2.o crypto-objs-$(CONFIG_CRYPTO_ADIANTUM) += adiantum.o crypto-objs-$(CONFIG_CRYPTO_GCM) += gcm.o crypto-objs-$(CONFIG_CRYPTO_CCM) += ccm.o -obj-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o +crypto-objs-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o obj-$(CONFIG_CRYPTO_AEGIS128) += aegis128.o aegis128-y := aegis128-core.o diff --git a/crypto/chacha20poly1305.c b/crypto/chacha20poly1305.c index b4b5a7198d84..2e5fe0b060af 100644 --- a/crypto/chacha20poly1305.c +++ b/crypto/chacha20poly1305.c @@ -476,8 +476,8 @@ static void __exit chacha20poly1305_module_exit(void) ARRAY_SIZE(rfc7539_tmpls)); } -module_init(chacha20poly1305_module_init); -module_exit(chacha20poly1305_module_exit); +crypto_module_init(chacha20poly1305_module_init); +crypto_module_exit(chacha20poly1305_module_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Martin Willi <[email protected]>"); -- 2.47.3
