Title: [279374] trunk/LayoutTests
Revision
279374
Author
yoshiaki.jitsuk...@sony.com
Date
2021-06-29 08:19:46 -0700 (Tue, 29 Jun 2021)

Log Message

P-384 EC public JWK key in layout tests is wrong
https://bugs.webkit.org/show_bug.cgi?id=227432

Reviewed by Chris Dumez.

Fix the y value of the JWK keys. The y value was derived from the x value with openssl,
using EC_POINT_set_compressed_coordinates_GFp() and EC_POINT_get_affine_coordinates_GFp(),
and was verified with EC_KEY_check_key().

* crypto/subtle/ec-import-key-malformed-parameters.html:
* crypto/subtle/ecdh-import-jwk-public-key-p384.html:
* crypto/subtle/ecdsa-import-jwk-public-key-alg-384.html:
* crypto/workers/subtle/resources/ec-import-jwk-key-public.js:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (279373 => 279374)


--- trunk/LayoutTests/ChangeLog	2021-06-29 13:53:43 UTC (rev 279373)
+++ trunk/LayoutTests/ChangeLog	2021-06-29 15:19:46 UTC (rev 279374)
@@ -1,3 +1,19 @@
+2021-06-29  Yoshiaki Jitsukawa  <yoshiaki.jitsuk...@sony.com>
+
+        P-384 EC public JWK key in layout tests is wrong
+        https://bugs.webkit.org/show_bug.cgi?id=227432
+
+        Reviewed by Chris Dumez.
+
+        Fix the y value of the JWK keys. The y value was derived from the x value with openssl,
+        using EC_POINT_set_compressed_coordinates_GFp() and EC_POINT_get_affine_coordinates_GFp(),
+        and was verified with EC_KEY_check_key().
+
+        * crypto/subtle/ec-import-key-malformed-parameters.html:
+        * crypto/subtle/ecdh-import-jwk-public-key-p384.html:
+        * crypto/subtle/ecdsa-import-jwk-public-key-alg-384.html:
+        * crypto/workers/subtle/resources/ec-import-jwk-key-public.js:
+
 2021-06-29  Rob Buis  <rb...@igalia.com>
 
         Nullptr crash in HTMLStackItem::create via DocumentFragment::parseHTML

Modified: trunk/LayoutTests/crypto/subtle/ec-import-key-malformed-parameters.html (279373 => 279374)


--- trunk/LayoutTests/crypto/subtle/ec-import-key-malformed-parameters.html	2021-06-29 13:53:43 UTC (rev 279373)
+++ trunk/LayoutTests/crypto/subtle/ec-import-key-malformed-parameters.html	2021-06-29 15:19:46 UTC (rev 279374)
@@ -18,7 +18,7 @@
 var y = "9jmNTLqM4cjBhdAnHcNI9YQV3O8LFmo-EdZWk8ntAaI"; // P-256
 var d = "ppxBSov3N8_AUcisAuvmLV4yE8e_L_BLE8bZb9Z1Xjg"; // P-256
 var x384 = "1bHwFrsaPRjYq-zFOyLXK8Ugv3EqbVF075ct7ouTl_pwyhjeBu03JHjKTsyVbNWK";
-var y384 = "1bHwFrsaPRjYq-zFOyLXK8Ugv3EqbVF075ct7ouTl_pwyhjeBu03JHjKTsyVbNWK";
+var y384 = "OPQLbvRDpocNk4FRQLUVRBbqiauWcnUn7cAC2uSOH6GpSLoTo6B-4LtHq0ydd-iu";
 var spkiP256Key = hexStringToUint8Array("3059301306072a8648ce3d020106082a8648ce3d03010703420004c3ee3a2c3380072b9b2a59fed2cada65121806e22c4f4f8a25e740fc3e54d75d86c200298e6dfc1611d185eedbdb3c2661b0eb0441f7fd57c90d08112e9ae71c");
 var spkiP384Key = hexStringToUint8Array("3076301006072a8648ce3d020106052b8104002203620004478f6119747475f94b742654be32ab6ebbdc371afa34fbee6d12c32fe2d586231262b17d13a1f271f19c8008c034d8716b7df0ce1d987990c5b175ecae1aa40f2fb89e4778528e1234e56d69638db135d103fa68448fee2b4f58ecc86d7f4b7a");
 var truncatedSpkiP256Key1 = hexStringToUint8Array("30");

