Lines Matching full:kpp
3 * Key-agreement Protocol Primitives (KPP)
10 #include <crypto/kpp.h>
14 * struct kpp_instance - KPP template instance
32 * struct crypto_kpp_spawn - KPP algorithm spawn
35 * Template instances can get a hold on some inner KPP algorithm by
63 static inline void kpp_set_reqsize(struct crypto_kpp *kpp, in kpp_set_reqsize() argument
66 kpp->reqsize = reqsize; in kpp_set_reqsize()
69 static inline void kpp_set_reqsize_dma(struct crypto_kpp *kpp, in kpp_set_reqsize_dma() argument
73 kpp->reqsize = reqsize; in kpp_set_reqsize_dma()
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) in kpp_alg_instance() argument
130 return kpp_instance(crypto_tfm_alg_instance(&kpp->base)); in kpp_alg_instance()
138 * A KPP template implementation may allocate extra memory beyond the
150 * KPP algorithm (un)registration functions.
176 * kpp_register_instance() - Register a KPP template instance.
178 * @inst: The KPP template instance to be registered.
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.
191 * @name: The KPP algorithm name to look up.
210 * crypto_spawn_kpp_alg() - Get the algorithm a KPP spawn has been bound to.
228 * crypto_spawn_kpp() - Create a transform from a KPP spawn.
236 * Return: A pointer to the freshly created KPP transform on success