Bug 25198: Remove redundant chacking for recognized KeyUsage values
authorMark Watson <watsonm@netflix.com>
Thu, 30 Oct 2014 16:05:41 -0700
changeset 276 be842bc4f511
parent 275 c0b3b769b9df
child 277 42b6c67b5954
Bug 25198: Remove redundant chacking for recognized KeyUsage values
spec/Overview-WebCryptoAPI.xml
spec/Overview.html
--- a/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 16:00:21 2014 -0700
+++ b/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 16:05:41 2014 -0700
@@ -1868,14 +1868,6 @@
               </li>
               <li>
                 <p>
-                  If <var>usages</var> includes a value that is not a
-                  <a href="#dfn-RecognizedKeyUsage">recognized key usage value</a>,
-                  then <a href="#concept-throw">throw</a> an
-                  <a href="#dfn-InvalidAccessError"><code>InvalidAccessError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   Let <var>result</var> be the result of executing the generate key operation
                   specified by <var>normalizedAlgorithm</var> using
                   <var>algorithm</var>, <var>extractable</var> and <var>usages</var>.
@@ -2012,14 +2004,6 @@
               </li>
               <li>
                 <p>
-                  If <var>usages</var> includes a value that is not a
-                  <a href="#dfn-RecognizedKeyUsage">recognized key usage value</a>, 
-                  then <a href="#concept-throw">throw</a> an
-                  <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   Let <var>length</var> be the result of executing the get key length
                   algorithm specified by <var>normalizedDerivedKeyAlgorithm</var> using
                   <var>derivedKeyType</var>.
@@ -2250,14 +2234,6 @@
               </li>
               <li>
                 <p>
-                  If <var>usages</var> includes a value that is not a
-                  <a href="#dfn-RecognizedKeyUsage">recognized key usage 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>,
@@ -2690,14 +2666,6 @@
                 </p>
               </li>
               <li>
-                <p>
-                  If <var>usages</var> includes a value that is not a
-                  <a href="#dfn-RecognizedKeyUsage">recognized key usage 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:00:21 2014 -0700
+++ b/spec/Overview.html	Thu Oct 30 16:05:41 2014 -0700
@@ -1854,14 +1854,6 @@
               </li>
               <li>
                 <p>
-                  If <var>usages</var> includes a value that is not a
-                  <a href="#dfn-RecognizedKeyUsage">recognized key usage value</a>,
-                  then <a href="#concept-throw">throw</a> an
-                  <a href="#dfn-InvalidAccessError"><code>InvalidAccessError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   Let <var>result</var> be the result of executing the generate key operation
                   specified by <var>normalizedAlgorithm</var> using
                   <var>algorithm</var>, <var>extractable</var> and <var>usages</var>.
@@ -1993,14 +1985,6 @@
               </li>
               <li>
                 <p>
-                  If <var>usages</var> includes a value that is not a
-                  <a href="#dfn-RecognizedKeyUsage">recognized key usage value</a>, 
-                  then <a href="#concept-throw">throw</a> an
-                  <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
-                </p>
-              </li>
-              <li>
-                <p>
                   Let <var>length</var> be the result of executing the get key length
                   algorithm specified by <var>normalizedDerivedKeyAlgorithm</var> using
                   <var>derivedKeyType</var>.
@@ -2226,14 +2210,6 @@
               </li>
               <li>
                 <p>
-                  If <var>usages</var> includes a value that is not a
-                  <a href="#dfn-RecognizedKeyUsage">recognized key usage 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>,
@@ -2649,14 +2625,6 @@
                 </p>
               </li>
               <li>
-                <p>
-                  If <var>usages</var> includes a value that is not a
-                  <a href="#dfn-RecognizedKeyUsage">recognized key usage 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>