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

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

Issue 507873002: Remove some duplicated code, and make rsa_key_nss.cc more closely match rsa_key_openssl.cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 4 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 | « content/child/webcrypto/webcrypto_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/webcrypto_util.cc
diff --git a/content/child/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc
index 8c28fda36c6c2b5cef9edd5d34a5421e03543b5a..1482bbca228b8ed63dc227b64561d4e465ab7b69 100644
--- a/content/child/webcrypto/webcrypto_util.cc
+++ b/content/child/webcrypto/webcrypto_util.cc
@@ -135,23 +135,6 @@ base::ListValue* CreateJwkKeyOpsFromWebCryptoUsages(
return jwk_key_ops;
}
-blink::WebCryptoAlgorithm GetInnerHashAlgorithm(
- const blink::WebCryptoAlgorithm& algorithm) {
- DCHECK(!algorithm.isNull());
- switch (algorithm.paramsType()) {
- case blink::WebCryptoAlgorithmParamsTypeHmacImportParams:
- return algorithm.hmacImportParams()->hash();
- case blink::WebCryptoAlgorithmParamsTypeHmacKeyGenParams:
- return algorithm.hmacKeyGenParams()->hash();
- case blink::WebCryptoAlgorithmParamsTypeRsaHashedImportParams:
- return algorithm.rsaHashedImportParams()->hash();
- case blink::WebCryptoAlgorithmParamsTypeRsaHashedKeyGenParams:
- return algorithm.rsaHashedKeyGenParams()->hash();
- default:
- return blink::WebCryptoAlgorithm::createNull();
- }
-}
-
blink::WebCryptoAlgorithm CreateAlgorithm(blink::WebCryptoAlgorithmId id) {
return blink::WebCryptoAlgorithm::adoptParamsAndCreate(id, NULL);
}
« no previous file with comments | « content/child/webcrypto/webcrypto_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698