Index: net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-ecdh-key.pem |
diff --git a/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-ecdh-key.pem b/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-ecdh-key.pem |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9f98de854529fd9b0f8336f49edcd4263368da3d |
--- /dev/null |
+++ b/net/data/verify_signed_data_unittest/ecdsa-prime256v1-sha512-using-ecdh-key.pem |
@@ -0,0 +1,26 @@ |
+This uses the same test data as ecdsa-prime256v1-sha512.pem, HOWEVER the |
+algorithm OID for the public key has been changed from id-ecPublicKey |
+(1.2.840.10045.2.1) to id-ecDH (1.3.132.1.12) |
+ |
+This test should fail because the public key's algorithm does not match that of |
+the signature algorithm. |
+ |
+-----BEGIN PUBLIC KEY----- |
+MFcwEQYFK4EEAQwGCCqGSM49AwEHA0IABJywz2kwPa/HYdTkaHtOzwOebTSrlkr4CBDY1VikqNb |
+3LVEjOheIkgqG7gihlix576MX+3h54pfa0hRtuZX6HHg= |
+-----END PUBLIC KEY----- |
+ |
+-----BEGIN ALGORITHM----- |
+MAoGCCqGSM49BAME |
+-----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----- |