Index: content/child/webcrypto/shared_crypto.cc |
diff --git a/content/child/webcrypto/shared_crypto.cc b/content/child/webcrypto/shared_crypto.cc |
index af2beaca2a672fbbca28886ed65115dfb49e5112..0e67a6e9bd750a71d1e6ab42614f65ceae9501ce 100644 |
--- a/content/child/webcrypto/shared_crypto.cc |
+++ b/content/child/webcrypto/shared_crypto.cc |
@@ -519,6 +519,18 @@ Status Digest(const blink::WebCryptoAlgorithm& algorithm, |
} |
} |
+blink::WebCryptoDigestor* CreateDigestor(blink::WebCryptoAlgorithm algorithm) { |
+ switch (algorithm.id()) { |
+ case blink::WebCryptoAlgorithmIdSha1: |
+ case blink::WebCryptoAlgorithmIdSha256: |
+ case blink::WebCryptoAlgorithmIdSha384: |
+ case blink::WebCryptoAlgorithmIdSha512: |
+ return platform::CreateDigestor(algorithm.id()); |
+ default: |
+ return 0; |
eroman
2014/03/25 23:26:23
return NULL in chromium land
jww
2014/03/26 00:42:31
Done.
|
+ } |
+} |
+ |
Status GenerateSecretKey(const blink::WebCryptoAlgorithm& algorithm, |
bool extractable, |
blink::WebCryptoKeyUsageMask usage_mask, |