diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-04-08 17:34:15 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-04-08 17:34:15 -0400 |
commit | a20192a0cedbec8fa30341fcba25becfb87877b9 (patch) | |
tree | ddc895fb04dae16024d7a6d82634246f304dd045 /pubkey.h | |
parent | cf137c34525781da247615887e734f1ed2c2c266 (diff) | |
download | cryptopp-git-a20192a0cedbec8fa30341fcba25becfb87877b9.tar.gz |
Updated documentation
Diffstat (limited to 'pubkey.h')
-rw-r--r-- | pubkey.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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;
};
|