summaryrefslogtreecommitdiffstats
path: root/content/child/webcrypto/webcrypto_impl.cc
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-18 22:12:49 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-18 22:12:49 +0000
commita36c84a69ee25aff201f20f1ded27a29f3fc757c (patch)
tree30608be26867c9e346cf4ccff1bc49f62c01d94e /content/child/webcrypto/webcrypto_impl.cc
parent8b5c11a0235bd57ba81686a6f6dff35d0abbba51 (diff)
downloadchromium_src-a36c84a69ee25aff201f20f1ded27a29f3fc757c.zip
chromium_src-a36c84a69ee25aff201f20f1ded27a29f3fc757c.tar.gz
chromium_src-a36c84a69ee25aff201f20f1ded27a29f3fc757c.tar.bz2
Revert 284192 due to a failing test.
Review URL: https://codereview.chromium.org/401983002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284215 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/child/webcrypto/webcrypto_impl.cc')
-rw-r--r--content/child/webcrypto/webcrypto_impl.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/content/child/webcrypto/webcrypto_impl.cc b/content/child/webcrypto/webcrypto_impl.cc
index c02263a..43b108b 100644
--- a/content/child/webcrypto/webcrypto_impl.cc
+++ b/content/child/webcrypto/webcrypto_impl.cc
@@ -14,10 +14,9 @@
#include "base/thread_task_runner_handle.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/worker_pool.h"
-#include "content/child/webcrypto/algorithm_dispatch.h"
#include "content/child/webcrypto/crypto_data.h"
+#include "content/child/webcrypto/shared_crypto.h"
#include "content/child/webcrypto/status.h"
-#include "content/child/webcrypto/structured_clone.h"
#include "content/child/webcrypto/webcrypto_util.h"
#include "content/child/worker_thread_task_runner.h"
#include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
@@ -526,11 +525,12 @@ void DoVerify(scoped_ptr<VerifySignatureState> passed_state) {
VerifySignatureState* state = passed_state.get();
if (state->cancelled())
return;
- state->status = webcrypto::Verify(state->algorithm,
- state->key,
- webcrypto::CryptoData(state->signature),
- webcrypto::CryptoData(state->data),
- &state->verify_result);
+ state->status =
+ webcrypto::VerifySignature(state->algorithm,
+ state->key,
+ webcrypto::CryptoData(state->signature),
+ webcrypto::CryptoData(state->data),
+ &state->verify_result);
state->origin_thread->PostTask(
FROM_HERE, base::Bind(DoVerifyReply, Passed(&passed_state)));
@@ -584,6 +584,10 @@ WebCryptoImpl::WebCryptoImpl() {
WebCryptoImpl::~WebCryptoImpl() {
}
+void WebCryptoImpl::EnsureInit() {
+ webcrypto::Init();
+}
+
void WebCryptoImpl::encrypt(const blink::WebCryptoAlgorithm& algorithm,
const blink::WebCryptoKey& key,
const unsigned char* data,