Bug 25198: Remove redundant checking for recognized KeyFormat values
authorMark Watson <watsonm@netflix.com>
Thu, 30 Oct 2014 16:07:12 -0700
changeset 277 42b6c67b5954
parent 276 be842bc4f511
child 278 b8f161c372a5
Bug 25198: Remove redundant checking for recognized KeyFormat values
spec/Overview-WebCryptoAPI.xml
spec/Overview.html
--- a/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 16:05:41 2014 -0700
+++ b/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 16:07:12 2014 -0700
@@ -2226,14 +2226,6 @@
               </li>
               <li>
                 <p>
-                  If <var>format</var> is not
-                  a <a href="#dfn-RecognizedKeyFormats">recognized key
-                  format value</a>, then <a href="#concept-throw">throw</a> a
-                  <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   Let <var>result</var> be the <a href="#dfn-CryptoKey">CryptoKey</a> object that
                   results from performing the import key operation specified by
                   <var>normalizedAlgorithm</var> using <var>keyData</var>,
@@ -2316,14 +2308,6 @@
               </li>
               <li>
                 <p>
-                  If <var>format</var> is not a
-                  <a href="#dfn-RecognizedKeyFormats">recognized key
-                  format value</a>, then <a href="#concept-throw">throw</a> a
-                  <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   If the <a href="#dfn-Algorithm-name">name</a> member of of the [[<a
                   href="#dfn-CryptoKey-slot-algorithm">algorithm</a>]] internal slot of
                   <var>key</var> does not identify a <a href="#algorithms">registered algorithm</a>
@@ -2423,12 +2407,6 @@
               </li>
               <li>
                 <p>
-                  If <var>format</var> is not a <a href="#dfn-RecognizedKeyFormats">recognized key
-                  format value</a>, then <a href="#concept-throw">throw</a> a <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   If the <a href="#dfn-Algorithm-name">name</a> member of
                   <var>normalizedAlgorithm</var> is not equal to the
                   <a href="#dfn-KeyAlgorithm-name">name</a> attribute of the
@@ -2660,12 +2638,6 @@
                 </p>
               </li>
               <li>
-                <p>
-                  If <var>format</var> is not a <a href="#dfn-RecognizedKeyFormats">recognized key
-                  format value</a>, then <a href="#concept-throw">throw</a> a <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
                 <dl class="switch">
                   <dt>If <var>normalizedAlgorithm</var> supports an unwrap key operation:</dt>
                   <dd>
--- a/spec/Overview.html	Thu Oct 30 16:05:41 2014 -0700
+++ b/spec/Overview.html	Thu Oct 30 16:07:12 2014 -0700
@@ -2202,14 +2202,6 @@
               </li>
               <li>
                 <p>
-                  If <var>format</var> is not
-                  a <a href="#dfn-RecognizedKeyFormats">recognized key
-                  format value</a>, then <a href="#concept-throw">throw</a> a
-                  <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   Let <var>result</var> be the <a href="#dfn-CryptoKey">CryptoKey</a> object that
                   results from performing the import key operation specified by
                   <var>normalizedAlgorithm</var> using <var>keyData</var>,
@@ -2289,14 +2281,6 @@
               </li>
               <li>
                 <p>
-                  If <var>format</var> is not a
-                  <a href="#dfn-RecognizedKeyFormats">recognized key
-                  format value</a>, then <a href="#concept-throw">throw</a> a
-                  <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   If the <a href="#dfn-Algorithm-name">name</a> member of of the [[<a href="#dfn-CryptoKey-slot-algorithm">algorithm</a>]] internal slot of
                   <var>key</var> does not identify a <a href="#algorithms">registered algorithm</a>
                   that supports the export key operation, then <a href="#concept-throw">throw</a> a <a href="#dfn-NotSupportedError"><code>NotSupportedError</code></a>.
@@ -2391,12 +2375,6 @@
               </li>
               <li>
                 <p>
-                  If <var>format</var> is not a <a href="#dfn-RecognizedKeyFormats">recognized key
-                  format value</a>, then <a href="#concept-throw">throw</a> a <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   If the <a href="#dfn-Algorithm-name">name</a> member of
                   <var>normalizedAlgorithm</var> is not equal to the
                   <a href="#dfn-KeyAlgorithm-name">name</a> attribute of the
@@ -2619,12 +2597,6 @@
                 </p>
               </li>
               <li>
-                <p>
-                  If <var>format</var> is not a <a href="#dfn-RecognizedKeyFormats">recognized key
-                  format value</a>, then <a href="#concept-throw">throw</a> a <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
                 <dl class="switch">
                   <dt>If <var>normalizedAlgorithm</var> supports an unwrap key operation:</dt>
                   <dd>