| OLD | NEW |
| 1 This is the same as ecdsa-prime256v1-sha512.pem, except the signature is wrong. | 1 This is the same as ecdsa-prime256v1-sha512.pem, except the signature is wrong. |
| 2 | 2 |
| 3 Rather than encoding the signature into a DER-encoded Ecdsa-Sig-Value, it is a | 3 Rather than encoding the signature into a DER-encoded Ecdsa-Sig-Value, it is a |
| 4 concatenation of the r and s values. This is the format that WebCrypto uses for | 4 concatenation of the r and s values. This is the format that WebCrypto uses for |
| 5 ECDSA signature, but not what is used for digital signatures. | 5 ECDSA signature, but not what is used for digital signatures. |
| 6 | 6 |
| 7 | 7 |
| 8 | |
| 9 -----BEGIN PUBLIC KEY----- | |
| 10 MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnLDPaTA9r8dh1ORoe07PA55tNKuWSvgIENjVWKS | |
| 11 o1vctUSM6F4iSCobuCKGWLHnvoxf7eHnil9rSFG25lfoceA== | |
| 12 -----END PUBLIC KEY----- | |
| 13 | |
| 14 $ openssl asn1parse -i < [PUBLIC KEY] | 8 $ openssl asn1parse -i < [PUBLIC KEY] |
| 15 0:d=0 hl=2 l= 89 cons: SEQUENCE | 9 0:d=0 hl=2 l= 89 cons: SEQUENCE |
| 16 2:d=1 hl=2 l= 19 cons: SEQUENCE | 10 2:d=1 hl=2 l= 19 cons: SEQUENCE |
| 17 4:d=2 hl=2 l= 7 prim: OBJECT :id-ecPublicKey | 11 4:d=2 hl=2 l= 7 prim: OBJECT :id-ecPublicKey |
| 18 13:d=2 hl=2 l= 8 prim: OBJECT :prime256v1 | 12 13:d=2 hl=2 l= 8 prim: OBJECT :prime256v1 |
| 19 23:d=1 hl=2 l= 66 prim: BIT STRING | 13 23:d=1 hl=2 l= 66 prim: BIT STRING |
| 14 -----BEGIN PUBLIC KEY----- |
| 15 MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnLDPaTA9r8dh1ORoe07PA55tNKuWSvgIENjVWKS |
| 16 o1vctUSM6F4iSCobuCKGWLHnvoxf7eHnil9rSFG25lfoceA== |
| 17 -----END PUBLIC KEY----- |
| 20 | 18 |
| 21 | 19 $ openssl asn1parse -i < [ALGORITHM] |
| 22 | 20 0:d=0 hl=2 l= 10 cons: SEQUENCE |
| 21 2:d=1 hl=2 l= 8 prim: OBJECT :ecdsa-with-SHA512 |
| 23 -----BEGIN ALGORITHM----- | 22 -----BEGIN ALGORITHM----- |
| 24 MAoGCCqGSM49BAME | 23 MAoGCCqGSM49BAME |
| 25 -----END ALGORITHM----- | 24 -----END ALGORITHM----- |
| 26 | 25 |
| 27 $ openssl asn1parse -i < [ALGORITHM] | |
| 28 0:d=0 hl=2 l= 10 cons: SEQUENCE | |
| 29 2:d=1 hl=2 l= 8 prim: OBJECT :ecdsa-with-SHA512 | |
| 30 | |
| 31 | |
| 32 | |
| 33 -----BEGIN DATA----- | 26 -----BEGIN DATA----- |
| 34 bikyFTMBpO72gOZCiSmtrpiMEI1mijH/VdBImUfXX/gaRr+J6E1kAfAjvm6HaI+814TXhcqEZzV | 27 bikyFTMBpO72gOZCiSmtrpiMEI1mijH/VdBImUfXX/gaRr+J6E1kAfAjvm6HaI+814TXhcqEZzV |
| 35 SSstS0ARSyEBApHnnzDMJNkQdk7vnIqlDKm4dsRK1yUA7ECcssTR/1hnUY/ep0iOtdv3gbYpog1 | 28 SSstS0ARSyEBApHnnzDMJNkQdk7vnIqlDKm4dsRK1yUA7ECcssTR/1hnUY/ep0iOtdv3gbYpog1 |
| 36 APuEMjWr/5jiQb37VTjD4= | 29 APuEMjWr/5jiQb37VTjD4= |
| 37 -----END DATA----- | 30 -----END DATA----- |
| 38 | 31 |
| 39 | 32 $ openssl asn1parse -i < [SIGNATURE] |
| 40 | 33 0:d=0 hl=2 l= 65 prim: BIT STRING |
| 41 -----BEGIN SIGNATURE----- | 34 -----BEGIN SIGNATURE----- |
| 42 A0EAS5+R5ChShyYaHRySPPYZzVLBdc/n8b5gpSWMYQNIuj0oxF+QHXHEGymGOOwNaoXX/LDDO7/ | 35 A0EAS5+R5ChShyYaHRySPPYZzVLBdc/n8b5gpSWMYQNIuj0oxF+QHXHEGymGOOwNaoXX/LDDO7/ |
| 43 sWpyBCEa2OSiahA== | 36 sWpyBCEa2OSiahA== |
| 44 -----END SIGNATURE----- | 37 -----END SIGNATURE----- |
| 45 | |
| 46 $ openssl asn1parse -i < [SIGNATURE] | |
| 47 0:d=0 hl=2 l= 65 prim: BIT STRING | |
| OLD | NEW |