1This uses the same test data as ecdsa-prime256v1-sha512.pem, HOWEVER the 2algorithm OID for the public key has been changed from id-ecPublicKey 3(1.2.840.10045.2.1) to id-ecMQV (1.3.132.1.13) 4 5This test should fail because the public key's algorithm does not match that of 6the signature algorithm. 7 8 9$ openssl asn1parse -i < [PUBLIC KEY] 10 0:d=0 hl=2 l= 87 cons: SEQUENCE 11 2:d=1 hl=2 l= 17 cons: SEQUENCE 12 4:d=2 hl=2 l= 5 prim: OBJECT :1.3.132.1.13 13 11:d=2 hl=2 l= 8 prim: OBJECT :prime256v1 14 21:d=1 hl=2 l= 66 prim: BIT STRING 15-----BEGIN PUBLIC KEY----- 16MFcwEQYFK4EEAQ0GCCqGSM49AwEHA0IABJywz2kwPa/HYdTkaHtOzwOebTSrlkr4CBDY1VikqNb 173LVEjOheIkgqG7gihlix576MX+3h54pfa0hRtuZX6HHg= 18-----END PUBLIC KEY----- 19 20$ openssl asn1parse -i < [ALGORITHM] 21 0:d=0 hl=2 l= 10 cons: SEQUENCE 22 2:d=1 hl=2 l= 8 prim: OBJECT :ecdsa-with-SHA512 23-----BEGIN ALGORITHM----- 24MAoGCCqGSM49BAME 25-----END ALGORITHM----- 26 27-----BEGIN DATA----- 28bikyFTMBpO72gOZCiSmtrpiMEI1mijH/VdBImUfXX/gaRr+J6E1kAfAjvm6HaI+814TXhcqEZzV 29SSstS0ARSyEBApHnnzDMJNkQdk7vnIqlDKm4dsRK1yUA7ECcssTR/1hnUY/ep0iOtdv3gbYpog1 30APuEMjWr/5jiQb37VTjD4= 31-----END DATA----- 32 33$ openssl asn1parse -i < [SIGNATURE] 34 0:d=0 hl=2 l= 71 prim: BIT STRING 35-----BEGIN SIGNATURE----- 36A0cAMEQCIEufkeQoUocmGh0ckjz2Gc1SwXXP5/G+YKUljGEDSLo9AiAoxF+QHXHEGymGOOwNaoX 37X/LDDO7/sWpyBCEa2OSiahA== 38-----END SIGNATURE----- 39