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

Unified Diff: Source/modules/crypto/Algorithm.cpp

Issue 21759002: WebCrypto: Add algorithm normalization rules for RSASSA-PKCS1-v1_5. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase onto master Created 7 years, 5 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 | « Source/modules/crypto/AesKeyGenParams.cpp ('k') | Source/modules/crypto/HmacParams.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/Algorithm.cpp
diff --git a/Source/modules/crypto/Algorithm.cpp b/Source/modules/crypto/Algorithm.cpp
index f94cf300dfdb5220da855a611acfec6259fd919c..5fd8855dae20ead0a985c3f3a59c3a2d72685f91 100644
--- a/Source/modules/crypto/Algorithm.cpp
+++ b/Source/modules/crypto/Algorithm.cpp
@@ -34,6 +34,8 @@
#include "modules/crypto/AesCbcParams.h"
#include "modules/crypto/AesKeyGenParams.h"
#include "modules/crypto/HmacParams.h"
+#include "modules/crypto/RsaKeyGenParams.h"
+#include "modules/crypto/RsaSsaParams.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -49,6 +51,10 @@ PassRefPtr<Algorithm> Algorithm::create(const WebKit::WebCryptoAlgorithm& algori
return AesKeyGenParams::create(algorithm);
case WebKit::WebCryptoAlgorithmParamsTypeHmacParams:
return HmacParams::create(algorithm);
+ case WebKit::WebCryptoAlgorithmParamsTypeRsaSsaParams:
+ return RsaSsaParams::create(algorithm);
+ case WebKit::WebCryptoAlgorithmParamsTypeRsaKeyGenParams:
+ return RsaKeyGenParams::create(algorithm);
}
ASSERT_NOT_REACHED();
return 0;
« no previous file with comments | « Source/modules/crypto/AesKeyGenParams.cpp ('k') | Source/modules/crypto/HmacParams.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698