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

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

Issue 26426002: [webcrypto] Add parameters for AES-GCM and RSA-OAEP to blink API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | « Source/bindings/v8/custom/V8AlgorithmCustom.cpp ('k') | Source/modules/crypto/Algorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 464dbae30bff538f7f3ccfd39e358f857ea8e0ba..2a4805b71e33e327f66cadbe72c9958844190bbb 100644
--- a/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
+++ b/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
@@ -113,6 +113,20 @@ const WebCryptoRsaKeyGenParams* WebCryptoAlgorithm::rsaKeyGenParams() const
return 0;
}
+const WebCryptoAesGcmParams* WebCryptoAlgorithm::aesGcmParams() const
+{
+ if (paramsType() == WebCryptoAlgorithmParamsTypeAesGcmParams)
+ return static_cast<WebCryptoAesGcmParams*>(m_private->params.get());
+ return 0;
+}
+
+const WebCryptoRsaOaepParams* WebCryptoAlgorithm::rsaOaepParams() const
+{
+ if (paramsType() == WebCryptoAlgorithmParamsTypeRsaOaepParams)
+ return static_cast<WebCryptoRsaOaepParams*>(m_private->params.get());
+ return 0;
+}
+
void WebCryptoAlgorithm::assign(const WebCryptoAlgorithm& other)
{
m_private = other.m_private;
« no previous file with comments | « Source/bindings/v8/custom/V8AlgorithmCustom.cpp ('k') | Source/modules/crypto/Algorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698