Index: trunk/Source/platform/exported/WebCryptoAlgorithm.cpp |
=================================================================== |
--- trunk/Source/platform/exported/WebCryptoAlgorithm.cpp (revision 174732) |
+++ trunk/Source/platform/exported/WebCryptoAlgorithm.cpp (working copy) |
@@ -123,6 +123,14 @@ |
return 0; |
} |
+const WebCryptoRsaKeyGenParams* WebCryptoAlgorithm::rsaKeyGenParams() const |
+{ |
+ ASSERT(!isNull()); |
+ if (paramsType() == WebCryptoAlgorithmParamsTypeRsaKeyGenParams) |
+ return static_cast<WebCryptoRsaKeyGenParams*>(m_private->params.get()); |
+ return 0; |
+} |
+ |
const WebCryptoAesGcmParams* WebCryptoAlgorithm::aesGcmParams() const |
{ |
ASSERT(!isNull()); |
@@ -166,6 +174,7 @@ |
case WebCryptoAlgorithmIdAesCbc: |
case WebCryptoAlgorithmIdHmac: |
case WebCryptoAlgorithmIdRsaSsaPkcs1v1_5: |
+ case WebCryptoAlgorithmIdRsaEsPkcs1v1_5: |
case WebCryptoAlgorithmIdAesGcm: |
case WebCryptoAlgorithmIdRsaOaep: |
case WebCryptoAlgorithmIdAesCtr: |