aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-02-25 05:11:53 +0000
committerlloyd <[email protected]>2010-02-25 05:11:53 +0000
commit42d9abd0775e67c58e94f0651f19f67bc6bf3e8e (patch)
tree5e4b562e9ad63c631e1c5e844e6bf0d95c522b8a /checks
parent890c95ae45b60f58690fd0b18386cc29549f145f (diff)
Inline some simple GFpElement functions. Remove ostream << operator
Diffstat (limited to 'checks')
-rw-r--r--checks/gfpmath.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/checks/gfpmath.cpp b/checks/gfpmath.cpp
index 18aa4f341..276375fc4 100644
--- a/checks/gfpmath.cpp
+++ b/checks/gfpmath.cpp
@@ -22,6 +22,11 @@
using namespace Botan;
+std::ostream& operator<<(std::ostream& output, const GFpElement& elem)
+ {
+ return output << '(' << elem.get_value() << ',' << elem.get_p() << ')';
+ }
+
#define CHECK_MESSAGE(expr, print) if(!(expr)) { std::cout << print << "\n"; pass = false; }
#define CHECK(expr) if(!(expr)) { std::cout << #expr << "\n"; pass = false; }