summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-21 15:11:02 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-22 11:25:51 +0800
commit2d0f230fe0649758394466cb69b553c0e8184df9 (patch)
tree3f1585a81d409a05712d8880ee5d3645330dabca /include/crypto
parent996d98d85ccc27d9c592ad7dc1371c60cd6585cc (diff)
downloadlinux-2d0f230fe0649758394466cb69b553c0e8184df9.tar.bz2
crypto: aead - Rename aead_alg to old_aead_alg
This patch is the first step in the introduction of a new AEAD alg type. Unlike normal conversions this patch only renames the existing aead_alg structure because there are external references to it. Those references will be removed after this patch. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/aead.h2
-rw-r--r--include/crypto/internal/aead.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/crypto/aead.h b/include/crypto/aead.h
index e2d2c3c62e68..aebf57dfb903 100644
--- a/include/crypto/aead.h
+++ b/include/crypto/aead.h
@@ -17,6 +17,8 @@
#include <linux/kernel.h>
#include <linux/slab.h>
+#define aead_alg old_aead_alg
+
/**
* DOC: Authenticated Encryption With Associated Data (AEAD) Cipher API
*
diff --git a/include/crypto/internal/aead.h b/include/crypto/internal/aead.h
index a2d104aa3430..84c17bb92b6a 100644
--- a/include/crypto/internal/aead.h
+++ b/include/crypto/internal/aead.h
@@ -26,6 +26,11 @@ struct crypto_aead_spawn {
extern const struct crypto_type crypto_aead_type;
extern const struct crypto_type crypto_nivaead_type;
+static inline struct old_aead_alg *crypto_old_aead_alg(struct crypto_aead *tfm)
+{
+ return &crypto_aead_tfm(tfm)->__crt_alg->cra_aead;
+}
+
static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm)
{
return &crypto_aead_tfm(tfm)->__crt_alg->cra_aead;