aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2013-08-15 18:42:28 -0700
committerGregory Maxwell <greg@xiph.org>2013-08-15 18:42:28 -0700
commit47491a90b6544fbb99dc00b3deb554da66c3a54a (patch)
tree337a390536a472307825c284525814143b6a89a2 /src/test
parent13d3b1c144756dfe31792209d09f5205f55f95bb (diff)
parenta81cd96805ce6b65cca3a40ebbd3b2eb428abb7b (diff)
Merge pull request #2131 from sipa/evens
Only create signatures with even S, and verification mode to check.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/canonical_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/canonical_tests.cpp b/src/test/canonical_tests.cpp
index 42d21f8ac5..09988da259 100644
--- a/src/test/canonical_tests.cpp
+++ b/src/test/canonical_tests.cpp
@@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(script_canon)
string test = tv.get_str();
if (IsHex(test)) {
std::vector<unsigned char> sig = ParseHex(test);
- BOOST_CHECK_MESSAGE(IsCanonicalSignature(sig), test);
+ BOOST_CHECK_MESSAGE(IsCanonicalSignature(sig, SCRIPT_VERIFY_STRICTENC), test);
BOOST_CHECK_MESSAGE(IsCanonicalSignature_OpenSSL(sig), test);
}
}
@@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(script_noncanon)
string test = tv.get_str();
if (IsHex(test)) {
std::vector<unsigned char> sig = ParseHex(test);
- BOOST_CHECK_MESSAGE(!IsCanonicalSignature(sig), test);
+ BOOST_CHECK_MESSAGE(!IsCanonicalSignature(sig, SCRIPT_VERIFY_STRICTENC), test);
BOOST_CHECK_MESSAGE(!IsCanonicalSignature_OpenSSL(sig), test);
}
}