Searched refs:GFP2Element (Results 1 - 4 of 4) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/libcryptoxx-5.6.0/
H A Dxtr.cpp11 const GFP2Element & GFP2Element::Zero()
13 return Singleton<GFP2Element>().Ref();
16 void XTR_FindPrimesAndGenerator(RandomNumberGenerator &rng, Integer &p, Integer &q, GFP2Element &g, unsigned int pbits, unsigned int qbits)
37 GFP2Element three = gfp2.ConvertIn(3), t;
53 GFP2Element XTR_Exponentiate(const GFP2Element &b, const Integer &e, const Integer &p)
57 return GFP2Element(-3, -3);
64 GFP2Element c = gfp2.ConvertIn(b);
65 GFP2Element c
[all...]
H A Dxtr.h13 class GFP2Element class
16 GFP2Element() {} function in class:GFP2Element
17 GFP2Element(const Integer &c1, const Integer &c2) : c1(c1), c2(c2) {} function in class:GFP2Element
18 GFP2Element(const byte *encodedElement, unsigned int size) function in class:GFP2Element
27 bool operator==(const GFP2Element &rhs) const {return c1 == rhs.c1 && c2 == rhs.c2;}
28 bool operator!=(const GFP2Element &rhs) const {return !operator==(rhs);}
30 void swap(GFP2Element &a)
36 static const GFP2Element & Zero();
43 class GFP2_ONB : public AbstractRing<GFP2Element>
56 GFP2Element ConvertI
[all...]
H A Dxtrcrypt.h19 XTR_DH(const Integer &p, const Integer &q, const GFP2Element &g);
39 const GFP2Element &GetSubgroupGenerator() const {return m_g;}
43 void SetSubgroupGenerator(const GFP2Element &g) {m_g = g;}
49 GFP2Element m_g;
H A Dxtrcrypt.cpp11 XTR_DH::XTR_DH(const Integer &p, const Integer &q, const GFP2Element &g)
46 GFP2Element three = GFP2_ONB<ModularArithmetic>(m_p).ConvertIn(3);
86 GFP2Element y = XTR_Exponentiate(m_g, x, m_p);
92 GFP2Element w(otherPublicKey, PublicKeyLength());
96 GFP2Element three = gfp2.ConvertIn(3);
103 GFP2Element z = XTR_Exponentiate(w, s, m_p);

Completed in 55 milliseconds