Lines Matching refs:spawn
32 * struct crypto_kpp_spawn - KPP algorithm spawn
33 * @base: Internal. Generic crypto core spawn state.
185 * KPP spawn related functions.
188 * crypto_grab_kpp() - Look up a KPP algorithm and bind a spawn to it.
189 * @spawn: The KPP spawn to bind.
190 * @inst: The template instance owning @spawn.
196 int crypto_grab_kpp(struct crypto_kpp_spawn *spawn,
201 * crypto_drop_kpp() - Release a spawn previously bound via crypto_grab_kpp().
202 * @spawn: The spawn to release.
204 static inline void crypto_drop_kpp(struct crypto_kpp_spawn *spawn)
206 crypto_drop_spawn(&spawn->base);
210 * crypto_spawn_kpp_alg() - Get the algorithm a KPP spawn has been bound to.
211 * @spawn: The spawn to get the referenced &struct kpp_alg for.
214 * after @spawn has been successfully bound via crypto_grab_kpp() and
215 * up to until the template instance owning @spawn has either been
216 * registered successfully or the spawn has been released again via
219 * Return: A pointer to the &struct kpp_alg referenced from the spawn.
222 struct crypto_kpp_spawn *spawn)
224 return container_of(spawn->base.alg, struct kpp_alg, base);
228 * crypto_spawn_kpp() - Create a transform from a KPP spawn.
229 * @spawn: The spawn previously bound to some &struct kpp_alg via
240 struct crypto_kpp_spawn *spawn)
242 return crypto_spawn_tfm2(&spawn->base);