crypto: sha1-mb - rename sha-mb to sha1-mb
authorMegha Dey <megha.dey@linux.intel.com>
Fri, 24 Jun 2016 01:40:48 +0000 (18:40 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 27 Jun 2016 08:57:47 +0000 (16:57 +0800)
Until now, there was only support for the SHA1 multibuffer algorithm.
Hence, there was just one sha-mb folder. Now, with the introduction of
the SHA256 multi-buffer algorithm , it is logical to name the existing
folder as sha1-mb.

Signed-off-by: Megha Dey <megha.dey@linux.intel.com>
Reviewed-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/Makefile
arch/x86/crypto/sha1-mb/Makefile [moved from arch/x86/crypto/sha-mb/Makefile with 100% similarity]
arch/x86/crypto/sha1-mb/sha1_mb.c [moved from arch/x86/crypto/sha-mb/sha1_mb.c with 99% similarity]
arch/x86/crypto/sha1-mb/sha1_mb_ctx.h [moved from arch/x86/crypto/sha-mb/sha_mb_ctx.h with 99% similarity]
arch/x86/crypto/sha1-mb/sha1_mb_mgr.h [moved from arch/x86/crypto/sha-mb/sha_mb_mgr.h with 100% similarity]
arch/x86/crypto/sha1-mb/sha1_mb_mgr_datastruct.S [moved from arch/x86/crypto/sha-mb/sha1_mb_mgr_datastruct.S with 100% similarity]
arch/x86/crypto/sha1-mb/sha1_mb_mgr_flush_avx2.S [moved from arch/x86/crypto/sha-mb/sha1_mb_mgr_flush_avx2.S with 100% similarity]
arch/x86/crypto/sha1-mb/sha1_mb_mgr_init_avx2.c [moved from arch/x86/crypto/sha-mb/sha1_mb_mgr_init_avx2.c with 99% similarity]
arch/x86/crypto/sha1-mb/sha1_mb_mgr_submit_avx2.S [moved from arch/x86/crypto/sha-mb/sha1_mb_mgr_submit_avx2.S with 100% similarity]
arch/x86/crypto/sha1-mb/sha1_x8_avx2.S [moved from arch/x86/crypto/sha-mb/sha1_x8_avx2.S with 100% similarity]

index aafff22b0ea618e4ec67a8e9259d0d6a04b066fc..52c86852392146846667a4072034df690537c83c 100644 (file)
@@ -49,7 +49,7 @@ endif
 ifeq ($(avx2_supported),yes)
        obj-$(CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64) += camellia-aesni-avx2.o
        obj-$(CONFIG_CRYPTO_SERPENT_AVX2_X86_64) += serpent-avx2.o
-       obj-$(CONFIG_CRYPTO_SHA1_MB) += sha-mb/
+       obj-$(CONFIG_CRYPTO_SHA1_MB) += sha1-mb/
        obj-$(CONFIG_CRYPTO_SHA256_MB) += sha256-mb/
 endif
 
similarity index 99%
rename from arch/x86/crypto/sha-mb/sha1_mb.c
rename to arch/x86/crypto/sha1-mb/sha1_mb.c
index 669cc37268e1c72051b6f38d01f2028893206a64..561b2867b8788e636c77612d78cfd7a3f03e4a0a 100644 (file)
@@ -67,7 +67,7 @@
 #include <asm/byteorder.h>
 #include <linux/hardirq.h>
 #include <asm/fpu/api.h>
-#include "sha_mb_ctx.h"
+#include "sha1_mb_ctx.h"
 
 #define FLUSH_INTERVAL 1000 /* in usec */
 
similarity index 99%
rename from arch/x86/crypto/sha-mb/sha_mb_ctx.h
rename to arch/x86/crypto/sha1-mb/sha1_mb_ctx.h
index e36069d0c1bdbb5aeef1009f320681e5d66aa26c..98a35bcc6f4ad4feb4c967d4e6f0f1b1882fe8c6 100644 (file)
@@ -54,7 +54,7 @@
 #ifndef _SHA_MB_CTX_INTERNAL_H
 #define _SHA_MB_CTX_INTERNAL_H
 
-#include "sha_mb_mgr.h"
+#include "sha1_mb_mgr.h"
 
 #define HASH_UPDATE          0x00
 #define HASH_FIRST           0x01
similarity index 99%
rename from arch/x86/crypto/sha-mb/sha1_mb_mgr_init_avx2.c
rename to arch/x86/crypto/sha1-mb/sha1_mb_mgr_init_avx2.c
index 822acb5b464c2f1b53a335ff33d658d734887528..d2add0d35f43bb8d5c1a2fb53205ca392675a09b 100644 (file)
@@ -51,7 +51,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "sha_mb_mgr.h"
+#include "sha1_mb_mgr.h"
 
 void sha1_mb_mgr_init_avx2(struct sha1_mb_mgr *state)
 {