Lines Matching defs:key
18 * a DH private key. The packet private key that can be set with
23 * struct dh - define a DH private key
25 * @key: Private DH key
29 * @key_size: Size of the private DH key
35 void *key;
46 * crypto_dh_key_len() - Obtain the size of the private DH key
47 * @params: private DH key
49 * This function returns the packet DH key size. A caller can use that
50 * with the provided DH private key reference to obtain the required
51 * memory size to hold a packet key.
53 * Return: size of the key in bytes
58 * crypto_dh_encode_key() - encode the private key
60 * private key. The buffer should be at least crypto_dh_key_len
62 * @len: Length of the packet private key buffer
63 * @params: Buffer with the caller-specified private key
66 * key.
73 * crypto_dh_decode_key() - decode a private key
74 * @buf: Buffer holding a packet key that should be decoded
75 * @len: Length of the packet private key buffer
77 * unpacked DH private key.
79 * The unpacking obtains the private key by pointing @p to the correct location