Skip to content

Commit

Permalink
Cleanup: Don't check for negative values from EVP_DigestVerifyFinal.
Browse files Browse the repository at this point in the history
(No longer a possibility in BoringSSL).

Review URL: https://codereview.chromium.org/707973007

Cr-Commit-Position: refs/heads/master@{#303700}
  • Loading branch information
eroman authored and Commit bot committed Nov 11, 2014
1 parent 9b199fa commit 5a49bc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/signature_verifier_openssl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ bool SignatureVerifier::VerifyFinal() {
int rv = EVP_DigestVerifyFinal(verify_context_->ctx.get(),
vector_as_array(&signature_),
signature_.size());
// rv is -1 if a DER-encoded ECDSA signature cannot be decoded correctly.
DCHECK_GE(rv, -1);
DCHECK_EQ(!!rv, rv);
Reset();
return rv == 1;
}
Expand Down

0 comments on commit 5a49bc9

Please sign in to comment.