crypto: cryptomgr - Test ciphers using ECB
[linux-3.10.git] / crypto / algboss.c
index ed9f663c82c65531907ef44a2277022cf9edd485..4601e4267c886182d6b037983fe2630fffb5d8dd 100644 (file)
@@ -210,10 +210,7 @@ static int cryptomgr_test(void *data)
              CRYPTO_ALG_TYPE_BLKCIPHER_MASK) && !(type & CRYPTO_ALG_GENIV))
                goto skiptest;
 
-       if ((type & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_CIPHER)
-               goto skiptest;
-
-       err = alg_test(param->driver, param->alg, 0, CRYPTO_ALG_TESTED);
+       err = alg_test(param->driver, param->alg, type, CRYPTO_ALG_TESTED);
 
 skiptest:
        crypto_alg_tested(param->driver, err);