OLD | NEW |
(Empty) | |
| 1 This is the same test as ecdsa-prime256v1-sha512.pem except the public key's |
| 2 algorithm has been tampered with. The parameters for ecPublicKey should be a |
| 3 namedCurve, but here they have been replaced by NULL. |
| 4 |
| 5 |
| 6 |
| 7 -----BEGIN PUBLIC KEY----- |
| 8 MFEwCwYHKoZIzj0CAQUAA0IABJywz2kwPa/HYdTkaHtOzwOebTSrlkr4CBDY1VikqNb3LVEjOhe |
| 9 IkgqG7gihlix576MX+3h54pfa0hRtuZX6HHg= |
| 10 -----END PUBLIC KEY----- |
| 11 |
| 12 $ openssl asn1parse -i < [PUBLIC KEY] |
| 13 0:d=0 hl=2 l= 81 cons: SEQUENCE |
| 14 2:d=1 hl=2 l= 11 cons: SEQUENCE |
| 15 4:d=2 hl=2 l= 7 prim: OBJECT :id-ecPublicKey |
| 16 13:d=2 hl=2 l= 0 prim: NULL |
| 17 15:d=1 hl=2 l= 66 prim: BIT STRING |
| 18 |
| 19 |
| 20 |
| 21 -----BEGIN ALGORITHM----- |
| 22 MAoGCCqGSM49BAME |
| 23 -----END ALGORITHM----- |
| 24 |
| 25 $ openssl asn1parse -i < [ALGORITHM] |
| 26 0:d=0 hl=2 l= 10 cons: SEQUENCE |
| 27 2:d=1 hl=2 l= 8 prim: OBJECT :ecdsa-with-SHA512 |
| 28 |
| 29 |
| 30 |
| 31 -----BEGIN DATA----- |
| 32 bikyFTMBpO72gOZCiSmtrpiMEI1mijH/VdBImUfXX/gaRr+J6E1kAfAjvm6HaI+814TXhcqEZzV |
| 33 SSstS0ARSyEBApHnnzDMJNkQdk7vnIqlDKm4dsRK1yUA7ECcssTR/1hnUY/ep0iOtdv3gbYpog1 |
| 34 APuEMjWr/5jiQb37VTjD4= |
| 35 -----END DATA----- |
| 36 |
| 37 |
| 38 |
| 39 -----BEGIN SIGNATURE----- |
| 40 A0cAMEQCIEufkeQoUocmGh0ckjz2Gc1SwXXP5/G+YKUljGEDSLo9AiAoxF+QHXHEGymGOOwNaoX |
| 41 X/LDDO7/sWpyBCEa2OSiahA== |
| 42 -----END SIGNATURE----- |
| 43 |
| 44 $ openssl asn1parse -i < [SIGNATURE] |
| 45 0:d=0 hl=2 l= 71 prim: BIT STRING |
OLD | NEW |