diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-01-20 06:10:14 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-01-20 06:10:14 -0500 |
commit | 08c0e260200b3441c43bb529b5dbe7cdff6e37f7 (patch) | |
tree | c84f6549629cb7a69425a7de4af85f02a5563435 /bench2.cpp | |
parent | 5522e9313369960bc9db1d1a0e0502ba42e7da7e (diff) | |
download | cryptopp-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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"
|