OLD | NEW |
(Empty) | |
| 1 The key, message, and signature come from: |
| 2 http://csrc.nist.gov/groups/STM/cavp/documents/dss/186-3ecdsatestvectors.zip (Si
gVer.rsp) |
| 3 |
| 4 The algorithm DER was synthesized to match, and the signature (provided as an r |
| 5 and s tuple) was encoded into a Ecdsa-Sig-Value and then a BIT STRING. |
| 6 |
| 7 It uses ECDSA verification, using curve prime256v1 and SHA-512 |
| 8 |
| 9 |
| 10 |
| 11 -----BEGIN PUBLIC KEY----- |
| 12 MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnLDPaTA9r8dh1ORoe07PA55tNKuWSvgIENjVWKS |
| 13 o1vctUSM6F4iSCobuCKGWLHnvoxf7eHnil9rSFG25lfoceA== |
| 14 -----END PUBLIC KEY----- |
| 15 |
| 16 $ openssl asn1parse -i < [PUBLIC KEY] |
| 17 0:d=0 hl=2 l= 89 cons: SEQUENCE |
| 18 2:d=1 hl=2 l= 19 cons: SEQUENCE |
| 19 4:d=2 hl=2 l= 7 prim: OBJECT :id-ecPublicKey |
| 20 13:d=2 hl=2 l= 8 prim: OBJECT :prime256v1 |
| 21 23:d=1 hl=2 l= 66 prim: BIT STRING |
| 22 |
| 23 |
| 24 |
| 25 -----BEGIN ALGORITHM----- |
| 26 MAoGCCqGSM49BAME |
| 27 -----END ALGORITHM----- |
| 28 |
| 29 $ openssl asn1parse -i < [ALGORITHM] |
| 30 0:d=0 hl=2 l= 10 cons: SEQUENCE |
| 31 2:d=1 hl=2 l= 8 prim: OBJECT :ecdsa-with-SHA512 |
| 32 |
| 33 |
| 34 |
| 35 -----BEGIN DATA----- |
| 36 bikyFTMBpO72gOZCiSmtrpiMEI1mijH/VdBImUfXX/gaRr+J6E1kAfAjvm6HaI+814TXhcqEZzV |
| 37 SSstS0ARSyEBApHnnzDMJNkQdk7vnIqlDKm4dsRK1yUA7ECcssTR/1hnUY/ep0iOtdv3gbYpog1 |
| 38 APuEMjWr/5jiQb37VTjD4= |
| 39 -----END DATA----- |
| 40 |
| 41 |
| 42 |
| 43 -----BEGIN SIGNATURE----- |
| 44 A0cAMEQCIEufkeQoUocmGh0ckjz2Gc1SwXXP5/G+YKUljGEDSLo9AiAoxF+QHXHEGymGOOwNaoX |
| 45 X/LDDO7/sWpyBCEa2OSiahA== |
| 46 -----END SIGNATURE----- |
| 47 |
| 48 $ openssl asn1parse -i < [SIGNATURE] |
| 49 0:d=0 hl=2 l= 71 prim: BIT STRING |
OLD | NEW |