Lines Matching +full:packet +full:- +full:based
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
21 * an ECDH private key. The packet private key that can be set with
30 * struct ecdh - define an ECDH private key
32 * @curve_id: ECC curve the key is based on.
43 * crypto_ecdh_key_len() - Obtain the size of the private ECDH key
46 * This function returns the packet ECDH key size. A caller can use that
48 * memory size to hold a packet key.
55 * crypto_ecdh_encode_key() - encode the private key
56 * @buf: Buffer allocated by the caller to hold the packet ECDH
59 * @len: Length of the packet private key buffer
60 * @p: Buffer with the caller-specified private key
62 * The ECDH implementations operate on a packet representation of the private
65 * Return: -EINVAL if buffer has insufficient size, 0 on success
70 * crypto_ecdh_decode_key() - decode a private key
71 * @buf: Buffer holding a packet key that should be decoded
72 * @len: Length of the packet private key buffer
79 * Return: -EINVAL if buffer has insufficient size, 0 on success