]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
crypto: lib - move lib/sha1.c into lib/crypto/
authorEric Biggers <ebiggers@google.com>
Sat, 9 Jul 2022 21:18:48 +0000 (14:18 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Jul 2022 08:43:59 +0000 (16:43 +0800)
SHA-1 is a crypto algorithm (or at least was intended to be -- it's not
considered secure anymore), so move it out of the top-level library
directory and into lib/crypto/.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/Makefile
lib/crypto/Makefile
lib/crypto/sha1.c [moved from lib/sha1.c with 100% similarity]

index f99bf61f8bbc67743d17b996ad3ebe341aa91ea4..67482f5ec0e899a1fd939565df38cb06103ce91b 100644 (file)
@@ -29,7 +29,7 @@ endif
 
 lib-y := ctype.o string.o vsprintf.o cmdline.o \
         rbtree.o radix-tree.o timerqueue.o xarray.o \
-        idr.o extable.o sha1.o irq_regs.o argv_split.o \
+        idr.o extable.o irq_regs.o argv_split.o \
         flex_proportions.o ratelimit.o show_mem.o \
         is_single_threaded.o plist.o decompress.o kobject_uevent.o \
         earlycpio.o seq_buf.o siphash.o dec_and_lock.o \
index 26be2bbe09c59e3792368ab228e9f3dae09f778e..d28111ba54fcb2681ea0118b3ee2801cd804dae5 100644 (file)
@@ -34,6 +34,8 @@ libpoly1305-y                                 := poly1305-donna32.o
 libpoly1305-$(CONFIG_ARCH_SUPPORTS_INT128)     := poly1305-donna64.o
 libpoly1305-y                                  += poly1305.o
 
+obj-y                                          += sha1.o
+
 obj-$(CONFIG_CRYPTO_LIB_SHA256)                        += libsha256.o
 libsha256-y                                    := sha256.o
 
similarity index 100%
rename from lib/sha1.c
rename to lib/crypto/sha1.c