Lines Matching refs:generic_tfm

1748 	struct crypto_shash *generic_tfm = NULL;  in test_hash_vs_generic_impl()  local
1772 generic_tfm = crypto_alloc_shash(generic_driver, 0, 0); in test_hash_vs_generic_impl()
1773 if (IS_ERR(generic_tfm)) { in test_hash_vs_generic_impl()
1774 err = PTR_ERR(generic_tfm); in test_hash_vs_generic_impl()
1792 crypto_shash_descsize(generic_tfm), GFP_KERNEL); in test_hash_vs_generic_impl()
1797 generic_desc->tfm = generic_tfm; in test_hash_vs_generic_impl()
1801 if (digestsize != crypto_shash_digestsize(generic_tfm)) { in test_hash_vs_generic_impl()
1804 crypto_shash_digestsize(generic_tfm)); in test_hash_vs_generic_impl()
1809 if (blocksize != crypto_shash_blocksize(generic_tfm)) { in test_hash_vs_generic_impl()
1811 driver, blocksize, crypto_shash_blocksize(generic_tfm)); in test_hash_vs_generic_impl()
1848 crypto_free_shash(generic_tfm); in test_hash_vs_generic_impl()
2495 struct crypto_aead *generic_tfm = NULL; in test_aead_vs_generic_impl() local
2510 generic_tfm = crypto_alloc_aead(generic_driver, 0, 0); in test_aead_vs_generic_impl()
2511 if (IS_ERR(generic_tfm)) { in test_aead_vs_generic_impl()
2512 err = PTR_ERR(generic_tfm); in test_aead_vs_generic_impl()
2523 generic_req = aead_request_alloc(generic_tfm, GFP_KERNEL); in test_aead_vs_generic_impl()
2532 crypto_aead_maxauthsize(generic_tfm)) { in test_aead_vs_generic_impl()
2535 crypto_aead_maxauthsize(generic_tfm)); in test_aead_vs_generic_impl()
2540 if (crypto_aead_ivsize(tfm) != crypto_aead_ivsize(generic_tfm)) { in test_aead_vs_generic_impl()
2543 crypto_aead_ivsize(generic_tfm)); in test_aead_vs_generic_impl()
2548 if (crypto_aead_blocksize(tfm) != crypto_aead_blocksize(generic_tfm)) { in test_aead_vs_generic_impl()
2551 crypto_aead_blocksize(generic_tfm)); in test_aead_vs_generic_impl()
2587 crypto_free_aead(generic_tfm); in test_aead_vs_generic_impl()
3090 struct crypto_skcipher *generic_tfm = NULL; in test_skcipher_vs_generic_impl() local
3118 generic_tfm = crypto_alloc_skcipher(generic_driver, 0, 0); in test_skcipher_vs_generic_impl()
3119 if (IS_ERR(generic_tfm)) { in test_skcipher_vs_generic_impl()
3120 err = PTR_ERR(generic_tfm); in test_skcipher_vs_generic_impl()
3137 generic_req = skcipher_request_alloc(generic_tfm, GFP_KERNEL); in test_skcipher_vs_generic_impl()
3146 crypto_skcipher_min_keysize(generic_tfm)) { in test_skcipher_vs_generic_impl()
3149 crypto_skcipher_min_keysize(generic_tfm)); in test_skcipher_vs_generic_impl()
3154 if (maxkeysize != crypto_skcipher_max_keysize(generic_tfm)) { in test_skcipher_vs_generic_impl()
3157 crypto_skcipher_max_keysize(generic_tfm)); in test_skcipher_vs_generic_impl()
3162 if (ivsize != crypto_skcipher_ivsize(generic_tfm)) { in test_skcipher_vs_generic_impl()
3164 driver, ivsize, crypto_skcipher_ivsize(generic_tfm)); in test_skcipher_vs_generic_impl()
3169 if (blocksize != crypto_skcipher_blocksize(generic_tfm)) { in test_skcipher_vs_generic_impl()
3172 crypto_skcipher_blocksize(generic_tfm)); in test_skcipher_vs_generic_impl()
3215 crypto_free_skcipher(generic_tfm); in test_skcipher_vs_generic_impl()