static char *alg = NULL;
static u32 type;
+static u32 mask;
static int mode;
static char *tvmem[TVMEMSIZE];
return ret;
}
-static int do_alg_test(const char *alg, u32 type)
+static int do_alg_test(const char *alg, u32 type, u32 mask)
{
- return crypto_has_alg(alg, type, CRYPTO_ALG_TYPE_MASK) ? 0 : -ENOENT;
+ return crypto_has_alg(alg, type, mask ?: CRYPTO_ALG_TYPE_MASK) ?
+ 0 : -ENOENT;
}
static int __init tcrypt_mod_init(void)
}
if (alg)
- err = do_alg_test(alg, type);
+ err = do_alg_test(alg, type, mask);
else
err = do_test(mode);
module_param(alg, charp, 0);
module_param(type, uint, 0);
+module_param(mask, uint, 0);
module_param(mode, int, 0);
module_param(sec, uint, 0);
MODULE_PARM_DESC(sec, "Length in seconds of speed tests "