From 572fe07633123ce38abf28c6426356e37aef3a99 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 Jul 2003 00:17:37 +0000 Subject: create DLL version, fix GetNextIV() bug in CTR and OFB modes git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@87 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- algebra.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'algebra.h') diff --git a/algebra.h b/algebra.h index a9c677e..498d520 100644 --- a/algebra.h +++ b/algebra.h @@ -207,6 +207,9 @@ public: void DivisionAlgorithm(Element &r, Element &q, const Element &a, const Element &d) const {Element::Divide(r, q, a, d);} + bool operator==(const EuclideanDomainOf &rhs) const + {return true;} + private: mutable Element result; }; @@ -265,6 +268,9 @@ public: const Element& MultiplicativeInverse(const Element &a) const; + bool operator==(const QuotientRing &rhs) const + {return m_domain == rhs.m_domain && m_modulus == rhs.m_modulus;} + protected: EuclideanDomain m_domain; Element m_modulus; -- cgit v1.2.1