linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] crypto: Make all AEAD users include aead.h
@ 2015-04-22  7:04 Herbert Xu
  2015-04-22  7:06 ` [PATCH 1/6] crypto: arm64/aes-ce-ccm - Include crypto/internal/aead.h Herbert Xu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Herbert Xu @ 2015-04-22  7:04 UTC (permalink / raw)
  To: Linux Crypto Mailing List, netdev, David S. Miller, Johannes Berg,
	Marcel Holtmann

Hi:

This series adds inclusions of aead.h to all AEAD users including
AEAD implementors (where it's internal/aead.h).  This is necessary
because I'll be adding an updated AEAD interface and that will live
in aead.h instead of crypto.h.

Dave, if it's OK with you I'd like to push the last two patches
through my tree as the new AEAD interface would depend on them.

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/6] crypto: arm64/aes-ce-ccm - Include crypto/internal/aead.h
  2015-04-22  7:04 [PATCH 0/6] crypto: Make all AEAD users include aead.h Herbert Xu
@ 2015-04-22  7:06 ` Herbert Xu
  2015-04-22  7:06 ` [PATCH 2/6] crypto: algif_aead - Include crypto/aead.h Herbert Xu
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Herbert Xu @ 2015-04-22  7:06 UTC (permalink / raw)
  To: Linux Crypto Mailing List, netdev, David S. Miller, Johannes Berg,
	Marcel Holtmann

All implementers of AEAD should include crypto/internal/aead.h
instead of include/linux/crypto.h.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---

 arch/arm64/crypto/aes-ce-ccm-glue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/crypto/aes-ce-ccm-glue.c b/arch/arm64/crypto/aes-ce-ccm-glue.c
index 6c348df..3303e8a 100644
--- a/arch/arm64/crypto/aes-ce-ccm-glue.c
+++ b/arch/arm64/crypto/aes-ce-ccm-glue.c
@@ -13,7 +13,7 @@
 #include <crypto/aes.h>
 #include <crypto/algapi.h>
 #include <crypto/scatterwalk.h>
-#include <linux/crypto.h>
+#include <crypto/internal/aead.h>
 #include <linux/module.h>
 
 #include "aes-ce-setkey.h"

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/6] crypto: algif_aead - Include crypto/aead.h
  2015-04-22  7:04 [PATCH 0/6] crypto: Make all AEAD users include aead.h Herbert Xu
  2015-04-22  7:06 ` [PATCH 1/6] crypto: arm64/aes-ce-ccm - Include crypto/internal/aead.h Herbert Xu
@ 2015-04-22  7:06 ` Herbert Xu
  2015-04-22  7:06 ` [PATCH 3/6] crypto: tcrypt " Herbert Xu
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Herbert Xu @ 2015-04-22  7:06 UTC (permalink / raw)
  To: Linux Crypto Mailing List, netdev, David S. Miller, Johannes Berg,
	Marcel Holtmann

All users of AEAD should include crypto/aead.h instead of
include/linux/crypto.h.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---

 crypto/algif_aead.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c
index 00a6fe1..53702e9 100644
--- a/crypto/algif_aead.c
+++ b/crypto/algif_aead.c
@@ -13,6 +13,7 @@
  * any later version.
  */
 
+#include <crypto/aead.h>
 #include <crypto/scatterwalk.h>
 #include <crypto/if_alg.h>
 #include <linux/init.h>

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/6] crypto: tcrypt - Include crypto/aead.h
  2015-04-22  7:04 [PATCH 0/6] crypto: Make all AEAD users include aead.h Herbert Xu
  2015-04-22  7:06 ` [PATCH 1/6] crypto: arm64/aes-ce-ccm - Include crypto/internal/aead.h Herbert Xu
  2015-04-22  7:06 ` [PATCH 2/6] crypto: algif_aead - Include crypto/aead.h Herbert Xu
@ 2015-04-22  7:06 ` Herbert Xu
  2015-04-22  7:06 ` [PATCH 4/6] crypto: testmgr " Herbert Xu
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Herbert Xu @ 2015-04-22  7:06 UTC (permalink / raw)
  To: Linux Crypto Mailing List, netdev, David S. Miller, Johannes Berg,
	Marcel Holtmann

