/* * ECDH params to be used with kpp API * * Copyright (c) 2016, Intel Corporation * Authors: Salvatore Benedetto <salvatore.benedetto@intel.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. * */#ifndef _CRYPTO_ECDH_#define _CRYPTO_ECDH_/* Curves IDs */#define ECC_CURVE_NIST_P192 0x0001#define ECC_CURVE_NIST_P256 0x0002structecdh{unsignedshortcurve_id;char*key;unsignedshortkey_size;};intcrypto_ecdh_key_len(conststructecdh*params);intcrypto_ecdh_encode_key(char*buf,unsignedintlen,conststructecdh*p);intcrypto_ecdh_decode_key(constchar*buf,unsignedintlen,structecdh*p);#endif