Index: content/child/webcrypto/algorithm_dispatch.cc |
diff --git a/content/child/webcrypto/algorithm_dispatch.cc b/content/child/webcrypto/algorithm_dispatch.cc |
index 15d96339468c6a7f4a600ce3d3a3ad7d7a6a7c1d..758f5e9da1bc61f87b8355878858df390c08398c 100644 |
--- a/content/child/webcrypto/algorithm_dispatch.cc |
+++ b/content/child/webcrypto/algorithm_dispatch.cc |
@@ -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()) |