All users of AEAD should include crypto/aead.h instead of
include/linux/crypto.h.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---

 crypto/tcrypt.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 22cdd61..2bff613 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -22,6 +22,7 @@
  *
  */
 
+#include <crypto/aead.h>
 #include <crypto/hash.h>
 #include <linux/err.h>
 #include <linux/fips.h>

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 4/6] crypto: testmgr - Include crypto/aead.h
  2015-04-22  7:04 [PATCH 0/6] crypto: Make all AEAD users include aead.h Herbert Xu
                   ` (2 preceding siblings ...)
  2015-04-22  7:06 ` [PATCH 3/6] crypto: tcrypt " Herbert Xu
@ 2015-04-22  7:06 ` Herbert Xu
  2015-04-22  7:06 ` [PATCH 5/6] mac80211: " Herbert Xu
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Herbert Xu @ 2015-04-22  7:06 UTC (permalink / raw)
  To: Linux Crypto Mailing List, netdev, David S. Miller, Johannes Berg,
	Marcel Holtmann

All users of AEAD should include crypto/aead.h instead of
include/linux/crypto.h.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---

 crypto/testmgr.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 18b7d49..d463978 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -20,6 +20,7 @@
  *
  */
 
+#include <crypto/aead.h>
 #include <crypto/hash.h>
 #include <linux/err.h>
 #include <linux/fips.h>

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 5/6] mac80211: Include crypto/aead.h
  2015-04-22  7:04 [PATCH 0/6] crypto: Make all AEAD users include aead.h Herbert Xu
                   ` (3 preceding siblings ...)
  2015-04-22  7:06 ` [PATCH 4/6] crypto: testmgr " Herbert Xu
@ 2015-04-22  7:06 ` Herbert Xu
  2015-04-22  7:06 ` [PATCH 6/6] mac802154: " Herbert Xu
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Herbert Xu @ 2015-04-22  7:06 UTC (permalink / raw)
  To: Linux Crypto Mailing List, netdev, David S. Miller, Johannes Berg,
	Marcel Holtmann

All users of AEAD should include crypto/aead.h instead of
include/linux/crypto.h.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---

 net/mac80211/aes_ccm.c  |    3 +--
 net/mac80211/aes_gcm.c  |    3 +--
 net/mac80211/aes_gmac.c |    2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/net/mac80211/aes_ccm.c b/net/mac80211/aes_ccm.c
index 208df7c..70d53da 100644
--- a/net/mac80211/aes_ccm.c
+++ b/net/mac80211/aes_ccm.c
@@ -11,9 +11,8 @@
 
 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/crypto.h>
 #include <linux/err.h>
-#include <crypto/aes.h>
+#include <crypto/aead.h>
 
 #include <net/mac80211.h>
 #include "key.h"
diff --git a/net/mac80211/aes_gcm.c b/net/mac80211/aes_gcm.c
index fd278bb..b91c9d7 100644
--- a/net/mac80211/aes_gcm.c
+++ b/net/mac80211/aes_gcm.c
@@ -8,9 +8,8 @@
 
 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/crypto.h>
 #include <linux/err.h>
-#include <crypto/aes.h>
+#include <crypto/aead.h>
 
 #include <net/mac80211.h>
 #include "key.h"
diff --git a/net/mac80211/aes_gmac.c b/net/mac80211/aes_gmac.c
index f1321b7..c34b06ca 100644
--- a/net/mac80211/aes_gmac.c
+++ b/net/mac80211/aes_gmac.c
@@ -9,8 +9,8 @@
 
 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/crypto.h>
 #include <linux/err.h>
+#include <crypto/aead.h>
 #include <crypto/aes.h>
 
 #include <net/mac80211.h>

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 6/6] mac802154: Include crypto/aead.h
  2015-04-22  7:04 [PATCH 0/6] crypto: Make all AEAD users include aead.h Herbert Xu
                   ` (4 preceding siblings ...)
  2015-04-22  7:06 ` [PATCH 5/6] mac80211: " Herbert Xu
