aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/diffie_hellman.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-08-08 16:20:31 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2016-11-14 16:20:51 +0100
commita4195d3841a0be484bf1ae18572b7d446ee4d0e8 (patch)
treedb55c089a921b4b31a201bc32070437e3baaf9ff /src/libstrongswan/crypto/diffie_hellman.h
parentee5da1633a3587a2fb1e37f92fce61afcebf019b (diff)
downloadstrongswan-a4195d3841a0be484bf1ae18572b7d446ee4d0e8.tar.bz2
strongswan-a4195d3841a0be484bf1ae18572b7d446ee4d0e8.tar.xz
diffie-hellman: Add DH group identifiers for Curve25519 and Curve448
Diffstat (limited to 'src/libstrongswan/crypto/diffie_hellman.h')
-rw-r--r--src/libstrongswan/crypto/diffie_hellman.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstrongswan/crypto/diffie_hellman.h b/src/libstrongswan/crypto/diffie_hellman.h
index f457153c9..1a8110abb 100644
--- a/src/libstrongswan/crypto/diffie_hellman.h
+++ b/src/libstrongswan/crypto/diffie_hellman.h
@@ -37,6 +37,7 @@ typedef struct diffie_hellman_params_t diffie_hellman_params_t;
*
* ECP groups are defined in RFC 4753 and RFC 5114.
* ECC Brainpool groups are defined in RFC 6954.
+ * Curve25519 and Curve448 groups are defined in RFC 8031.
*/
enum diffie_hellman_group_t {
MODP_NONE = 0,
@@ -60,6 +61,8 @@ enum diffie_hellman_group_t {
ECP_256_BP = 28,
ECP_384_BP = 29,
ECP_512_BP = 30,
+ CURVE_25519 = 31,
+ CURVE_448 = 32,
/** insecure NULL diffie hellman group for testing, in PRIVATE USE */
MODP_NULL = 1024,
/** MODP group with custom generator/prime */