summaryrefslogtreecommitdiff
path: root/pubkey.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-08 17:34:15 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-08 17:34:15 -0400
commita20192a0cedbec8fa30341fcba25becfb87877b9 (patch)
treeddc895fb04dae16024d7a6d82634246f304dd045 /pubkey.h
parentcf137c34525781da247615887e734f1ed2c2c266 (diff)
downloadcryptopp-git-a20192a0cedbec8fa30341fcba25becfb87877b9.tar.gz
Updated documentation
Diffstat (limited to 'pubkey.h')
-rw-r--r--pubkey.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/pubkey.h b/pubkey.h
index 965dcb56..a91df165 100644
--- a/pubkey.h
+++ b/pubkey.h
@@ -1,8 +1,5 @@
// pubkey.h - written and placed in the public domain by Wei Dai
-#ifndef CRYPTOPP_PUBKEY_H
-#define CRYPTOPP_PUBKEY_H
-
//! \file pubkey.h
//! \brief This file contains helper classes/functions for implementing public key algorithms.
//! \details The class hierachies in this header file tend to look like this:
@@ -34,6 +31,9 @@
//! \details The \p TF_ prefix means an implementation using trapdoor functions on integers.
//! \details The \p DL_ prefix means an implementation using group operations (in groups where discrete log is hard).
+#ifndef CRYPTOPP_PUBKEY_H
+#define CRYPTOPP_PUBKEY_H
+
#include "config.h"
#if CRYPTOPP_MSC_VERSION
@@ -201,6 +201,10 @@ public:
//! \details If \p IsRandomized() returns \p false, then \p NullRNG() can be used.
bool IsRandomized() const {return false;}
+ //! \brief Calculates the inverse of an element
+ //! \param rng a \p RandomNumberGenerator derived class
+ //! \param x the element
+ //! \returns the inverse of the element in the group
virtual Integer CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const =0;
};