diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-12-03 14:46:52 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-12-03 14:46:52 -0500 |
commit | 7cc8ad1a1d6b9fdfea6ac3695ac50f45150ce05e (patch) | |
tree | abcaf68b02b5ad548f8ebf2fd23a41d8e3fccda7 /esign.h | |
parent | d45763a7ae1756b937708f31d2c3ca1de020ddff (diff) | |
download | cryptopp-git-7cc8ad1a1d6b9fdfea6ac3695ac50f45150ce05e.tar.gz |
Updated documentation (Issue 328)
Diffstat (limited to 'esign.h')
-rw-r--r-- | esign.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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);}
|