Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: net/data/verify_signed_data_unittest/rsa-using-ec-key.pem

Issue 1209283004: Implement VerifySignedData() for ECDSA, RSA PKCS#1 and RSA PSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@parse_pss
Patch Set: appease mscvc int --> bool cast Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 This test specifies an RSA PKCS#1 v1.5 signature algorithm (and a valid RSA
2 signature), HOWEVER it provides an EC key. Verification should fail.
3
4
5
6 -----BEGIN PUBLIC KEY-----
7 MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnLDPaTA9r8dh1ORoe07PA55tNKuWSvgIENjVWKS
8 o1vctUSM6F4iSCobuCKGWLHnvoxf7eHnil9rSFG25lfoceA==
9 -----END PUBLIC KEY-----
10
11 $ openssl asn1parse -i < [PUBLIC KEY]
12 0:d=0 hl=2 l= 89 cons: SEQUENCE
13 2:d=1 hl=2 l= 19 cons: SEQUENCE
14 4:d=2 hl=2 l= 7 prim: OBJECT :id-ecPublicKey
15 13:d=2 hl=2 l= 8 prim: OBJECT :prime256v1
16 23:d=1 hl=2 l= 66 prim: BIT STRING
17
18
19
20 -----BEGIN ALGORITHM-----
21 MA0GCSqGSIb3DQEBCwUA
22 -----END ALGORITHM-----
23
24 $ openssl asn1parse -i < [ALGORITHM]
25 0:d=0 hl=2 l= 13 cons: SEQUENCE
26 2:d=1 hl=2 l= 9 prim: OBJECT :sha256WithRSAEncryption
27 13:d=1 hl=2 l= 0 prim: NULL
28
29
30
31 -----BEGIN DATA-----
32 MIIB46ADAgECAgkA3l4tFOVii0UwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCQVUxEzARBgN
33 VBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEPMA0GA1
34 UEAwwGTXkga2V5MB4XDTE1MDcwMjE3MDYzOVoXDTE2MDcwMTE3MDYzOVowVjELMAkGA1UEBhMCQ
35 VUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0
36 ZDEPMA0GA1UEAwwGTXkga2V5MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqR+B2Mj1irNp
37 1JnY2zQIQRQPz7ybs6mUjHT3hf5APyaig2u6fBPThqxssgg0YviqIj/70hVK/JXcqP1zgR5AhsA
38 0agnwAjfB/ow4EH+3HEYV52qpxN98pUxC+1l2hgVtn8xCS/JGyjK+6dv+lZw3ixJoX2RjVtdJ4/
39 cn318EhhQIDAQABo1AwTjAdBgNVHQ4EFgQUzQBVKTEknyLndWd2HTsBdTKvyikwHwYDVR0jBBgw
40 FoAUzQBVKTEknyLndWd2HTsBdTKvyikwDAYDVR0TBAUwAwEB/w==
41 -----END DATA-----
42
43
44
45 -----BEGIN SIGNATURE-----
46 A4GBADrHSmFSJw/Gv7hs5PNzpaJwAri/sitarIZfzN/SjR+n8L8yeTEoiDb1+BkxlFvXvPHTaOK
47 oO3WlslNNOxh1W5/JkYYGOUkCcyIjnln6qS560imcr3VNjomT/M8M2Iss+rJiKau1TRuaP7H8i6
48 +Gqf3saGdr8/LnvFAdNQvkalQt
49 -----END SIGNATURE-----
50
51 $ openssl asn1parse -i < [SIGNATURE]
52 0:d=0 hl=3 l= 129 prim: BIT STRING
OLDNEW
« no previous file with comments | « net/data/verify_signed_data_unittest/rsa-pss-sha256-salt10-using-pss-key-with-wrong-params.pem ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698