depends on KERNEL_MODE_NEON
        select CRYPTO_HASH
        select CRYPTO_CRYPTD
-       select CRYPTO_GF128MUL
+       select CRYPTO_LIB_GF128MUL
        help
          GCM GHASH function (NIST SP800-38D)
 
 
        tristate "Hash functions: GHASH (ARMv8 Crypto Extensions)"
        depends on KERNEL_MODE_NEON
        select CRYPTO_HASH
-       select CRYPTO_GF128MUL
        select CRYPTO_LIB_AES
+       select CRYPTO_LIB_GF128MUL
        select CRYPTO_AEAD
        help
          GCM GHASH function (NIST SP800-38D)
 
          This is intended for developer use only, as these tests take much
          longer to run than the normal self tests.
 
-config CRYPTO_GF128MUL
-       tristate
-
 config CRYPTO_NULL
        tristate "Null algorithms"
        select CRYPTO_NULL2
 
 config CRYPTO_LRW
        tristate "LRW (Liskov Rivest Wagner)"
+       select CRYPTO_LIB_GF128MUL
        select CRYPTO_SKCIPHER
        select CRYPTO_MANAGER
-       select CRYPTO_GF128MUL
        select CRYPTO_ECB
        help
          LRW (Liskov Rivest Wagner) mode
 
 config CRYPTO_GHASH
        tristate "GHASH"
-       select CRYPTO_GF128MUL
        select CRYPTO_HASH
+       select CRYPTO_LIB_GF128MUL
        help
          GCM GHASH function (NIST SP800-38D)
 
 
 config CRYPTO_POLYVAL
        tristate
-       select CRYPTO_GF128MUL
        select CRYPTO_HASH
+       select CRYPTO_LIB_GF128MUL
        help
          POLYVAL hash function for HCTR2
 
 
 CFLAGS_wp512.o := $(call cc-option,-fno-schedule-insns)  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79149
 obj-$(CONFIG_CRYPTO_BLAKE2B) += blake2b_generic.o
 CFLAGS_blake2b_generic.o := -Wframe-larger-than=4096 #  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930
-obj-$(CONFIG_CRYPTO_GF128MUL) += gf128mul.o
 obj-$(CONFIG_CRYPTO_ECB) += ecb.o
 obj-$(CONFIG_CRYPTO_CBC) += cbc.o
 obj-$(CONFIG_CRYPTO_CFB) += cfb.o
 
        tristate "Chelsio Crypto Co-processor Driver"
        depends on CHELSIO_T4
        select CRYPTO_LIB_AES
+       select CRYPTO_LIB_GF128MUL
        select CRYPTO_SHA1
        select CRYPTO_SHA256
        select CRYPTO_SHA512
        select CRYPTO_AUTHENC
-       select CRYPTO_GF128MUL
        help
          The Chelsio Crypto Co-processor driver for T6 adapters.
 
 
 config CRYPTO_LIB_ARC4
        tristate
 
+config CRYPTO_LIB_GF128MUL
+       tristate
+
 config CRYPTO_ARCH_HAVE_LIB_BLAKE2S
        bool
        help
 
 obj-$(CONFIG_CRYPTO_LIB_ARC4)                  += libarc4.o
 libarc4-y                                      := arc4.o
 
+obj-$(CONFIG_CRYPTO_LIB_GF128MUL)              += gf128mul.o
+
 # blake2s is used by the /dev/random driver which is always builtin
 obj-y                                          += libblake2s.o
 libblake2s-y                                   := blake2s.o