diff options
author | Jack Lloyd <[email protected]> | 2016-11-01 13:14:30 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-01 13:14:30 -0400 |
commit | 4a0d88a564e6c7218aa0cec4457d86862a2a2ac9 (patch) | |
tree | b12c56864f6ecdbdce749dd9cf7b43549e44c396 /src/lib | |
parent | dad94a550613733d8c75b2fbd8db47048dfdaf13 (diff) | |
parent | 32eb7955d094fc5253084b120221134219259b27 (diff) |
Merge GH #702 Fix ECKCDSA verification. Closes #701
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/pubkey/eckcdsa/eckcdsa.cpp | 2 |
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; } |