Lines Matching refs:algo
144 static void test_cipher_speed(const char *algo, int enc, unsigned int sec, in test_cipher_speed() argument
161 printk("\ntesting speed of %s %s\n", algo, e); in test_cipher_speed()
163 tfm = crypto_alloc_blkcipher(algo, 0, CRYPTO_ALG_ASYNC); in test_cipher_speed()
166 printk("failed to load transform for %s: %ld\n", algo, in test_cipher_speed()
416 static void test_hash_speed(const char *algo, unsigned int sec, in test_hash_speed() argument
426 printk(KERN_INFO "\ntesting speed of %s\n", algo); in test_hash_speed()
428 tfm = crypto_alloc_hash(algo, 0, CRYPTO_ALG_ASYNC); in test_hash_speed()
431 printk(KERN_ERR "failed to load transform for %s: %ld\n", algo, in test_hash_speed()
654 static void test_ahash_speed(const char *algo, unsigned int sec, in test_ahash_speed() argument
664 printk(KERN_INFO "\ntesting speed of async %s\n", algo); in test_ahash_speed()
666 tfm = crypto_alloc_ahash(algo, 0, 0); in test_ahash_speed()
669 algo, PTR_ERR(tfm)); in test_ahash_speed()
808 static void test_acipher_speed(const char *algo, int enc, unsigned int sec, in test_acipher_speed() argument
826 pr_info("\ntesting speed of async %s %s\n", algo, e); in test_acipher_speed()
830 tfm = crypto_alloc_ablkcipher(algo, 0, 0); in test_acipher_speed()
833 pr_err("failed to load transform for %s: %ld\n", algo, in test_acipher_speed()
841 algo); in test_acipher_speed()