diff options
author | lloyd <[email protected]> | 2008-08-30 20:33:57 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-08-30 20:33:57 +0000 |
commit | a13d73400dcc9f4dbadff86e897b02b963d4f431 (patch) | |
tree | 899a4571b486b822768e20897b9043024895ac90 /doc/examples | |
parent | 58e5a004c5d0526802745689e421ac5a52f1c9f8 (diff) |
Generate a random 2k bit DSA group instead of 1024-bit JCE default
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/dsa_kgen.cpp | 4 |
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) |