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

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

Issue 662403005: Cleanup: Remove IsAlgorithmRsa(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase onto master Created 6 years, 2 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 6ea78f2f5e466078ee10f4e0e3784f1227a26a2f..b052bc916d0e55728f33deb8f5feb34a96edb9d3 100644
--- a/content/child/webcrypto/webcrypto_util.cc
+++ b/content/child/webcrypto/webcrypto_util.cc
@@ -133,12 +133,6 @@ bool KeyUsageAllows(const blink::WebCryptoKey& key,
return ((key.usages() & usage) != 0);
}
-bool IsAlgorithmRsa(blink::WebCryptoAlgorithmId alg_id) {
- return alg_id == blink::WebCryptoAlgorithmIdRsaOaep ||
- alg_id == blink::WebCryptoAlgorithmIdRsaSsaPkcs1v1_5 ||
- alg_id == blink::WebCryptoAlgorithmIdRsaPss;
-}
-
// The WebCrypto spec defines the default value for the tag length, as well as
// the allowed values for tag length.
Status GetAesGcmTagLengthInBits(const blink::WebCryptoAesGcmParams* params,
« 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