aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/transforms/diffie_hellman.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-24 16:22:04 +0000
committerMartin Willi <martin@strongswan.org>2005-11-24 16:22:04 +0000
commit8277be60531af90687cc128df122d5d43272f1f0 (patch)
tree0edcaa553c5fa1b1e10b64a0a035934ce36ac3af /Source/charon/transforms/diffie_hellman.c
parent2a1d820155c43a0675352b70b9749cc4ad284529 (diff)
downloadstrongswan-8277be60531af90687cc128df122d5d43272f1f0.tar.bz2
strongswan-8277be60531af90687cc128df122d5d43272f1f0.tar.xz
- moved algorithm definitions from payloads to corresponding transforms
- cleanup of docs in transforms
Diffstat (limited to 'Source/charon/transforms/diffie_hellman.c')
-rw-r--r--Source/charon/transforms/diffie_hellman.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/charon/transforms/diffie_hellman.c b/Source/charon/transforms/diffie_hellman.c
index e018675fe..1992e5719 100644
--- a/Source/charon/transforms/diffie_hellman.c
+++ b/Source/charon/transforms/diffie_hellman.c
@@ -32,6 +32,23 @@
#include <utils/gmp_helper.h>
+/**
+ * string mappings for diffie_hellman_group_t
+ */
+mapping_t diffie_hellman_group_m[] = {
+ {MODP_UNDEFINED, "MODP_UNDEFINED"},
+ {MODP_768_BIT, "MODP_768_BIT"},
+ {MODP_1024_BIT, "MODP_1024_BIT"},
+ {MODP_1536_BIT, "MODP_1536_BIT"},
+ {MODP_2048_BIT, "MODP_2048_BIT"},
+ {MODP_3072_BIT, "MODP_3072_BIT"},
+ {MODP_4096_BIT, "MODP_4096_BIT"},
+ {MODP_6144_BIT, "MODP_6144_BIT"},
+ {MODP_8192_BIT, "MODP_8192_BIT"},
+ {MAPPING_END, NULL}
+};
+
+
/**
* Modulus of Group 1 (MODP_768_BIT)
*/