Merge tag 'md/3.20-fixes' of git://neil.brown.name/md
[deliverable/linux.git] / crypto / cts.c
index 6a8089c4d4b42e4eefc5566817adab45e6ec9b43..e467ec0acf9f091cc2865963b5370cd975791ed3 100644 (file)
@@ -290,6 +290,9 @@ static struct crypto_instance *crypto_cts_alloc(struct rtattr **tb)
        if (!is_power_of_2(alg->cra_blocksize))
                goto out_put_alg;
 
+       if (strncmp(alg->cra_name, "cbc(", 4))
+               goto out_put_alg;
+
        inst = crypto_alloc_instance("cts", alg);
        if (IS_ERR(inst))
                goto out_put_alg;
This page took 0.047399 seconds and 5 git commands to generate.