Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(741)

Unified Diff: content/child/webcrypto/webcrypto_impl.cc

Issue 200763005: Support for the new WebCrypto digest by chunks API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to latest WebCrypto API changes Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/webcrypto/webcrypto_impl.cc
diff --git a/content/child/webcrypto/webcrypto_impl.cc b/content/child/webcrypto/webcrypto_impl.cc
index 076df0d4a3e14296ef9ca7f06f6207f9d6fffd60..46839ee9c8b082826d769ad3520e77f8a857414b 100644
--- a/content/child/webcrypto/webcrypto_impl.cc
+++ b/content/child/webcrypto/webcrypto_impl.cc
@@ -5,6 +5,7 @@
#include "content/child/webcrypto/webcrypto_impl.h"
#include "base/logging.h"
+#include "base/memory/scoped_ptr.h"
#include "content/child/webcrypto/crypto_data.h"
#include "content/child/webcrypto/shared_crypto.h"
#include "content/child/webcrypto/status.h"
@@ -248,6 +249,13 @@ bool WebCryptoImpl::digestSynchronous(
.IsSuccess();
}
+blink::WebCryptoDigestor* WebCryptoImpl::createDigestor(
+ const blink::WebCryptoAlgorithmId algorithm_id) {
+ blink::WebCryptoAlgorithm algorithm =
+ blink::WebCryptoAlgorithm::adoptParamsAndCreate(algorithm_id, NULL);
eroman 2014/03/25 23:26:23 Let's get rid of this, and have the shared_crypto
jww 2014/03/26 00:42:31 Done.
+ return webcrypto::CreateDigestor(algorithm);
+}
+
bool WebCryptoImpl::deserializeKeyForClone(
const blink::WebCryptoKeyAlgorithm& algorithm,
blink::WebCryptoKeyType type,

Powered by Google App Engine
This is Rietveld 408576698