aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/algapi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index b9b05d399d2b..88619f902c10 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -191,7 +191,7 @@ static inline struct crypto_ablkcipher *crypto_spawn_ablkcipher(
191 struct crypto_spawn *spawn) 191 struct crypto_spawn *spawn)
192{ 192{
193 u32 type = CRYPTO_ALG_TYPE_BLKCIPHER; 193 u32 type = CRYPTO_ALG_TYPE_BLKCIPHER;
194 u32 mask = CRYPTO_ALG_TYPE_MASK; 194 u32 mask = CRYPTO_ALG_TYPE_BLKCIPHER_MASK;
195 195
196 return __crypto_ablkcipher_cast(crypto_spawn_tfm(spawn, type, mask)); 196 return __crypto_ablkcipher_cast(crypto_spawn_tfm(spawn, type, mask));
197} 197}
@@ -200,7 +200,7 @@ static inline struct crypto_blkcipher *crypto_spawn_blkcipher(
200 struct crypto_spawn *spawn) 200 struct crypto_spawn *spawn)
201{ 201{
202 u32 type = CRYPTO_ALG_TYPE_BLKCIPHER; 202 u32 type = CRYPTO_ALG_TYPE_BLKCIPHER;
203 u32 mask = CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_ASYNC; 203 u32 mask = CRYPTO_ALG_TYPE_MASK;
204 204
205 return __crypto_blkcipher_cast(crypto_spawn_tfm(spawn, type, mask)); 205 return __crypto_blkcipher_cast(crypto_spawn_tfm(spawn, type, mask));
206} 206}