Lines Matching full:dh
17 * DOC: DH Helper Functions
19 * To use DH with the KPP cipher API, the following data structure and
22 * To use DH with KPP, the following functions should be used to operate on
23 * a DH private key. The packet private key that can be set with
28 * struct dh - define a DH private key
30 * @key: Private DH key
34 * @key_size: Size of the private DH key
35 * @p_size: Size of DH parameter P
36 * @q_size: Size of DH parameter Q
37 * @g_size: Size of DH generator G
39 struct dh { struct
51 * crypto_dh_key_len() - Obtain the size of the private DH key
52 * @params: private DH key
54 * This function returns the packet DH key size. A caller can use that
55 * with the provided DH private key reference to obtain the required
60 unsigned int crypto_dh_key_len(const struct dh *params); argument
64 * @buf: Buffer allocated by the caller to hold the packet DH
70 * The DH implementations operate on a packet representation of the private
75 int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params);
82 * unpacked DH private key.
89 int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params);