Lines Matching defs:alg
90 static bool fips140_wait_until_ready(struct crypto_alg *alg) in fips140_wait_until_ready()
109 static int fips140_store_init_function(struct crypto_alg *alg, void *func) in fips140_store_init_function()
127 static void *fips140_load_init_function(struct crypto_alg *alg) in fips140_load_init_function()
136 struct crypto_alg *alg = tfm->__crt_alg; in fips140_alg_init_tfm() local
147 struct aead_alg *alg = crypto_aead_alg(tfm); in fips140_aead_init_tfm() local
159 struct ahash_alg *alg = container_of(halg, struct ahash_alg, halg); in fips140_ahash_init_tfm() local
170 struct shash_alg *alg = crypto_shash_alg(tfm); in fips140_shash_init_tfm() local
181 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in fips140_skcipher_init_tfm() local
192 #define prepare_alg(alg, base_alg, field, wrapper_func) \ argument
204 static int fips140_prepare_alg(struct crypto_alg *alg) in fips140_prepare_alg()
213 static int fips140_prepare_aead_alg(struct aead_alg *alg) in fips140_prepare_aead_alg()
218 static int fips140_prepare_ahash_alg(struct ahash_alg *alg) in fips140_prepare_ahash_alg()
224 static int fips140_prepare_rng_alg(struct rng_alg *alg) in fips140_prepare_rng_alg()
233 static int fips140_prepare_shash_alg(struct shash_alg *alg) in fips140_prepare_shash_alg()
238 static int fips140_prepare_skcipher_alg(struct skcipher_alg *alg) in fips140_prepare_skcipher_alg()
243 int fips140_crypto_register_alg(struct crypto_alg *alg) in fips140_crypto_register_alg()
248 int fips140_crypto_register_aead(struct aead_alg *alg) in fips140_crypto_register_aead()
253 int fips140_crypto_register_ahash(struct ahash_alg *alg) in fips140_crypto_register_ahash()
258 int fips140_crypto_register_rng(struct rng_alg *alg) in fips140_crypto_register_rng()
263 int fips140_crypto_register_shash(struct shash_alg *alg) in fips140_crypto_register_shash()
268 int fips140_crypto_register_skcipher(struct skcipher_alg *alg) in fips140_crypto_register_skcipher()