<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[174331] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/174331">174331</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2014-10-05 16:27:48 -0700 (Sun, 05 Oct 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use is&lt;&gt;() / downcast&lt;&gt;() for CryptoAlgorithmParameters subclasses
https://bugs.webkit.org/show_bug.cgi?id=137432

Reviewed by Benjamin Poulain.

Use is&lt;&gt;() / downcast&lt;&gt;() for CryptoAlgorithmParameters subclasses.

No new tests, no behavior change.

* bindings/js/JSCryptoKeySerializationJWK.cpp:
(WebCore::JSCryptoKeySerializationJWK::reconcileAlgorithm):
* crypto/CryptoAlgorithmParameters.h:
* crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:
(WebCore::CryptoAlgorithmAES_CBC::encrypt):
(WebCore::CryptoAlgorithmAES_CBC::decrypt):
(WebCore::CryptoAlgorithmAES_CBC::generateKey):
* crypto/algorithms/CryptoAlgorithmAES_KW.cpp:
(WebCore::CryptoAlgorithmAES_KW::generateKey):
* crypto/algorithms/CryptoAlgorithmHMAC.cpp:
(WebCore::CryptoAlgorithmHMAC::sign):
(WebCore::CryptoAlgorithmHMAC::verify):
(WebCore::CryptoAlgorithmHMAC::generateKey):
(WebCore::CryptoAlgorithmHMAC::importKey):
* crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp:
(WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::generateKey):
* crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp:
(WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::sign):
(WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::verify):
(WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::generateKey):
(WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::importKey):
* crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:
(WebCore::CryptoAlgorithmRSA_OAEP::encrypt):
(WebCore::CryptoAlgorithmRSA_OAEP::decrypt):
(WebCore::CryptoAlgorithmRSA_OAEP::generateKey):
(WebCore::CryptoAlgorithmRSA_OAEP::importKey):
* crypto/parameters/CryptoAlgorithmAesCbcParams.h:
* crypto/parameters/CryptoAlgorithmAesKeyGenParams.h:
* crypto/parameters/CryptoAlgorithmHmacKeyParams.h:
* crypto/parameters/CryptoAlgorithmHmacParams.h:
* crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h:
* crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h:
* crypto/parameters/CryptoAlgorithmRsaOaepParams.h:
* crypto/parameters/CryptoAlgorithmRsaSsaParams.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSCryptoKeySerializationJWKcpp">trunk/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp</a></li>
<li><a href="#trunkSourceWebCorecryptoCryptoAlgorithmParametersh">trunk/Source/WebCore/crypto/CryptoAlgorithmParameters.h</a></li>
<li><a href="#trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmAES_CBCcpp">trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp</a></li>
<li><a href="#trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmAES_KWcpp">trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp</a></li>
<li><a href="#trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmHMACcpp">trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp</a></li>
<li><a href="#trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmRSAES_PKCS1_v1_5cpp">trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp</a></li>
<li><a href="#trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmRSASSA_PKCS1_v1_5cpp">trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp</a></li>
<li><a href="#trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmRSA_OAEPcpp">trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp</a></li>
<li><a href="#trunkSourceWebCorecryptoparametersCryptoAlgorithmAesCbcParamsh">trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmAesCbcParams.h</a></li>
<li><a href="#trunkSourceWebCorecryptoparametersCryptoAlgorithmAesKeyGenParamsh">trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmAesKeyGenParams.h</a></li>
<li><a href="#trunkSourceWebCorecryptoparametersCryptoAlgorithmHmacKeyParamsh">trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmHmacKeyParams.h</a></li>
<li><a href="#trunkSourceWebCorecryptoparametersCryptoAlgorithmHmacParamsh">trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmHmacParams.h</a></li>
<li><a href="#trunkSourceWebCorecryptoparametersCryptoAlgorithmRsaKeyGenParamsh">trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h</a></li>
<li><a href="#trunkSourceWebCorecryptoparametersCryptoAlgorithmRsaKeyParamsWithHashh">trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h</a></li>
<li><a href="#trunkSourceWebCorecryptoparametersCryptoAlgorithmRsaOaepParamsh">trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaOaepParams.h</a></li>
<li><a href="#trunkSourceWebCorecryptoparametersCryptoAlgorithmRsaSsaParamsh">trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaSsaParams.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/ChangeLog        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -1,3 +1,49 @@
</span><ins>+2014-10-05  Christophe Dumez  &lt;cdumez@apple.com&gt;
+
+        Use is&lt;&gt;() / downcast&lt;&gt;() for CryptoAlgorithmParameters subclasses
+        https://bugs.webkit.org/show_bug.cgi?id=137432
+
+        Reviewed by Benjamin Poulain.
+
+        Use is&lt;&gt;() / downcast&lt;&gt;() for CryptoAlgorithmParameters subclasses.
+
+        No new tests, no behavior change.
+
+        * bindings/js/JSCryptoKeySerializationJWK.cpp:
+        (WebCore::JSCryptoKeySerializationJWK::reconcileAlgorithm):
+        * crypto/CryptoAlgorithmParameters.h:
+        * crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:
+        (WebCore::CryptoAlgorithmAES_CBC::encrypt):
+        (WebCore::CryptoAlgorithmAES_CBC::decrypt):
+        (WebCore::CryptoAlgorithmAES_CBC::generateKey):
+        * crypto/algorithms/CryptoAlgorithmAES_KW.cpp:
+        (WebCore::CryptoAlgorithmAES_KW::generateKey):
+        * crypto/algorithms/CryptoAlgorithmHMAC.cpp:
+        (WebCore::CryptoAlgorithmHMAC::sign):
+        (WebCore::CryptoAlgorithmHMAC::verify):
+        (WebCore::CryptoAlgorithmHMAC::generateKey):
+        (WebCore::CryptoAlgorithmHMAC::importKey):
+        * crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp:
+        (WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::generateKey):
+        * crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp:
+        (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::sign):
+        (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::verify):
+        (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::generateKey):
+        (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::importKey):
+        * crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:
+        (WebCore::CryptoAlgorithmRSA_OAEP::encrypt):
+        (WebCore::CryptoAlgorithmRSA_OAEP::decrypt):
+        (WebCore::CryptoAlgorithmRSA_OAEP::generateKey):
+        (WebCore::CryptoAlgorithmRSA_OAEP::importKey):
+        * crypto/parameters/CryptoAlgorithmAesCbcParams.h:
+        * crypto/parameters/CryptoAlgorithmAesKeyGenParams.h:
+        * crypto/parameters/CryptoAlgorithmHmacKeyParams.h:
+        * crypto/parameters/CryptoAlgorithmHmacParams.h:
+        * crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h:
+        * crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h:
+        * crypto/parameters/CryptoAlgorithmRsaOaepParams.h:
+        * crypto/parameters/CryptoAlgorithmRsaSsaParams.h:
+
</ins><span class="cx"> 2014-10-05  Chris Fleizach  &lt;cfleizach@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         AX: iOS8: Crash at -[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSCryptoKeySerializationJWKcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -232,11 +232,11 @@
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     if (algorithm-&gt;identifier() == CryptoAlgorithmIdentifier::HMAC)
</span><del>-        return toCryptoAlgorithmHmacParams(*parameters).hash == toCryptoAlgorithmHmacParams(*suggestedParameters).hash;
</del><ins>+        return downcast&lt;CryptoAlgorithmHmacParams&gt;(*parameters).hash == downcast&lt;CryptoAlgorithmHmacParams&gt;(*suggestedParameters).hash;
</ins><span class="cx">     if (algorithm-&gt;identifier() == CryptoAlgorithmIdentifier::RSASSA_PKCS1_v1_5
</span><span class="cx">         || algorithm-&gt;identifier() == CryptoAlgorithmIdentifier::RSA_OAEP) {
</span><del>-        CryptoAlgorithmRsaKeyParamsWithHash&amp; rsaKeyParameters = toCryptoAlgorithmRsaKeyParamsWithHash(*parameters);
-        CryptoAlgorithmRsaKeyParamsWithHash&amp; suggestedRSAKeyParameters = toCryptoAlgorithmRsaKeyParamsWithHash(*suggestedParameters);
</del><ins>+        CryptoAlgorithmRsaKeyParamsWithHash&amp; rsaKeyParameters = downcast&lt;CryptoAlgorithmRsaKeyParamsWithHash&gt;(*parameters);
+        CryptoAlgorithmRsaKeyParamsWithHash&amp; suggestedRSAKeyParameters = downcast&lt;CryptoAlgorithmRsaKeyParamsWithHash&gt;(*suggestedParameters);
</ins><span class="cx">         ASSERT(rsaKeyParameters.hasHash);
</span><span class="cx">         if (suggestedRSAKeyParameters.hasHash)
</span><span class="cx">             return suggestedRSAKeyParameters.hash == rsaKeyParameters.hash;
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoCryptoAlgorithmParametersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/CryptoAlgorithmParameters.h (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/CryptoAlgorithmParameters.h        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/CryptoAlgorithmParameters.h        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #define CryptoAlgorithmParameters_h
</span><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/Noncopyable.h&gt;
</span><ins>+#include &lt;wtf/TypeCasts.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> 
</span><span class="lines">@@ -52,10 +53,12 @@
</span><span class="cx">     virtual Class parametersClass() const { return Class::None; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-#define CRYPTO_ALGORITHM_PARAMETERS_CASTS(ToClassName) \
-    TYPE_CASTS_BASE(CryptoAlgorithm##ToClassName, CryptoAlgorithmParameters, parameters, parameters-&gt;parametersClass() == CryptoAlgorithmParameters::Class::ToClassName, parameters.parametersClass() == CryptoAlgorithmParameters::Class::ToClassName)
</del><ins>+} // namespace WebCore
</ins><span class="cx"> 
</span><del>-}
</del><ins>+#define SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(ToClassName) \
+SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::CryptoAlgorithm##ToClassName) \
+    static bool isType(const WebCore::CryptoAlgorithmParameters&amp; parameters) { return parameters.parametersClass() == WebCore::CryptoAlgorithmParameters::Class::ToClassName; } \
+SPECIALIZE_TYPE_TRAITS_END()
</ins><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> #endif // CryptoAlgorithmParameters_h
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmAES_CBCcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmAES_CBC::encrypt(const CryptoAlgorithmParameters&amp; parameters, const CryptoKey&amp; key, const CryptoOperationData&amp; data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmAesCbcParams&amp; aesCBCParameters = toCryptoAlgorithmAesCbcParams(parameters);
</del><ins>+    const CryptoAlgorithmAesCbcParams&amp; aesCBCParameters = downcast&lt;CryptoAlgorithmAesCbcParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     if (!keyAlgorithmMatches(aesCBCParameters, key)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmAES_CBC::decrypt(const CryptoAlgorithmParameters&amp; parameters, const CryptoKey&amp; key, const CryptoOperationData&amp; data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmAesCbcParams&amp; aesCBCParameters = toCryptoAlgorithmAesCbcParams(parameters);
</del><ins>+    const CryptoAlgorithmAesCbcParams&amp; aesCBCParameters = downcast&lt;CryptoAlgorithmAesCbcParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     if (!keyAlgorithmMatches(aesCBCParameters, key)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -91,7 +91,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmAES_CBC::generateKey(const CryptoAlgorithmParameters&amp; parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&amp;)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmAesKeyGenParams&amp; aesParameters = toCryptoAlgorithmAesKeyGenParams(parameters);
</del><ins>+    const CryptoAlgorithmAesKeyGenParams&amp; aesParameters = downcast&lt;CryptoAlgorithmAesKeyGenParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;CryptoKeyAES&gt; result = CryptoKeyAES::generate(CryptoAlgorithmIdentifier::AES_CBC, aesParameters.length, extractable, usages);
</span><span class="cx">     if (!result) {
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmAES_KWcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmAES_KW::generateKey(const CryptoAlgorithmParameters&amp; parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&amp;)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmAesKeyGenParams&amp; aesParameters = toCryptoAlgorithmAesKeyGenParams(parameters);
</del><ins>+    const CryptoAlgorithmAesKeyGenParams&amp; aesParameters = downcast&lt;CryptoAlgorithmAesKeyGenParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;CryptoKeyAES&gt; result = CryptoKeyAES::generate(CryptoAlgorithmIdentifier::AES_KW, aesParameters.length, extractable, usages);
</span><span class="cx">     if (!result) {
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmHMACcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmHMAC::sign(const CryptoAlgorithmParameters&amp; parameters, const CryptoKey&amp; key, const CryptoOperationData&amp; data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmHmacParams&amp; hmacParameters = toCryptoAlgorithmHmacParams(parameters);
</del><ins>+    const CryptoAlgorithmHmacParams&amp; hmacParameters = downcast&lt;CryptoAlgorithmHmacParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     if (!keyAlgorithmMatches(hmacParameters, key)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -82,7 +82,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmHMAC::verify(const CryptoAlgorithmParameters&amp; parameters, const CryptoKey&amp; key, const CryptoOperationData&amp; expectedSignature, const CryptoOperationData&amp; data, BoolCallback callback, VoidCallback failureCallback, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmHmacParams&amp; hmacParameters = toCryptoAlgorithmHmacParams(parameters);
</del><ins>+    const CryptoAlgorithmHmacParams&amp; hmacParameters = downcast&lt;CryptoAlgorithmHmacParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     if (!keyAlgorithmMatches(hmacParameters, key)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmHMAC::generateKey(const CryptoAlgorithmParameters&amp; parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&amp;)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmHmacKeyParams&amp; hmacParameters = toCryptoAlgorithmHmacKeyParams(parameters);
</del><ins>+    const CryptoAlgorithmHmacKeyParams&amp; hmacParameters = downcast&lt;CryptoAlgorithmHmacKeyParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;CryptoKeyHMAC&gt; result = CryptoKeyHMAC::generate(hmacParameters.hasLength ? hmacParameters.length : 0, hmacParameters.hash, extractable, usages);
</span><span class="cx">     if (!result) {
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx">     }
</span><span class="cx">     const CryptoKeyDataOctetSequence&amp; keyDataOctetSequence = toCryptoKeyDataOctetSequence(keyData);
</span><span class="cx"> 
</span><del>-    const CryptoAlgorithmHmacParams&amp; hmacParameters = toCryptoAlgorithmHmacParams(parameters);
</del><ins>+    const CryptoAlgorithmHmacParams&amp; hmacParameters = downcast&lt;CryptoAlgorithmHmacParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;CryptoKeyHMAC&gt; result = CryptoKeyHMAC::create(keyDataOctetSequence.octetSequence(), hmacParameters.hash, extractable, usage);
</span><span class="cx">     callback(*result);
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmRSAES_PKCS1_v1_5cpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmRSAES_PKCS1_v1_5::generateKey(const CryptoAlgorithmParameters&amp; parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&amp;)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmRsaKeyGenParams&amp; rsaParameters = toCryptoAlgorithmRsaKeyGenParams(parameters);
</del><ins>+    const CryptoAlgorithmRsaKeyGenParams&amp; rsaParameters = downcast&lt;CryptoAlgorithmRsaKeyGenParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     auto keyPairCallback = [callback](CryptoKeyPair&amp; pair) {
</span><span class="cx">         callback(nullptr, &amp;pair);
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmRSASSA_PKCS1_v1_5cpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmRSASSA_PKCS1_v1_5::sign(const CryptoAlgorithmParameters&amp; parameters, const CryptoKey&amp; key, const CryptoOperationData&amp; data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmRsaSsaParams&amp; rsaSSAParameters = toCryptoAlgorithmRsaSsaParams(parameters);
</del><ins>+    const CryptoAlgorithmRsaSsaParams&amp; rsaSSAParameters = downcast&lt;CryptoAlgorithmRsaSsaParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     if (!keyAlgorithmMatches(rsaSSAParameters, key)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmRSASSA_PKCS1_v1_5::verify(const CryptoAlgorithmParameters&amp; parameters, const CryptoKey&amp; key, const CryptoOperationData&amp; signature, const CryptoOperationData&amp; data, BoolCallback callback, VoidCallback failureCallback, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmRsaSsaParams&amp; rsaSSAParameters = toCryptoAlgorithmRsaSsaParams(parameters);
</del><ins>+    const CryptoAlgorithmRsaSsaParams&amp; rsaSSAParameters = downcast&lt;CryptoAlgorithmRsaSsaParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     if (!keyAlgorithmMatches(rsaSSAParameters, key)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmRSASSA_PKCS1_v1_5::generateKey(const CryptoAlgorithmParameters&amp; parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&amp;)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmRsaKeyGenParams&amp; rsaParameters = toCryptoAlgorithmRsaKeyGenParams(parameters);
</del><ins>+    const CryptoAlgorithmRsaKeyGenParams&amp; rsaParameters = downcast&lt;CryptoAlgorithmRsaKeyGenParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     auto keyPairCallback = [callback](CryptoKeyPair&amp; pair) {
</span><span class="cx">         callback(nullptr, &amp;pair);
</span><span class="lines">@@ -107,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmRSASSA_PKCS1_v1_5::importKey(const CryptoAlgorithmParameters&amp; parameters, const CryptoKeyData&amp; keyData, bool extractable, CryptoKeyUsage usage, KeyCallback callback, VoidCallback failureCallback, ExceptionCode&amp;)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmRsaKeyParamsWithHash&amp; rsaKeyParameters = toCryptoAlgorithmRsaKeyParamsWithHash(parameters);
</del><ins>+    const CryptoAlgorithmRsaKeyParamsWithHash&amp; rsaKeyParameters = downcast&lt;CryptoAlgorithmRsaKeyParamsWithHash&gt;(parameters);
</ins><span class="cx">     const CryptoKeyDataRSAComponents&amp; rsaComponents = toCryptoKeyDataRSAComponents(keyData);
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;CryptoKeyRSA&gt; result = CryptoKeyRSA::create(CryptoAlgorithmIdentifier::RSASSA_PKCS1_v1_5, rsaComponents, extractable, usage);
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoalgorithmsCryptoAlgorithmRSA_OAEPcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmRSA_OAEP::encrypt(const CryptoAlgorithmParameters&amp; parameters, const CryptoKey&amp; key, const CryptoOperationData&amp; data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmRsaOaepParams&amp; rsaOAEPParameters = toCryptoAlgorithmRsaOaepParams(parameters);
</del><ins>+    const CryptoAlgorithmRsaOaepParams&amp; rsaOAEPParameters = downcast&lt;CryptoAlgorithmRsaOaepParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     if (!keyAlgorithmMatches(rsaOAEPParameters, key)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmRSA_OAEP::decrypt(const CryptoAlgorithmParameters&amp; parameters, const CryptoKey&amp; key, const CryptoOperationData&amp; data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmRsaOaepParams&amp; rsaOAEPParameters = toCryptoAlgorithmRsaOaepParams(parameters);
</del><ins>+    const CryptoAlgorithmRsaOaepParams&amp; rsaOAEPParameters = downcast&lt;CryptoAlgorithmRsaOaepParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     if (!keyAlgorithmMatches(rsaOAEPParameters, key)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmRSA_OAEP::generateKey(const CryptoAlgorithmParameters&amp; parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode&amp;)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmRsaKeyGenParams&amp; rsaParameters = toCryptoAlgorithmRsaKeyGenParams(parameters);
</del><ins>+    const CryptoAlgorithmRsaKeyGenParams&amp; rsaParameters = downcast&lt;CryptoAlgorithmRsaKeyGenParams&gt;(parameters);
</ins><span class="cx"> 
</span><span class="cx">     auto keyPairCallback = [callback](CryptoKeyPair&amp; pair) {
</span><span class="cx">         callback(nullptr, &amp;pair);
</span><span class="lines">@@ -107,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CryptoAlgorithmRSA_OAEP::importKey(const CryptoAlgorithmParameters&amp; parameters, const CryptoKeyData&amp; keyData, bool extractable, CryptoKeyUsage usage, KeyCallback callback, VoidCallback failureCallback, ExceptionCode&amp;)
</span><span class="cx"> {
</span><del>-    const CryptoAlgorithmRsaKeyParamsWithHash&amp; rsaKeyParameters = toCryptoAlgorithmRsaKeyParamsWithHash(parameters);
</del><ins>+    const CryptoAlgorithmRsaKeyParamsWithHash&amp; rsaKeyParameters = downcast&lt;CryptoAlgorithmRsaKeyParamsWithHash&gt;(parameters);
</ins><span class="cx">     const CryptoKeyDataRSAComponents&amp; rsaComponents = toCryptoKeyDataRSAComponents(keyData);
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;CryptoKeyRSA&gt; result = CryptoKeyRSA::create(CryptoAlgorithmIdentifier::RSA_OAEP, rsaComponents, extractable, usage);
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoparametersCryptoAlgorithmAesCbcParamsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmAesCbcParams.h (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmAesCbcParams.h        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmAesCbcParams.h        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -41,9 +41,9 @@
</span><span class="cx">     virtual Class parametersClass() const override { return Class::AesCbcParams; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-CRYPTO_ALGORITHM_PARAMETERS_CASTS(AesCbcParams)
</del><ins>+} // namespace WebCore
</ins><span class="cx"> 
</span><del>-}
</del><ins>+SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(AesCbcParams)
</ins><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> #endif // CryptoAlgorithmAesCbcParams_h
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoparametersCryptoAlgorithmAesKeyGenParamsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmAesKeyGenParams.h (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmAesKeyGenParams.h        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmAesKeyGenParams.h        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -40,9 +40,9 @@
</span><span class="cx">     virtual Class parametersClass() const override { return Class::AesKeyGenParams; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-CRYPTO_ALGORITHM_PARAMETERS_CASTS(AesKeyGenParams)
</del><ins>+} // namespace WebCore
</ins><span class="cx"> 
</span><del>-}
</del><ins>+SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(AesKeyGenParams)
</ins><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> #endif // CryptoAlgorithmAesKeyGenParams_h
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoparametersCryptoAlgorithmHmacKeyParamsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmHmacKeyParams.h (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmHmacKeyParams.h        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmHmacKeyParams.h        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -51,9 +51,9 @@
</span><span class="cx">     virtual Class parametersClass() const override { return Class::HmacKeyParams; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-CRYPTO_ALGORITHM_PARAMETERS_CASTS(HmacKeyParams)
</del><ins>+} // namespace WebCore
</ins><span class="cx"> 
</span><del>-}
</del><ins>+SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(HmacKeyParams)
</ins><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> #endif // CryptoAlgorithmHmacKeyParams_h
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoparametersCryptoAlgorithmHmacParamsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmHmacParams.h (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmHmacParams.h        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmHmacParams.h        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -41,9 +41,9 @@
</span><span class="cx">     virtual Class parametersClass() const override { return Class::HmacParams; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-CRYPTO_ALGORITHM_PARAMETERS_CASTS(HmacParams)
</del><ins>+} // namespace WebCore
</ins><span class="cx"> 
</span><del>-}
</del><ins>+SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(HmacParams)
</ins><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> #endif // CryptoAlgorithmHmacParams_h
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoparametersCryptoAlgorithmRsaKeyGenParamsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -43,9 +43,9 @@
</span><span class="cx">     virtual Class parametersClass() const override { return Class::RsaKeyGenParams; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-CRYPTO_ALGORITHM_PARAMETERS_CASTS(RsaKeyGenParams)
</del><ins>+} // namespace WebCore
</ins><span class="cx"> 
</span><del>-}
</del><ins>+SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(RsaKeyGenParams)
</ins><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> #endif // CryptoAlgorithmRsaKeyGenParams_h
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoparametersCryptoAlgorithmRsaKeyParamsWithHashh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -50,9 +50,9 @@
</span><span class="cx">     virtual Class parametersClass() const override { return Class::RsaKeyParamsWithHash; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-CRYPTO_ALGORITHM_PARAMETERS_CASTS(RsaKeyParamsWithHash)
</del><ins>+} // namespace WebCore
</ins><span class="cx"> 
</span><del>-}
</del><ins>+SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(RsaKeyParamsWithHash)
</ins><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> #endif // CryptoAlgorithmRsaKeyParamsWithHash_h
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoparametersCryptoAlgorithmRsaOaepParamsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaOaepParams.h (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaOaepParams.h        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaOaepParams.h        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -51,9 +51,9 @@
</span><span class="cx">     virtual Class parametersClass() const override { return Class::RsaOaepParams; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-CRYPTO_ALGORITHM_PARAMETERS_CASTS(RsaOaepParams)
</del><ins>+} // namespace WebCore
</ins><span class="cx"> 
</span><del>-}
</del><ins>+SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(RsaOaepParams)
</ins><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> #endif // CryptoAlgorithmRsaOaepParams_h
</span></span></pre></div>
<a id="trunkSourceWebCorecryptoparametersCryptoAlgorithmRsaSsaParamsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaSsaParams.h (174330 => 174331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaSsaParams.h        2014-10-05 23:09:59 UTC (rev 174330)
+++ trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmRsaSsaParams.h        2014-10-05 23:27:48 UTC (rev 174331)
</span><span class="lines">@@ -41,9 +41,9 @@
</span><span class="cx">     virtual Class parametersClass() const override { return Class::RsaSsaParams; }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-CRYPTO_ALGORITHM_PARAMETERS_CASTS(RsaSsaParams)
</del><ins>+} // namespace WebCore
</ins><span class="cx"> 
</span><del>-}
</del><ins>+SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(RsaSsaParams)
</ins><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(SUBTLE_CRYPTO)
</span><span class="cx"> #endif // CryptoAlgorithmRsaSsaParams_h
</span></span></pre>
</div>
</div>

</body>
</html>