diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-12-04 18:18:34 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-12-04 18:18:34 -0500 |
commit | 0fb28c0ee475c8893f9d33b891d178316ad335a7 (patch) | |
tree | b08058b3d98da54df6b3523bc5712e0fbfd9a299 /xtr.h | |
parent | db1c95401c00cd115d0f0d73ace7facc3e38ff9e (diff) | |
download | cryptopp-git-0fb28c0ee475c8893f9d33b891d178316ad335a7.tar.gz |
Added "algebra.h" include for "make deps" recipe
Diffstat (limited to 'xtr.h')
-rw-r--r-- | xtr.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -1,17 +1,19 @@ #ifndef CRYPTOPP_XTR_H
#define CRYPTOPP_XTR_H
-/** \file
- "The XTR public key system" by Arjen K. Lenstra and Eric R. Verheul
-*/
+//! \file xtr.h
+//! \brief The XTR public key system
+//! \details The XTR public key system by Arjen K. Lenstra and Eric R. Verheul
#include "cryptlib.h"
#include "modarith.h"
#include "integer.h"
+#include "algebra.h"
NAMESPACE_BEGIN(CryptoPP)
-//! an element of GF(p^2)
+//! \class GFP2Element
+//! \brief an element of GF(p^2)
class GFP2Element
{
public:
@@ -40,7 +42,8 @@ public: Integer c1, c2;
};
-//! GF(p^2), optimal normal basis
+//! \class GFP2_ONB
+//! \brief GF(p^2), optimal normal basis
template <class F>
class GFP2_ONB : public AbstractRing<GFP2Element>
{
@@ -208,6 +211,7 @@ protected: mutable Integer t;
};
+//! \brief Creates primes p,q and generator g for XTR
void XTR_FindPrimesAndGenerator(RandomNumberGenerator &rng, Integer &p, Integer &q, GFP2Element &g, unsigned int pbits, unsigned int qbits);
GFP2Element XTR_Exponentiate(const GFP2Element &b, const Integer &e, const Integer &p);
|