Index: content/renderer/webcrypto_impl.cc |
diff --git a/content/renderer/webcrypto_impl.cc b/content/renderer/webcrypto_impl.cc |
index b0fc14f5f8731d40220a3a0ae1b98fd5e95e000e..f6f77badee4ead6dce2fe3aba1506ba15a903338 100644 |
--- a/content/renderer/webcrypto_impl.cc |
+++ b/content/renderer/webcrypto_impl.cc |
@@ -71,4 +71,26 @@ void WebCryptoImpl::sign( |
} |
} |
+void WebCryptoImpl::verifySignature( |
+ const WebKit::WebCryptoAlgorithm& algorithm, |
+ const WebKit::WebCryptoKey& key, |
+ const unsigned char* signature, |
+ unsigned signature_size, |
+ const unsigned char* data, |
+ unsigned data_size, |
+ WebKit::WebCryptoResult result) { |
+ bool signature_match = false; |
+ if (!VerifySignatureInternal(algorithm, |
+ key, |
+ signature, |
+ signature_size, |
+ data, |
+ data_size, |
+ &signature_match)) { |
+ result.completeWithError(); |
+ } else { |
+ result.completeWithBoolean(signature_match); |
+ } |
+} |
+ |
} // namespace content |