Lines Matching refs:algo
250 static void test_mb_aead_speed(const char *algo, int enc, int secs, in test_mb_aead_speed() argument
284 tfm = crypto_alloc_aead(algo, 0, 0); in test_mb_aead_speed()
287 algo, PTR_ERR(tfm)); in test_mb_aead_speed()
318 algo); in test_mb_aead_speed()
332 pr_info("\ntesting speed of multibuffer %s (%s) %s\n", algo, in test_mb_aead_speed()
518 static void test_aead_speed(const char *algo, int enc, unsigned int secs, in test_aead_speed() argument
566 tfm = crypto_alloc_aead(algo, 0, 0); in test_aead_speed()
569 pr_err("alg: aead: Failed to load transform for %s: %ld\n", algo, in test_aead_speed()
575 printk(KERN_INFO "\ntesting speed of %s (%s) %s\n", algo, in test_aead_speed()
581 algo); in test_aead_speed()
811 static void test_mb_ahash_speed(const char *algo, unsigned int secs, in test_mb_ahash_speed() argument
823 tfm = crypto_alloc_ahash(algo, 0, 0); in test_mb_ahash_speed()
826 algo, PTR_ERR(tfm)); in test_mb_ahash_speed()
839 algo); in test_mb_ahash_speed()
853 pr_info("\ntesting speed of multibuffer %s (%s)\n", algo, in test_mb_ahash_speed()
1054 static void test_ahash_speed_common(const char *algo, unsigned int secs, in test_ahash_speed_common() argument
1064 tfm = crypto_alloc_ahash(algo, 0, mask); in test_ahash_speed_common()
1067 algo, PTR_ERR(tfm)); in test_ahash_speed_common()
1071 printk(KERN_INFO "\ntesting speed of async %s (%s)\n", algo, in test_ahash_speed_common()
1135 static void test_ahash_speed(const char *algo, unsigned int secs, in test_ahash_speed() argument
1138 return test_ahash_speed_common(algo, secs, speed, 0); in test_ahash_speed()
1141 static void test_hash_speed(const char *algo, unsigned int secs, in test_hash_speed() argument
1144 return test_ahash_speed_common(algo, secs, speed, CRYPTO_ALG_ASYNC); in test_hash_speed()
1248 static void test_mb_skcipher_speed(const char *algo, int enc, int secs, in test_mb_skcipher_speed() argument
1270 tfm = crypto_alloc_skcipher(algo, 0, 0); in test_mb_skcipher_speed()
1273 algo, PTR_ERR(tfm)); in test_mb_skcipher_speed()
1297 algo); in test_mb_skcipher_speed()
1311 pr_info("\ntesting speed of multibuffer %s (%s) %s\n", algo, in test_mb_skcipher_speed()
1489 static void test_skcipher_speed(const char *algo, int enc, unsigned int secs, in test_skcipher_speed() argument
1509 tfm = crypto_alloc_skcipher(algo, 0, async ? 0 : CRYPTO_ALG_ASYNC); in test_skcipher_speed()
1512 pr_err("failed to load transform for %s: %ld\n", algo, in test_skcipher_speed()
1517 pr_info("\ntesting speed of async %s (%s) %s\n", algo, in test_skcipher_speed()
1523 algo); in test_skcipher_speed()
1619 static void test_acipher_speed(const char *algo, int enc, unsigned int secs, in test_acipher_speed() argument
1623 return test_skcipher_speed(algo, enc, secs, template, tcount, keysize, in test_acipher_speed()
1627 static void test_cipher_speed(const char *algo, int enc, unsigned int secs, in test_cipher_speed() argument
1631 return test_skcipher_speed(algo, enc, secs, template, tcount, keysize, in test_cipher_speed()