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
31 * struct ecdh - define an ECDH private key
33 * @curve_id: ECC curve the key is based on.
44 * crypto_ecdh_key_len() - Obtain the size of the private ECDH key
47 * This function returns the packet ECDH key size. A caller can use that
49 * memory size to hold a packet key.
56 * crypto_ecdh_encode_key() - encode the private key
57 * @buf: Buffer allocated by the caller to hold the packet ECDH
60 * @len: Length of the packet private key buffer
61 * @p: Buffer with the caller-specified private key
63 * The ECDH implementations operate on a packet representation of the private
66 * Return: -EINVAL if buffer has insufficient size, 0 on success
71 * crypto_ecdh_decode_key() - decode a private key
72 * @buf: Buffer holding a packet key that should be decoded
73 * @len: Length of the packet private key buffer
80 * Return: -EINVAL if buffer has insufficient size, 0 on success