diff options
author | Stephan Mueller <smueller@chronox.de> | 2015-03-30 15:57:06 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-03-31 09:21:04 -0400 |
commit | 466a7b9e3e7833a0cc21a69a0bea9d50daf0ca10 (patch) | |
tree | d85bd8d8415e8f79ea4fc54d329c61883a22f93e /crypto/ablk_helper.c | |
parent | 425a882991d9da8bfd2fe0fc495773fab5ac9988 (diff) |
crypto: cryptd - process CRYPTO_ALG_INTERNAL
The cryptd is used as a wrapper around internal ciphers. Therefore, the
cryptd must process the internal cipher by marking cryptd as internal if
the underlying cipher is an internal cipher.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ablk_helper.c')
-rw-r--r-- | crypto/ablk_helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ablk_helper.c b/crypto/ablk_helper.c index ffe7278d4bd8..e1fcf53bb931 100644 --- a/crypto/ablk_helper.c +++ b/crypto/ablk_helper.c | |||
@@ -124,7 +124,8 @@ int ablk_init_common(struct crypto_tfm *tfm, const char *drv_name) | |||
124 | struct async_helper_ctx *ctx = crypto_tfm_ctx(tfm); | 124 | struct async_helper_ctx *ctx = crypto_tfm_ctx(tfm); |
125 | struct cryptd_ablkcipher *cryptd_tfm; | 125 | struct cryptd_ablkcipher *cryptd_tfm; |
126 | 126 | ||
127 | cryptd_tfm = cryptd_alloc_ablkcipher(drv_name, 0, 0); | 127 | cryptd_tfm = cryptd_alloc_ablkcipher(drv_name, CRYPTO_ALG_INTERNAL, |
128 | CRYPTO_ALG_INTERNAL); | ||
128 | if (IS_ERR(cryptd_tfm)) | 129 | if (IS_ERR(cryptd_tfm)) |
129 | return PTR_ERR(cryptd_tfm); | 130 | return PTR_ERR(cryptd_tfm); |
130 | 131 | ||