1 The key, message, and signature come from:
2 http://csrc.nist.gov/groups/STM/cavp/documents/dss/186-3ecdsatestvectors.zip (SigVer.rsp)
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.
7 It uses ECDSA verification, using curve prime256v1 and SHA-512
11 -----BEGIN PUBLIC KEY-----
12 MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnLDPaTA9r8dh1ORoe07PA55tNKuWSvgIENjVWKS
13 o1vctUSM6F4iSCobuCKGWLHnvoxf7eHnil9rSFG25lfoceA==
14 -----END PUBLIC KEY-----
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
25 -----BEGIN ALGORITHM-----
27 -----END ALGORITHM-----
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
36 bikyFTMBpO72gOZCiSmtrpiMEI1mijH/VdBImUfXX/gaRr+J6E1kAfAjvm6HaI+814TXhcqEZzV
37 SSstS0ARSyEBApHnnzDMJNkQdk7vnIqlDKm4dsRK1yUA7ECcssTR/1hnUY/ep0iOtdv3gbYpog1
38 APuEMjWr/5jiQb37VTjD4=
43 -----BEGIN SIGNATURE-----
44 A0cAMEQCIEufkeQoUocmGh0ckjz2Gc1SwXXP5/G+YKUljGEDSLo9AiAoxF+QHXHEGymGOOwNaoX
45 X/LDDO7/sWpyBCEa2OSiahA==
46 -----END SIGNATURE-----
48 $ openssl asn1parse -i < [SIGNATURE]
49 0:d=0 hl=2 l= 71 prim: BIT STRING