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

Unified Diff: Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp

Issue 21759002: WebCrypto: Add algorithm normalization rules for RSASSA-PKCS1-v1_5. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
diff --git a/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp b/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
index b913cb85416fde41a70412917c10c20aed473b19..891cb1090d58b156e77f550c266a01fc81265bcd 100644
--- a/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
+++ b/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
@@ -99,6 +99,20 @@ WebCryptoHmacParams* WebCryptoAlgorithm::hmacParams() const
return 0;
}
+WebCryptoRsaSsaParams* WebCryptoAlgorithm::rsaSsaParams() const
+{
+ if (paramsType() == WebCryptoAlgorithmParamsTypeRsaSsaParams)
+ return static_cast<WebCryptoRsaSsaParams*>(m_private->params.get());
+ return 0;
+}
+
+WebCryptoRsaKeyGenParams* WebCryptoAlgorithm::rsaKeyGenParams() const
+{
+ if (paramsType() == WebCryptoAlgorithmParamsTypeRsaKeyGenParams)
+ return static_cast<WebCryptoRsaKeyGenParams*>(m_private->params.get());
+ return 0;
+}
+
void WebCryptoAlgorithm::assign(const WebCryptoAlgorithm& other)
{
m_private = other.m_private;

Powered by Google App Engine
This is Rietveld 408576698