crypto: cryptd - process CRYPTO_ALG_INTERNAL
authorStephan Mueller <smueller@chronox.de>
Mon, 30 Mar 2015 19:57:06 +0000 (21:57 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 Mar 2015 13:21:04 +0000 (21:21 +0800)
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>
crypto/ablk_helper.c
crypto/cryptd.c

index ffe7278..e1fcf53 100644 (file)
@@ -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);
 
diff --cc crypto/cryptd.c
Simple merge