diff options
-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; } |