summaryrefslogtreecommitdiff
path: root/bench2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-01-20 06:10:14 -0500
committerJeffrey Walton <noloader@gmail.com>2017-01-20 06:10:14 -0500
commit08c0e260200b3441c43bb529b5dbe7cdff6e37f7 (patch)
treec84f6549629cb7a69425a7de4af85f02a5563435 /bench2.cpp
parent5522e9313369960bc9db1d1a0e0502ba42e7da7e (diff)
downloadcryptopp-git-08c0e260200b3441c43bb529b5dbe7cdff6e37f7.tar.gz
Add CRYPTOPP_ASSERT to Validate routines
Since we switched to CRYPTOPP_ASSERT we don't have to worry about an accidental assert in production. We can now assert ValidateElement and ValidateGroup and let the code warn of potential problems during development. This came about because ECGDSA inadvertently used GetGroupOrder() rather than GetSubgroupOrder(). The assert alerted to the problem area without the need for debugging
Diffstat (limited to 'bench2.cpp')
-rw-r--r--bench2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bench2.cpp b/bench2.cpp
index 01c45b36..c0db1f00 100644
--- a/bench2.cpp
+++ b/bench2.cpp
@@ -1,11 +1,12 @@
// bench2.cpp - written and placed in the public domain by Wei Dai
#include "cryptlib.h"
+#include "bench.h"
+#include "validate.h"
+
#include "pubkey.h"
#include "gfpcrypt.h"
#include "eccrypto.h"
-#include "bench.h"
-#include "validate.h"
#include "files.h"
#include "filters.h"
@@ -15,7 +16,6 @@
#include "dsa.h"
#include "luc.h"
#include "rw.h"
-#include "eccrypto.h"
#include "ecp.h"
#include "ec2n.h"
#include "asn.h"