aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/dl_group/dl_group.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-23 01:12:17 -0500
committerJack Lloyd <[email protected]>2016-12-23 01:12:17 -0500
commitdfcdc9012fd0b7a75ec35de614e9011416612f0e (patch)
treeb7ac61afc06400a371e35edc05bfe30aecaaf4b0 /src/lib/pubkey/dl_group/dl_group.h
parentf1061aa4d2b6b07ff5291eb758aee6fecc8f1905 (diff)
Add DL_Group tests
Fix a bug in how the 6144 and 8192 IETF MODP groups were encoded; they have g and q values switched. Fixed by just switching the PEM header to match the actual encoded format. Rename DL_Group::X942_DH_PARAMETERS to ANSI_X9_42_DH_PARAMETERS to avoid a macro conflict with Windows cryptography headers (GH #482)
Diffstat (limited to 'src/lib/pubkey/dl_group/dl_group.h')
-rw-r--r--src/lib/pubkey/dl_group/dl_group.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/dl_group/dl_group.h b/src/lib/pubkey/dl_group/dl_group.h
index 39ad9b954..98a49649c 100644
--- a/src/lib/pubkey/dl_group/dl_group.h
+++ b/src/lib/pubkey/dl_group/dl_group.h
@@ -49,7 +49,7 @@ class BOTAN_DLL DL_Group
DSA_PARAMETERS = ANSI_X9_57,
DH_PARAMETERS = ANSI_X9_42,
- X942_DH_PARAMETERS = ANSI_X9_42,
+ ANSI_X9_42_DH_PARAMETERS = ANSI_X9_42,
PKCS3_DH_PARAMETERS = PKCS_3
};
@@ -106,7 +106,7 @@ class BOTAN_DLL DL_Group
* @param name the name that is configured in the global configuration
* for the desired group. If no configuration file is specified,
* the default values from the file policy.cpp will be used. For instance,
- * use "modp/ietf/768" as name.
+ * use "modp/ietf/3072".
*/
DL_Group(const std::string& name);