aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Siewior <sebastian@breakpoint.cc>2007-08-02 08:41:53 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:55:37 -0400
commitaa379a6ab17ff5b06552c52360ce6d9f8c7c209a (patch)
treed82d4dc09f362d7f23c277ac5b1ee15ce8fcd6f0
parent44db25ca127281036817f861593389d7cfe950f5 (diff)
[CRYPTO] api: Add crypto_ablkcipher_ctx_aligned
This is function does the same thing for ablkcipher that is done for blkcipher by crypto_blkcipher_ctx_aligned(): it returns an aligned address of the private ctx. Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--include/crypto/algapi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index b2b1e6efd812..8081294e4328 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -160,6 +160,11 @@ static inline void *crypto_ablkcipher_ctx(struct crypto_ablkcipher *tfm)
160 return crypto_tfm_ctx(&tfm->base); 160 return crypto_tfm_ctx(&tfm->base);
161} 161}
162 162
163static inline void *crypto_ablkcipher_ctx_aligned(struct crypto_ablkcipher *tfm)
164{
165 return crypto_tfm_ctx_aligned(&tfm->base);
166}
167
163static inline struct crypto_blkcipher *crypto_spawn_blkcipher( 168static inline struct crypto_blkcipher *crypto_spawn_blkcipher(
164 struct crypto_spawn *spawn) 169 struct crypto_spawn *spawn)
165{ 170{