Index: net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-rsa-algorithm.pem |
diff --git a/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-rsa-algorithm.pem b/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-rsa-algorithm.pem |
new file mode 100644 |
index 0000000000000000000000000000000000000000..beac91b026ca90a7f1f99aa6d759fbd5ff8e1444 |
--- /dev/null |
+++ b/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-rsa-algorithm.pem |
@@ -0,0 +1,25 @@ |
+This test specified a valid ECDSA signature and EC key (the same as ecdsa-prime256v1-sha512.pem) |
+ |
+The problem however is the signature algorithm is indicated as being RSA PKCS#1 v1.5. |
+ |
+Signature verification consequently should fail. |
+ |
+-----BEGIN PUBLIC KEY----- |
+MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnLDPaTA9r8dh1ORoe07PA55tNKuWSvgIENjVWKS |
+o1vctUSM6F4iSCobuCKGWLHnvoxf7eHnil9rSFG25lfoceA== |
+-----END PUBLIC KEY----- |
+ |
+-----BEGIN ALGORITHM----- |
+MA0GCSqGSIb3DQEBDQUA |
+-----END ALGORITHM----- |
+ |
+-----BEGIN DATA----- |
+bikyFTMBpO72gOZCiSmtrpiMEI1mijH/VdBImUfXX/gaRr+J6E1kAfAjvm6HaI+814TXhcqEZzV |
+SSstS0ARSyEBApHnnzDMJNkQdk7vnIqlDKm4dsRK1yUA7ECcssTR/1hnUY/ep0iOtdv3gbYpog1 |
+APuEMjWr/5jiQb37VTjD4= |
+-----END DATA----- |
+ |
+-----BEGIN SIGNATURE----- |
+MEQCIEufkeQoUocmGh0ckjz2Gc1SwXXP5/G+YKUljGEDSLo9AiAoxF+QHXHEGymGOOwNaoXX/LD |
+DO7/sWpyBCEa2OSiahA== |
+-----END SIGNATURE----- |