Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: hash - Make crypto_ahash_alg helper available

Move the crypto_ahash_alg helper into include/crypto/internal so
that drivers can use it.

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

+6 -6
-6
crypto/ahash.c
··· 31 31 void *ubuf[] CRYPTO_MINALIGN_ATTR; 32 32 }; 33 33 34 - static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) 35 - { 36 - return container_of(crypto_hash_alg_common(hash), struct ahash_alg, 37 - halg); 38 - } 39 - 40 34 static int hash_walk_next(struct crypto_hash_walk *walk) 41 35 { 42 36 unsigned int alignmask = walk->alignmask;
+6
include/crypto/internal/hash.h
··· 149 149 halg); 150 150 } 151 151 152 + static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) 153 + { 154 + return container_of(crypto_hash_alg_common(hash), struct ahash_alg, 155 + halg); 156 + } 157 + 152 158 static inline void crypto_ahash_set_statesize(struct crypto_ahash *tfm, 153 159 unsigned int size) 154 160 {