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

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

Issue 797723006: Implement PBKDF2 (except for generateKey) using BoringSSL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pbkdf2
Patch Set: Use PKCS5_PBKDF2_HMAC() from BoringSSL Created 5 years, 11 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
« no previous file with comments | « no previous file | content/child/webcrypto/nss/util_nss.cc » ('j') | content/child/webcrypto/nss/util_nss.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/algorithm_registry.cc
diff --git a/content/child/webcrypto/algorithm_registry.cc b/content/child/webcrypto/algorithm_registry.cc
index eeef315d40c83bd5a9f6d19337d6d0adb0f25e04..d2a20d72c48149fb7729070ad9ab77c8bd0c755b 100644
--- a/content/child/webcrypto/algorithm_registry.cc
+++ b/content/child/webcrypto/algorithm_registry.cc
@@ -29,7 +29,8 @@ class AlgorithmRegistry {
rsa_oaep_(CreatePlatformRsaOaepImplementation()),
rsa_pss_(CreatePlatformRsaPssImplementation()),
ecdsa_(CreatePlatformEcdsaImplementation()),
- ecdh_(CreatePlatformEcdhImplementation()) {
+ ecdh_(CreatePlatformEcdhImplementation()),
+ pbkdf2_(CreatePlatformPbkdf2Implementation()) {
PlatformInit();
}
@@ -61,6 +62,8 @@ class AlgorithmRegistry {
return ecdsa_.get();
case blink::WebCryptoAlgorithmIdEcdh:
return ecdh_.get();
+ case blink::WebCryptoAlgorithmIdPbkdf2:
+ return pbkdf2_.get();
default:
return NULL;
}
@@ -78,6 +81,7 @@ class AlgorithmRegistry {
const scoped_ptr<AlgorithmImplementation> rsa_pss_;
const scoped_ptr<AlgorithmImplementation> ecdsa_;
const scoped_ptr<AlgorithmImplementation> ecdh_;
+ const scoped_ptr<AlgorithmImplementation> pbkdf2_;
};
} // namespace
« no previous file with comments | « no previous file | content/child/webcrypto/nss/util_nss.cc » ('j') | content/child/webcrypto/nss/util_nss.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698