Lines Matching defs:kpp_instance
14 * struct kpp_instance - KPP template instance
20 struct kpp_instance {
21 void (*free)(struct kpp_instance *inst);
100 * kpp_crypto_instance() - Cast a &struct kpp_instance to the corresponding
102 * @inst: Pointer to the &struct kpp_instance to be cast.
106 struct kpp_instance *inst)
112 * kpp_instance() - Cast a generic &struct crypto_instance to the corresponding
113 * &struct kpp_instance.
115 * Return: A pointer to the &struct kpp_instance @inst is embedded in.
117 static inline struct kpp_instance *kpp_instance(struct crypto_instance *inst)
119 return container_of(inst, struct kpp_instance, s.base);
123 * kpp_alg_instance() - Get the &struct kpp_instance a given KPP transform has
125 * @kpp: The KPP transform instantiated from some &struct kpp_instance.
126 * Return: The &struct kpp_instance associated with @kpp.
128 static inline struct kpp_instance *kpp_alg_instance(struct crypto_kpp *kpp)
130 return kpp_instance(crypto_tfm_alg_instance(&kpp->base));
134 * kpp_instance_ctx() - Get a pointer to a &struct kpp_instance's implementation
136 * @inst: The &struct kpp_instance whose context data to access.
139 * end of a &struct kpp_instance instantiated from &crypto_template.create().
144 static inline void *kpp_instance_ctx(struct kpp_instance *inst)
182 struct kpp_instance *inst);