aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/diffie_hellman.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-04-19 14:41:20 +0200
committerMartin Willi <martin@revosec.ch>2010-04-19 14:41:20 +0200
commit4590260b2dfcc4801ee92df419b1ef81738922ba (patch)
treefe0ffada7282d728b55a2f933f07e52a3ca31e4e /src/libstrongswan/crypto/diffie_hellman.h
parentf0212e8837b54bae2c013470e5a4614e6fb19485 (diff)
downloadstrongswan-4590260b2dfcc4801ee92df419b1ef81738922ba.tar.bz2
strongswan-4590260b2dfcc4801ee92df419b1ef81738922ba.tar.xz
Added support for DH groups 22, 23 and 24, patch contributed by Joy Latten
Diffstat (limited to 'src/libstrongswan/crypto/diffie_hellman.h')
-rw-r--r--src/libstrongswan/crypto/diffie_hellman.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/crypto/diffie_hellman.h b/src/libstrongswan/crypto/diffie_hellman.h
index 7a0c9b204..cdc9c785e 100644
--- a/src/libstrongswan/crypto/diffie_hellman.h
+++ b/src/libstrongswan/crypto/diffie_hellman.h
@@ -50,6 +50,9 @@ enum diffie_hellman_group_t {
ECP_256_BIT = 19,
ECP_384_BIT = 20,
ECP_521_BIT = 21,
+ MODP_1024_160 = 22,
+ MODP_2048_224 = 23,
+ MODP_2048_256 = 24,
ECP_192_BIT = 25,
ECP_224_BIT = 26,
/** insecure NULL diffie hellman group for testing, in PRIVATE USE */
@@ -127,6 +130,11 @@ struct diffie_hellman_params_t {
* Exponent length to use
*/
size_t exp_len;
+
+ /**
+ * Prime order subgroup; for MODP Groups 22-24
+ */
+ const chunk_t subgroup;
};
/**