linux/crypto/dh_helper.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (c) 2016, Intel Corporation
 * Authors: Salvatore Benedetto <[email protected]>
 */
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/err.h>
#include <linux/string.h>
#include <crypto/dh.h>
#include <crypto/kpp.h>

#define DH_KPP_SECRET_MIN_SIZE

static inline u8 *dh_pack_data(u8 *dst, u8 *end, const void *src, size_t size)
{}

static inline const u8 *dh_unpack_data(void *dst, const void *src, size_t size)
{}

static inline unsigned int dh_data_size(const struct dh *p)
{}

unsigned int crypto_dh_key_len(const struct dh *p)
{}
EXPORT_SYMBOL_GPL();

int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params)
{}
EXPORT_SYMBOL_GPL();

int __crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params)
{}

int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params)
{}
EXPORT_SYMBOL_GPL();