Commit 3865166e authored by eroman's avatar eroman Committed by Commit bot

Remove an unncessary check on signature length being 0.

BUG=407863

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

Cr-Commit-Position: refs/heads/master@{#292242}
parent da03461b
......@@ -212,15 +212,6 @@ Status Verify(const blink::WebCryptoAlgorithm& algorithm,
if (algorithm.id() != key.algorithm().id())
return Status::ErrorUnexpected();
// TODO(eroman): Move this into implementation which need it instead.
if (!signature.byte_length()) {
// None of the algorithms generate valid zero-length signatures so this
// will necessarily fail verification. Early return to protect
// implementations from dealing with a NULL signature pointer.
*signature_match = false;
return Status::Success();
}
const AlgorithmImplementation* impl = NULL;
Status status = GetAlgorithmImplementation(algorithm.id(), &impl);
if (status.IsError())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment