2 * Diffie-Hellman secret to be used with kpp API along with helper functions
4 * Copyright (c) 2016, Intel Corporation
5 * Authors: Salvatore Benedetto <salvatore.benedetto@intel.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation; either version 2 of the License, or (at your option)
20 unsigned int key_size
;
25 int crypto_dh_key_len(const struct dh
*params
);
26 int crypto_dh_encode_key(char *buf
, unsigned int len
, const struct dh
*params
);
27 int crypto_dh_decode_key(const char *buf
, unsigned int len
, struct dh
*params
);