@ 2015-04-22  7:06 ` Herbert Xu
  2015-04-22  7:18 ` [PATCH 0/6] crypto: Make all AEAD users include aead.h Johannes Berg
  2015-04-22 15:41 ` David Miller
  7 siblings, 0 replies; 9+ messages in thread
From: Herbert Xu @ 2015-04-22  7:06 UTC (permalink / raw)
  To: Linux Crypto Mailing List, netdev, David S. Miller, Johannes Berg,
	Marcel Holtmann

All users of AEAD should include crypto/aead.h instead of
include/linux/crypto.h.

This patch also removes a bogus inclusion of algapi.h which should
only be used by algorithm/driver implementors and not crypto users.

Instead linux/crypto.h is added which is necessary because mac802154
also uses blkcipher in addition to aead.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---

 net/mac802154/llsec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c
index dcf7395..3ccf1e9 100644
--- a/net/mac802154/llsec.c
+++ b/net/mac802154/llsec.c
@@ -17,8 +17,9 @@
 #include <linux/err.h>
 #include <linux/bug.h>
 #include <linux/completion.h>
+#include <linux/crypto.h>
 #include <linux/ieee802154.h>
-#include <crypto/algapi.h>
+#include <crypto/aead.h>
 
 #include "ieee802154_i.h"
 #include "llsec.h"

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] crypto: Make all AEAD users include aead.h
  2015-04-22  7:04 [PATCH 0/6] crypto: Make all AEAD users include aead.h Herbert Xu
                   ` (5 preceding siblings ...)
  2015-04-22  7:06 ` [PATCH 6/6] mac802154: " Herbert Xu
@ 2015-04-22  7:18 ` Johannes Berg
  2015-04-22 15:41 ` David Miller
  7 siblings, 0 replies; 9+ messages in thread
From: Johannes Berg @ 2015-04-22  7:18 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Linux Crypto Mailing List, netdev, David S. Miller,
	Marcel Holtmann

On Wed, 2015-04-22 at 15:04 +0800, Herbert Xu wrote:
> Hi:
> 
> This series adds inclusions of aead.h to all AEAD users including
> AEAD implementors (where it's internal/aead.h).  This is necessary
> because I'll be adding an updated AEAD interface and that will live
> in aead.h instead of crypto.h.
> 
> Dave, if it's OK with you I'd like to push the last two patches
> through my tree as the new AEAD interface would depend on them.

Looks good to me. Fine with me if you do that for the mac80211 patch,
I'm not expecting to change that file and cause conflicts.

johannes

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] crypto: Make all AEAD users include aead.h
  2015-04-22  7:04 [PATCH 0/6] crypto: Make all AEAD users include aead.h Herbert Xu
                   ` (6 preceding siblings ...)
  2015-04-22  7:18 ` [PATCH 0/6] crypto: Make all AEAD users include aead.h Johannes Berg
@ 2015-04-22 15:41 ` David Miller
  7 siblings, 0 replies; 9+ messages in thread
From: David Miller @ 2015-04-22 15:41 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, netdev, johannes, marcel

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Wed, 22 Apr 2015 15:04:55 +0800

> This series adds inclusions of aead.h to all AEAD users including
> AEAD implementors (where it's internal/aead.h).  This is necessary
> because I'll be adding an updated AEAD interface and that will live
> in aead.h instead of crypto.h.
> 
> Dave, if it's OK with you I'd like to push the last two patches
> through my tree as the new AEAD interface would depend on them.

No objection, feel free to add my:

Acked-by: David S. Miller <davem@davemloft.net>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-04-22 15:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-22  7:04 [PATCH 0/6] crypto: Make all AEAD users include aead.h Herbert Xu
2015-04-22  7:06 ` [PATCH 1/6] crypto: arm64/aes-ce-ccm - Include crypto/internal/aead.h Herbert Xu
2015-04-22  7:06 ` [PATCH 2/6] crypto: algif_aead - Include crypto/aead.h Herbert Xu
2015-04-22  7:06 ` [PATCH 3/6] crypto: tcrypt " Herbert Xu
2015-04-22  7:06 ` [PATCH 4/6] crypto: testmgr " Herbert Xu
2015-04-22  7:06 ` [PATCH 5/6] mac80211: " Herbert Xu
2015-04-22  7:06 ` [PATCH 6/6] mac802154: " Herbert Xu
2015-04-22  7:18 ` [PATCH 0/6] crypto: Make all AEAD users include aead.h Johannes Berg
2015-04-22 15:41 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).