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

Unified Diff: trunk/Source/modules/crypto/KeyAlgorithm.cpp

Issue 296333002: Revert 174726 "[webcrypto] Remove RSA-ES support (3 of 3)" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 7 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 | « trunk/Source/modules/crypto/KeyAlgorithm.h ('k') | trunk/Source/modules/crypto/KeyAlgorithm.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/modules/crypto/KeyAlgorithm.cpp
===================================================================
--- trunk/Source/modules/crypto/KeyAlgorithm.cpp (revision 174732)
+++ trunk/Source/modules/crypto/KeyAlgorithm.cpp (working copy)
@@ -53,6 +53,8 @@
return AesKeyAlgorithm::create(algorithm);
case blink::WebCryptoKeyAlgorithmParamsTypeHmac:
return HmacKeyAlgorithm::create(algorithm);
+ case blink::WebCryptoKeyAlgorithmParamsTypeRsa:
+ return RsaKeyAlgorithm::create(algorithm);
case blink::WebCryptoKeyAlgorithmParamsTypeRsaHashed:
return RsaHashedKeyAlgorithm::create(algorithm);
}
@@ -93,6 +95,11 @@
return m_algorithm.paramsType() == blink::WebCryptoKeyAlgorithmParamsTypeRsaHashed;
}
+bool KeyAlgorithm::isRsaKeyAlgorithm() const
+{
+ return m_algorithm.paramsType() == blink::WebCryptoKeyAlgorithmParamsTypeRsa;
+}
+
void KeyAlgorithm::trace(Visitor*)
{
}
« no previous file with comments | « trunk/Source/modules/crypto/KeyAlgorithm.h ('k') | trunk/Source/modules/crypto/KeyAlgorithm.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698