aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/dsa_kgen.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-31 03:43:02 +0000
committerlloyd <[email protected]>2009-12-31 03:43:02 +0000
commit811fed1957f284456e1455032f729e74c4fed458 (patch)
treea0cfed4f7ff52149db0ff091f8670351fadeea29 /doc/examples/dsa_kgen.cpp
parentcf6319e4e663f4214a0f9e1509087a58a181910f (diff)
Add copyright and license notes to pretty much every file that didn't have them,
including the examples and self-test code. Most of these files had not copyright/license information at all; since a major point of the examples is to allow users to copy and paste code that already does something they want, an ambigious license is not good.
Diffstat (limited to 'doc/examples/dsa_kgen.cpp')
-rw-r--r--doc/examples/dsa_kgen.cpp28
1 files changed, 16 insertions, 12 deletions
diff --git a/doc/examples/dsa_kgen.cpp b/doc/examples/dsa_kgen.cpp
index 4669cf705..e949ae54a 100644
--- a/doc/examples/dsa_kgen.cpp
+++ b/doc/examples/dsa_kgen.cpp
@@ -1,19 +1,23 @@
/*
-Generate a 1024 bit DSA key and put it into a file. The public key format is
-that specified by X.509, while the private key format is PKCS #8.
+* (C) 2009 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
-The domain parameters are the ones specified as the Java default DSA
-parameters. There is nothing special about these, it's just the only 1024-bit
-DSA parameter set that's included in Botan at the time of this writing. The
-application always reads/writes all of the domain parameters to/from the file,
-so a new set could be used without any problems. We could generate a new set
-for each key, or read a set of DSA params from a file and use those, but they
-mostly seem like needless complications.
-Written by Jack Lloyd ([email protected]), August 5, 2002
- Updated to use X.509 and PKCS #8 formats, October 21, 2002
+/**
+Generate a 1024 bit DSA key and put it into a file. The public key
+format is that specified by X.509, while the private key format is
+PKCS #8.
-This file is in the public domain
+The domain parameters are the ones specified as the Java default DSA
+parameters. There is nothing special about these, it's just the only
+1024-bit DSA parameter set that's included in Botan at the time of
+this writing. The application always reads/writes all of the domain
+parameters to/from the file, so a new set could be used without any
+problems. We could generate a new set for each key, or read a set of
+DSA params from a file and use those, but they mostly seem like
+needless complications.
*/
#include <iostream>