Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
To: herbert@gondor.apana.org.au
Cc: linux-crypto@vger.kernel.org,
	Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Subject: [PATCH v5 1/9] crypto: shrink hash down to two types
Date: Thu,  2 Jun 2016 13:28:55 +0100	[thread overview]
Message-ID: <1464870543-5988-2-git-send-email-giovanni.cabiddu@intel.com> (raw)
In-Reply-To: <1464870543-5988-1-git-send-email-giovanni.cabiddu@intel.com>

Move hash to 0xe to free up the space for acomp/scomp

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
---
 include/linux/crypto.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 6e28c89..d844cbc 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -48,15 +48,15 @@
 #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
-- 
1.7.4.1

  reply	other threads:[~2016-06-02 12:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 12:28 [PATCH v5 0/9] crypto: asynchronous compression api Giovanni Cabiddu
2016-06-02 12:28 ` Giovanni Cabiddu [this message]
2016-06-07 10:52   ` [PATCH v5 1/9] crypto: shrink hash down to two types Herbert Xu
2016-06-02 12:28 ` [PATCH v5 2/9] crypto: add asynchronous compression api Giovanni Cabiddu
2016-06-02 12:28 ` [PATCH v5 3/9] crypto: add driver-side scomp interface Giovanni Cabiddu
2016-06-07 10:22   ` Herbert Xu
2016-06-02 12:28 ` [PATCH v5 4/9] crypto: acomp - add support for lzo via scomp Giovanni Cabiddu
2016-06-02 12:28 ` [PATCH v5 5/9] crypto: acomp - add support for lz4 " Giovanni Cabiddu
2016-06-02 12:29 ` [PATCH v5 6/9] crypto: acomp - add support for lz4hc " Giovanni Cabiddu
2016-06-02 12:29 ` [PATCH v5 7/9] crypto: acomp - add support for 842 " Giovanni Cabiddu
2016-06-02 12:29 ` [PATCH v5 8/9] crypto: acomp - add support for deflate " Giovanni Cabiddu
2016-06-02 12:29 ` [PATCH v5 9/9] crypto: acomp - update testmgr with support for acomp Giovanni Cabiddu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1464870543-5988-2-git-send-email-giovanni.cabiddu@intel.com \
    --to=giovanni.cabiddu@intel.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox