Lines Matching refs:alg
38 struct ahash_alg alg; member
42 struct shash_alg alg; member
80 int crypto_register_ahash(struct ahash_alg *alg);
81 int crypto_unregister_ahash(struct ahash_alg *alg);
87 struct hash_alg_common *alg,
97 int crypto_register_shash(struct shash_alg *alg);
98 int crypto_unregister_shash(struct shash_alg *alg);
106 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()
208 return container_of(&inst->alg.base, struct crypto_instance, alg); in shash_crypto_instance()
214 return container_of(__crypto_shash_alg(&inst->alg), in shash_instance()
215 struct shash_instance, alg); in shash_instance()
224 const char *name, struct crypto_alg *alg) in shash_alloc_instance() argument
226 return crypto_alloc_instance2(name, alg, in shash_alloc_instance()
227 sizeof(struct shash_alg) - sizeof(*alg)); in shash_alloc_instance()