diff options
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/algapi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index 444f602724db..5748aecdb414 100644 --- a/include/crypto/algapi.h +++ b/include/crypto/algapi.h | |||
@@ -82,6 +82,7 @@ struct blkcipher_walk { | |||
82 | }; | 82 | }; |
83 | 83 | ||
84 | extern const struct crypto_type crypto_blkcipher_type; | 84 | extern const struct crypto_type crypto_blkcipher_type; |
85 | extern const struct crypto_type crypto_hash_type; | ||
85 | 86 | ||
86 | void crypto_mod_put(struct crypto_alg *alg); | 87 | void crypto_mod_put(struct crypto_alg *alg); |
87 | 88 | ||
@@ -136,6 +137,11 @@ static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) | |||
136 | return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher; | 137 | return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher; |
137 | } | 138 | } |
138 | 139 | ||
140 | static inline void *crypto_hash_ctx_aligned(struct crypto_hash *tfm) | ||
141 | { | ||
142 | return crypto_tfm_ctx_aligned(&tfm->base); | ||
143 | } | ||
144 | |||
139 | static inline void blkcipher_walk_init(struct blkcipher_walk *walk, | 145 | static inline void blkcipher_walk_init(struct blkcipher_walk *walk, |
140 | struct scatterlist *dst, | 146 | struct scatterlist *dst, |
141 | struct scatterlist *src, | 147 | struct scatterlist *src, |