crypto: hash - shrink hash down to two types
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Thu, 2 Jun 2016 12:28:55 +0000 (13:28 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 7 Jun 2016 10:41:54 +0000 (18:41 +0800)
Move hash to 0xe to free up the space for acomp/scomp

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/linux/crypto.h

index 6e28c895c37691879400957e997f9cb0b916fbda..d844cbc365f72ea330c9fe87212e55c36f287524 100644 (file)
 #define CRYPTO_ALG_TYPE_BLKCIPHER      0x00000004
 #define CRYPTO_ALG_TYPE_ABLKCIPHER     0x00000005
 #define CRYPTO_ALG_TYPE_GIVCIPHER      0x00000006
-#define CRYPTO_ALG_TYPE_DIGEST         0x00000008
-#define CRYPTO_ALG_TYPE_HASH           0x00000008
-#define CRYPTO_ALG_TYPE_SHASH          0x00000009
-#define CRYPTO_ALG_TYPE_AHASH          0x0000000a
 #define CRYPTO_ALG_TYPE_RNG            0x0000000c
 #define CRYPTO_ALG_TYPE_AKCIPHER       0x0000000d
+#define CRYPTO_ALG_TYPE_DIGEST         0x0000000e
+#define CRYPTO_ALG_TYPE_HASH           0x0000000e
+#define CRYPTO_ALG_TYPE_SHASH          0x0000000e
+#define CRYPTO_ALG_TYPE_AHASH          0x0000000f
 
 #define CRYPTO_ALG_TYPE_HASH_MASK      0x0000000e
-#define CRYPTO_ALG_TYPE_AHASH_MASK     0x0000000c
+#define CRYPTO_ALG_TYPE_AHASH_MASK     0x0000000e
 #define CRYPTO_ALG_TYPE_BLKCIPHER_MASK 0x0000000c
 
 #define CRYPTO_ALG_LARVAL              0x00000010