1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/*
* IKE modular algorithm handling interface, for libreswan
*
* Copyright (C) 2016 Andrew Cagney <cagney@gnu.org>
* Copyright (C) 2018 Paul Woutets <pwouters@redhat.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. See <https://www.gnu.org/licenses/gpl2.txt>.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*/
#ifdef USE_DH2
extern const struct dh_desc ike_alg_dh_modp1024;
#endif
extern const struct dh_desc ike_alg_dh_modp1536;
extern const struct dh_desc ike_alg_dh_modp2048;
extern const struct dh_desc ike_alg_dh_modp3072;
extern const struct dh_desc ike_alg_dh_modp4096;
extern const struct dh_desc ike_alg_dh_modp6144;
extern const struct dh_desc ike_alg_dh_modp8192;
extern const struct dh_desc ike_alg_dh_secp256r1;
extern const struct dh_desc ike_alg_dh_secp384r1;
extern const struct dh_desc ike_alg_dh_secp521r1;
#ifdef USE_DH22
extern const struct dh_desc ike_alg_dh_dh22;
#endif
#ifdef USE_DH23
extern const struct dh_desc ike_alg_dh_dh23;
#endif
#ifdef USE_DH24
extern const struct dh_desc ike_alg_dh_dh24;
#endif
#ifdef USE_DH31
extern const struct dh_desc ike_alg_dh_curve25519;
#endif
/*
* IKEv2 RFC 7296 uses the term "NONE" when referring to no DH
* algorithm.
*/
extern const struct dh_desc ike_alg_dh_none;
|