summaryrefslogtreecommitdiff
path: root/esign.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-12-03 14:46:52 -0500
committerJeffrey Walton <noloader@gmail.com>2016-12-03 14:46:52 -0500
commit7cc8ad1a1d6b9fdfea6ac3695ac50f45150ce05e (patch)
treeabcaf68b02b5ad548f8ebf2fd23a41d8e3fccda7 /esign.h
parentd45763a7ae1756b937708f31d2c3ca1de020ddff (diff)
downloadcryptopp-git-7cc8ad1a1d6b9fdfea6ac3695ac50f45150ce05e.tar.gz
Updated documentation (Issue 328)
Diffstat (limited to 'esign.h')
-rw-r--r--esign.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/esign.h b/esign.h
index fa6bd2f4..c76129fd 100644
--- a/esign.h
+++ b/esign.h
@@ -64,7 +64,13 @@ class InvertibleESIGNFunction : public ESIGNFunction, public RandomizedTrapdoorF
public:
void Initialize(const Integer &n, const Integer &e, const Integer &p, const Integer &q)
{m_n = n; m_e = e; m_p = p; m_q = q;}
- // generate a random private key
+
+ //! \brief Create a RSA private key
+ //! \param rng a RandomNumberGenerator derived class
+ //! \param modulusBits the size of the modulud, in bits
+ //! \details This function overload of Initialize() creates a new keypair because it
+ //! takes a RandomNumberGenerator() as a parameter. If you have an existing keypair,
+ //! then use one of the other Initialize() overloads.
void Initialize(RandomNumberGenerator &rng, unsigned int modulusBits)
{GenerateRandomWithKeySize(rng, modulusBits);}