crypto: aead - Remove CRYPTO_ALG_AEAD_NEW flag
[deliverable/linux.git] / crypto / tcrypt.c
index e9a05ba2bfb4468d9fc6550bdf27fdb0a0adad9c..2b00b617daab537dba7657b6fbc569d440db931f 100644 (file)
@@ -344,12 +344,7 @@ static void test_aead_speed(const char *algo, int enc, unsigned int secs,
                goto out_nosg;
        sgout = &sg[9];
 
-       tfm = crypto_alloc_aead(algo, CRYPTO_ALG_AEAD_NEW,
-                               CRYPTO_ALG_AEAD_NEW);
-       if (PTR_ERR(tfm) == -ENOENT) {
-               aad_size -= 8;
-               tfm = crypto_alloc_aead(algo, 0, CRYPTO_ALG_AEAD_NEW);
-       }
+       tfm = crypto_alloc_aead(algo, 0, 0);
 
        if (IS_ERR(tfm)) {
                pr_err("alg: aead: Failed to load transform for %s: %ld\n", algo,
This page took 0.024961 seconds and 5 git commands to generate.