#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/err.h>
#include <linux/string.h>
#include <crypto/ecdh.h>
#include <crypto/kpp.h>
#define ECDH_KPP_SECRET_MIN_SIZE …
static inline u8 *ecdh_pack_data(void *dst, const void *src, size_t sz)
{ … }
static inline const u8 *ecdh_unpack_data(void *dst, const void *src, size_t sz)
{ … }
unsigned int crypto_ecdh_key_len(const struct ecdh *params)
{ … }
EXPORT_SYMBOL_GPL(…);
int crypto_ecdh_encode_key(char *buf, unsigned int len,
const struct ecdh *params)
{ … }
EXPORT_SYMBOL_GPL(…);
int crypto_ecdh_decode_key(const char *buf, unsigned int len,
struct ecdh *params)
{ … }
EXPORT_SYMBOL_GPL(…);