summaryrefslogtreecommitdiff
path: root/xtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'xtr.h')
-rw-r--r--xtr.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/xtr.h b/xtr.h
index f520cf5e..d38bae95 100644
--- a/xtr.h
+++ b/xtr.h
@@ -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);