summaryrefslogtreecommitdiff
path: root/luc.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 /luc.h
parentd45763a7ae1756b937708f31d2c3ca1de020ddff (diff)
downloadcryptopp-git-7cc8ad1a1d6b9fdfea6ac3695ac50f45150ce05e.tar.gz
Updated documentation (Issue 328)
Diffstat (limited to 'luc.h')
-rw-r--r--luc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/luc.h b/luc.h
index ea16a44a..5d114274 100644
--- a/luc.h
+++ b/luc.h
@@ -76,6 +76,14 @@ class InvertibleLUCFunction : public LUCFunction, public TrapdoorFunctionInverse
public:
virtual ~InvertibleLUCFunction() {}
+ //! \brief Create a LUC private key
+ //! \param rng a RandomNumberGenerator derived class
+ //! \param modulusBits the size of the modulus, in bits
+ //! \param eStart the desired starting public exponent
+ //! \details Initialize() creates a new keypair using a starting public exponent of 17.
+ //! \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, const Integer &eStart=17);
void Initialize(const Integer &n, const Integer &e, const Integer &p, const Integer &q, const Integer &u)
{m_n = n; m_e = e; m_p = p; m_q = q; m_u = u;}