Lines Matching refs:alg

33 	struct ahash_alg alg;  member
37 struct shash_alg alg; member
72 int crypto_register_ahash(struct ahash_alg *alg);
73 int crypto_unregister_ahash(struct ahash_alg *alg);
83 static inline bool crypto_shash_alg_has_setkey(struct shash_alg *alg) in crypto_shash_alg_has_setkey() argument
85 return alg->setkey != shash_no_setkey; in crypto_shash_alg_has_setkey()
91 struct hash_alg_common *alg,
101 int crypto_register_shash(struct shash_alg *alg);
102 int crypto_unregister_shash(struct shash_alg *alg);
110 struct shash_alg *alg,
131 static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg) in __crypto_ahash_alg() argument
133 return container_of(__crypto_hash_alg_common(alg), struct ahash_alg, in __crypto_ahash_alg()
146 return container_of(&inst->alg.halg.base, struct crypto_instance, alg); in ahash_crypto_instance()
152 return container_of(&inst->alg, struct ahash_instance, alg.halg.base); in ahash_instance()
166 const char *name, struct crypto_alg *alg) in ahash_alloc_instance() argument
168 return crypto_alloc_instance(name, alg, ahash_instance_headroom()); in ahash_alloc_instance()
207 return container_of(&inst->alg.base, struct crypto_instance, alg); in shash_crypto_instance()
213 return container_of(__crypto_shash_alg(&inst->alg), in shash_instance()
214 struct shash_instance, alg); in shash_instance()
223 const char *name, struct crypto_alg *alg) in shash_alloc_instance() argument
225 return crypto_alloc_instance(name, alg, in shash_alloc_instance()
226 sizeof(struct shash_alg) - sizeof(*alg)); in shash_alloc_instance()