aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-08-30 20:33:57 +0000
committerlloyd <[email protected]>2008-08-30 20:33:57 +0000
commita13d73400dcc9f4dbadff86e897b02b963d4f431 (patch)
tree899a4571b486b822768e20897b9043024895ac90 /doc
parent58e5a004c5d0526802745689e421ac5a52f1c9f8 (diff)
Generate a random 2k bit DSA group instead of 1024-bit JCE default
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/dsa_kgen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/dsa_kgen.cpp b/doc/examples/dsa_kgen.cpp
index 2a66d90a3..258ad6cf6 100644
--- a/doc/examples/dsa_kgen.cpp
+++ b/doc/examples/dsa_kgen.cpp
@@ -47,7 +47,9 @@ int main(int argc, char* argv[])
std::auto_ptr<RandomNumberGenerator> rng(
RandomNumberGenerator::make_rng());
- DSA_PrivateKey key(*rng, DL_Group("dsa/jce/1024"));
+ DL_Group group(*rng, DL_Group::DSA_Kosherizer, 2048, 256);
+
+ DSA_PrivateKey key(*rng, group);
pub << X509::PEM_encode(key);
if(argc == 1)