summaryrefslogtreecommitdiff
path: root/ecp.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-01-23 16:08:46 -0500
committerJeffrey Walton <noloader@gmail.com>2018-01-23 16:08:46 -0500
commit8175f069cd396213e2f6b9a05fda8591b2d2feb8 (patch)
treee9f67d2c46b500c6e2bcc9cb3b49f7209890a6c3 /ecp.h
parent4c1b303c2925ad1a3c69b8f2b0869e513035f9ba (diff)
downloadcryptopp-git-8175f069cd396213e2f6b9a05fda8591b2d2feb8.tar.gz
Update documentation
Diffstat (limited to 'ecp.h')
-rw-r--r--ecp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ecp.h b/ecp.h
index 7b0a201f..834bef0d 100644
--- a/ecp.h
+++ b/ecp.h
@@ -128,12 +128,18 @@ public:
Element BERDecodeElement(BufferedTransformation &bt) const {return m_ec->BERDecodePoint(bt);}
void DEREncodeElement(BufferedTransformation &bt, const Element &v) const {m_ec->DEREncodePoint(bt, v, false);}
- // non-inherited
+ /// \brief Set the elliptic curve
+ /// \param ec ECP derived class
+ /// \details SetCurve() is not inherited
void SetCurve(const ECP &ec)
{
m_ec.reset(new ECP(ec, true));
m_ecOriginal = ec;
}
+
+ /// \brief Get the elliptic curve
+ /// \returns ECP curve
+ /// \details GetCurve() is not inherited
const ECP & GetCurve() const {return *m_ecOriginal;}
private: