Lines Matching refs:alg

38 	struct ahash_alg alg;  member
42 struct shash_alg alg; member
77 int crypto_register_ahash(struct ahash_alg *alg);
78 int crypto_unregister_ahash(struct ahash_alg *alg);
88 static inline bool crypto_shash_alg_has_setkey(struct shash_alg *alg) in crypto_shash_alg_has_setkey() argument
90 return alg->setkey != shash_no_setkey; in crypto_shash_alg_has_setkey()
96 struct hash_alg_common *alg,
106 int crypto_register_shash(struct shash_alg *alg);
107 int crypto_unregister_shash(struct shash_alg *alg);
115 struct shash_alg *alg,
136 static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg) in __crypto_ahash_alg() argument
138 return container_of(__crypto_hash_alg_common(alg), struct ahash_alg, in __crypto_ahash_alg()
151 return container_of(&inst->alg.halg.base, struct crypto_instance, alg); in ahash_crypto_instance()
157 return container_of(&inst->alg, struct ahash_instance, alg.halg.base); in ahash_instance()
171 const char *name, struct crypto_alg *alg) in ahash_alloc_instance() argument
173 return crypto_alloc_instance2(name, alg, ahash_instance_headroom()); in ahash_alloc_instance()
218 return container_of(&inst->alg.base, struct crypto_instance, alg); in shash_crypto_instance()
224 return container_of(__crypto_shash_alg(&inst->alg), in shash_instance()
225 struct shash_instance, alg); in shash_instance()
234 const char *name, struct crypto_alg *alg) in shash_alloc_instance() argument
236 return crypto_alloc_instance2(name, alg, in shash_alloc_instance()
237 sizeof(struct shash_alg) - sizeof(*alg)); in shash_alloc_instance()