Bug 24826 - fix incorrect JWK alg values such as AES128CTR - should be A128CTR
authorMark Watson <watsonm@netflix.com>
Wed, 26 Feb 2014 13:28:26 -0800
changeset 129 4b0fa86f5573
parent 128 a4e810a478b5
child 130 91629679f4eb
Bug 24826 - fix incorrect JWK alg values such as AES128CTR - should be A128CTR
spec/Overview-WebCryptoAPI.xml
--- a/spec/Overview-WebCryptoAPI.xml	Wed Feb 26 13:21:54 2014 -0800
+++ b/spec/Overview-WebCryptoAPI.xml	Wed Feb 26 13:28:26 2014 -0800
@@ -5643,15 +5643,15 @@
                           <dl class="switch">
                             <dt>If <var>data</var> has length 128 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES128CTR"</code>, terminate
+                            not a case-sensitive string match to <code>"A128CTR"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 192 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES192CTR"</code>, terminate
+                            not a case-sensitive string match to <code>"A192CTR"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 256 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES256CTR"</code>, terminate
+                            not a case-sensitive string match to <code>"A256CTR"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>Otherwise:</dt>
                             <dd>Terminate this algorithm with an error.</dd>
@@ -5771,15 +5771,15 @@
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 128:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES128CTR"</code>.</dd>
+                              the string <code>"A128CTR"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 192:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES192CTR"</code>.</dd>
+                              the string <code>"A192CTR"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 256:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES256CTR"</code>.</dd>
+                              the string <code>"A256CTR"</code>.</dd>
                             </dl>
                           </li>
                           <li>
@@ -6150,15 +6150,15 @@
                           <dl class="switch">
                             <dt>If <var>data</var> has length 128 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES128CBC"</code>, terminate
+                            not a case-sensitive string match to <code>"A128CBC"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 192 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES192CBC"</code>, terminate
+                            not a case-sensitive string match to <code>"A192CBC"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 256 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES256CBC"</code>, terminate
+                            not a case-sensitive string match to <code>"A256CBC"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>Otherwise:</dt>
                             <dd>Terminate this algorithm with an error.</dd>
@@ -6278,15 +6278,15 @@
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 128:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES128CBC"</code>.</dd>
+                              the string <code>"A128CBC"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 192:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES192CBC"</code>.</dd>
+                              the string <code>"A192CBC"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 256:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES256CBC"</code>.</dd>
+                              the string <code>"A256CBC"</code>.</dd>
                             </dl>
                           </li>
                           <li>
@@ -6590,15 +6590,15 @@
                           <dl class="switch">
                             <dt>If <var>data</var> has length 128 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES128CMAC"</code>, terminate
+                            not a case-sensitive string match to <code>"A128CMAC"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 192 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES192CMAC"</code>, terminate
+                            not a case-sensitive string match to <code>"A192CMAC"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 256 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES256CMAC"</code>, terminate
+                            not a case-sensitive string match to <code>"A256CMAC"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>Otherwise:</dt>
                             <dd>Terminate this algorithm with an error.</dd>
@@ -6718,15 +6718,15 @@
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 128:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES128CMAC"</code>.</dd>
+                              the string <code>"A128CMAC"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 192:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES192CMAC"</code>.</dd>
+                              the string <code>"A192CMAC"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 256:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES256CMAC"</code>.</dd>
+                              the string <code>"A256CMAC"</code>.</dd>
                             </dl>
                           </li>
                           <li>
@@ -7138,15 +7138,15 @@
                           <dl class="switch">
                             <dt>If <var>data</var> has length 128 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES128GCM"</code>, terminate
+                            not a case-sensitive string match to <code>"A128GCM"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 192 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES192GCM"</code>, terminate
+                            not a case-sensitive string match to <code>"A192GCM"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 256 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES256GCM"</code>, terminate
+                            not a case-sensitive string match to <code>"A256GCM"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>Otherwise:</dt>
                             <dd>Terminate this algorithm with an error.</dd>
@@ -7266,15 +7266,15 @@
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 128:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES128GCM"</code>.</dd>
+                              the string <code>"A128GCM"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 192:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES192GCM"</code>.</dd>
+                              the string <code>"A192GCM"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 256:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES256GCM"</code>.</dd>
+                              the string <code>"A256GCM"</code>.</dd>
                             </dl>
                           </li>
                           <li>
@@ -7610,15 +7610,15 @@
                           <dl class="switch">
                             <dt>If <var>data</var> has length 128 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES128CFB8"</code>, terminate
+                            not a case-sensitive string match to <code>"A128CFB8"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 192 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES192CFB8"</code>, terminate
+                            not a case-sensitive string match to <code>"A192CFB8"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 256 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES256CFB8"</code>, terminate
+                            not a case-sensitive string match to <code>"A256CFB8"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>Otherwise:</dt>
                             <dd>Terminate this algorithm with an error.</dd>
@@ -7738,15 +7738,15 @@
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 128:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES128CFB8"</code>.</dd>
+                              the string <code>"A128CFB8"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 192:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES192CFB8"</code>.</dd>
+                              the string <code>"A192CFB8"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 256:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES256CFB8"</code>.</dd>
+                              the string <code>"A256CFB8"</code>.</dd>
                             </dl>
                           </li>
                           <li>
@@ -8054,15 +8054,15 @@
                           <dl class="switch">
                             <dt>If <var>data</var> has length 128 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES128KW"</code>, terminate
+                            not a case-sensitive string match to <code>"A128KW"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 192 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES192KW"</code>, terminate
+                            not a case-sensitive string match to <code>"A192KW"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>If <var>data</var> has length 256 bits:</dt>
                             <dd>If the <code>"alg"</code> field of <var>jwk</var> is present, and is
-                            not a case-sensitive string match to <code>"AES256KW"</code>, terminate
+                            not a case-sensitive string match to <code>"A256KW"</code>, terminate
                             this algorithm with an error.</dd>
                             <dt>Otherwise:</dt>
                             <dd>Terminate this algorithm with an error.</dd>
@@ -8182,15 +8182,15 @@
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 128:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES128KW"</code>.</dd>
+                              the string <code>"A128KW"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 192:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES192KW"</code>.</dd>
+                              the string <code>"A192KW"</code>.</dd>
                               <dt>If the <a href="#dfn-AesKeyParams-length">length</a> property of
                               <var>key</var> is 256:</dt>
                               <dd>Set the <code>alg</code> property of <var>jwk</var> to
-                              the string <code>"AES256KW"</code>.</dd>
+                              the string <code>"A256KW"</code>.</dd>
                             </dl>
                           </li>
                           <li>