aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/eckcdsa
diff options
context:
space:
mode:
authorNever <[email protected]>2016-11-01 17:32:11 +0100
committerNever <[email protected]>2016-11-01 17:32:11 +0100
commit32eb7955d094fc5253084b120221134219259b27 (patch)
treeb12c56864f6ecdbdce749dd9cf7b43549e44c396 /src/lib/pubkey/eckcdsa
parentdad94a550613733d8c75b2fbd8db47048dfdaf13 (diff)
Fix ECKCDSA verification problem
Diffstat (limited to 'src/lib/pubkey/eckcdsa')
-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;
}