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; |