diff options
author | Stephan Mueller <smueller@chronox.de> | 2015-03-30 21:57:06 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-03-31 21:21:04 +0800 |
commit | b760f27b17922669b51740ce8ba50ad42d9d10dd (patch) | |
tree | b5f98b4108e0479478b88a61153851ffe3fd8896 /crypto/ablk_helper.c | |
parent | 1e71a242c082f18f547eb903cd54a68df2de4b0c (diff) | |
download | linux-crypto-b760f27b17922669b51740ce8ba50ad42d9d10dd.tar.gz linux-crypto-b760f27b17922669b51740ce8ba50ad42d9d10dd.zip |
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 ffe7278d..e1fcf53b 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) struct async_helper_ctx *ctx = crypto_tfm_ctx(tfm); struct cryptd_ablkcipher *cryptd_tfm; - cryptd_tfm = cryptd_alloc_ablkcipher(drv_name, 0, 0); + cryptd_tfm = cryptd_alloc_ablkcipher(drv_name, CRYPTO_ALG_INTERNAL, + CRYPTO_ALG_INTERNAL); if (IS_ERR(cryptd_tfm)) return PTR_ERR(cryptd_tfm); |