From: Sebastian Siewior Date: Thu, 2 Aug 2007 12:41:53 +0000 (+0800) Subject: [CRYPTO] api: Add crypto_ablkcipher_ctx_aligned X-Git-Tag: v2.6.24-rc1~1454^2~67 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=aa379a6ab17ff5b06552c52360ce6d9f8c7c209a;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Herbert Xu --- diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index b2b1e6efd81..8081294e432 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) return crypto_tfm_ctx(&tfm->base); } +static inline void *crypto_ablkcipher_ctx_aligned(struct crypto_ablkcipher *tfm) +{ + return crypto_tfm_ctx_aligned(&tfm->base); +} + static inline struct crypto_blkcipher *crypto_spawn_blkcipher( struct crypto_spawn *spawn) {