Modified: trunk/LayoutTests/crypto/subtle/ecdh-import-jwk-public-key-p384.html (279373 => 279374)


--- trunk/LayoutTests/crypto/subtle/ecdh-import-jwk-public-key-p384.html	2021-06-29 13:53:43 UTC (rev 279373)
+++ trunk/LayoutTests/crypto/subtle/ecdh-import-jwk-public-key-p384.html	2021-06-29 15:19:46 UTC (rev 279374)
@@ -19,7 +19,7 @@
     ext: true,
     crv: "P-384",
     x: "1bHwFrsaPRjYq-zFOyLXK8Ugv3EqbVF075ct7ouTl_pwyhjeBu03JHjKTsyVbNWK",
-    y: "1bHwFrsaPRjYq-zFOyLXK8Ugv3EqbVF075ct7ouTl_pwyhjeBu03JHjKTsyVbNWK",
+    y: "OPQLbvRDpocNk4FRQLUVRBbqiauWcnUn7cAC2uSOH6GpSLoTo6B-4LtHq0ydd-iu",
 };
 var extractable = true;
 

Modified: trunk/LayoutTests/crypto/subtle/ecdsa-import-jwk-public-key-alg-384.html (279373 => 279374)


--- trunk/LayoutTests/crypto/subtle/ecdsa-import-jwk-public-key-alg-384.html	2021-06-29 13:53:43 UTC (rev 279373)
+++ trunk/LayoutTests/crypto/subtle/ecdsa-import-jwk-public-key-alg-384.html	2021-06-29 15:19:46 UTC (rev 279374)
@@ -19,7 +19,7 @@
     ext: true,
     crv: "P-384",
     x: "1bHwFrsaPRjYq-zFOyLXK8Ugv3EqbVF075ct7ouTl_pwyhjeBu03JHjKTsyVbNWK",
-    y: "1bHwFrsaPRjYq-zFOyLXK8Ugv3EqbVF075ct7ouTl_pwyhjeBu03JHjKTsyVbNWK",
+    y: "OPQLbvRDpocNk4FRQLUVRBbqiauWcnUn7cAC2uSOH6GpSLoTo6B-4LtHq0ydd-iu",
     alg: "ES384"
 };
 var extractable = true;

Modified: trunk/LayoutTests/crypto/workers/subtle/resources/ec-import-jwk-key-public.js (279373 => 279374)


--- trunk/LayoutTests/crypto/workers/subtle/resources/ec-import-jwk-key-public.js	2021-06-29 13:53:43 UTC (rev 279373)
+++ trunk/LayoutTests/crypto/workers/subtle/resources/ec-import-jwk-key-public.js	2021-06-29 15:19:46 UTC (rev 279374)
@@ -11,7 +11,7 @@
     ext: true,
     crv: "P-384",
     x: "1bHwFrsaPRjYq-zFOyLXK8Ugv3EqbVF075ct7ouTl_pwyhjeBu03JHjKTsyVbNWK",
-    y: "1bHwFrsaPRjYq-zFOyLXK8Ugv3EqbVF075ct7ouTl_pwyhjeBu03JHjKTsyVbNWK",
+    y: "OPQLbvRDpocNk4FRQLUVRBbqiauWcnUn7cAC2uSOH6GpSLoTo6B-4LtHq0ydd-iu",
 };
 var extractable = true;
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to