Update V8 to version 4.6.48.
[chromium-blink-merge.git] / net / data / verify_signed_data_unittest / ecdsa-using-rsa-key.pem
blob653bcd782bfa64350650ab0aa611d236bcb5a4ce
1 This test specifies an ECDSA signature algorithm (and a valid ecdsa signature),
2 HOWEVER it provides an RSA key. Verification should fail.
6 -----BEGIN PUBLIC KEY-----
7 MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClbkoOcBAXWJpRh9x+qEHRVvLsDjatUqRN/rH
8 mH3rZkdjFEFb/7bFitMDyg6EqiKOU3/Umq3KRy7MHzqv84LHf1c2VCAltWyuLbfXWce9jd8CSHL
9 I8Jwpw4lmOb/idGfEFrMLT8Ms18pKA4Thrb2TE7yLh4fINDOjP+yJJvZohNwIDAQAB
10 -----END PUBLIC KEY-----
12 $ openssl asn1parse -i < [PUBLIC KEY]
13     0:d=0  hl=3 l= 159 cons: SEQUENCE          
14     3:d=1  hl=2 l=  13 cons:  SEQUENCE          
15     5:d=2  hl=2 l=   9 prim:   OBJECT            :rsaEncryption
16    16:d=2  hl=2 l=   0 prim:   NULL              
17    18:d=1  hl=3 l= 141 prim:  BIT STRING        
21 -----BEGIN ALGORITHM-----
22 MAoGCCqGSM49BAMC
23 -----END ALGORITHM-----
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-SHA256
31 -----BEGIN DATA-----
32 MIIB6KADAgECAgkAtUVxft6/Vc0wCgYIKoZIzj0EAwIwbzELMAkGA1UEBhMCQVUxEzARBgNVBAg
33 MClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEMMAoGA1UEAw
34 wDYWhhMRowGAYJKoZIhvcNAQkBFgtzdXBAZm9vLmNvbTAeFw0xNTA3MDIwMDM4MTRaFw0xNjA3M
35 DEwMDM4MTRaMG8xCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJ
36 bnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxDDAKBgNVBAMMA2FoYTEaMBgGCSqGSIb3DQEJARYLc3V
37 wQGZvby5jb20wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARcWEGL5Ype7F4r3IJsL2OoRyHCMI2xDh
38 FcCwnTugdn5CrPnlw0hjkECFxDRBhjmO/0GKYYv1K6FS45K5Lc+f2uuwgUZwWyKHLiQOvyurn7t
39 Fs3xtXTnuBbl6ZiMu28OxCjUDBOMB0GA1UdDgQWBBR6nDgtPalG2JvSlWzdGRCi/Cu7NjAfBgNV
40 HSMEGDAWgBR6nDgtPalG2JvSlWzdGRCi/Cu7NjAMBgNVHRMEBTADAQH/
41 -----END DATA-----
45 -----BEGIN SIGNATURE-----
46 A2kAMGYCMQCDwMSZVJZ8qThiNTV7VX57m8fdNnNS6cXIjRYoh4SozlYWmWGh87nhmJJCeD16jVM
47 CMQDkroAY8oNi8RxLUor+LozhhVgu24tu6lcp4MP8H3Zy8bBea5HerAd1AqJp3Ox7KDU=
48 -----END SIGNATURE-----
50 $ openssl asn1parse -i < [SIGNATURE]
51     0:d=0  hl=2 l= 105 prim: BIT STRING