aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-01 13:14:30 -0400
committerJack Lloyd <[email protected]>2016-11-01 13:14:30 -0400
commit4a0d88a564e6c7218aa0cec4457d86862a2a2ac9 (patch)
treeb12c56864f6ecdbdce749dd9cf7b43549e44c396
parentdad94a550613733d8c75b2fbd8db47048dfdaf13 (diff)
parent32eb7955d094fc5253084b120221134219259b27 (diff)
Merge GH #702 Fix ECKCDSA verification. Closes #701
-rw-r--r--src/lib/pubkey/eckcdsa/eckcdsa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/eckcdsa/eckcdsa.cpp b/src/lib/pubkey/eckcdsa/eckcdsa.cpp
index a7910e898..f3beeeb73 100644
--- a/src/lib/pubkey/eckcdsa/eckcdsa.cpp
+++ b/src/lib/pubkey/eckcdsa/eckcdsa.cpp
@@ -158,7 +158,7 @@ bool ECKCDSA_Verification_Operation::verify(const byte msg[], size_t,
const std::unique_ptr<HashFunction> hash = HashFunction::create(hash_for_signature());
//calculate size of r
size_t size_r = std::min(hash -> output_length(), m_order.bytes());
- if(sig_len < size_r+m_order.bytes())
+ if(sig_len != size_r+m_order.bytes())
{
return false;
}