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

Side by Side Diff: net/data/verify_signed_data_unittest/rsa-pkcs1-sha1-bad-key-der-length.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 Same test as rsa-pkcs1-sha1.pem except the length of the first SEQUENCE has
2 been increased by 2 (which makes it invalid).
3
4
5
6 -----BEGIN PUBLIC KEY-----
7 MIOfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClbkoOcBAXWJpRh9x+qEHRVvLsDjatUqRN/rH
8 mH3rZkdjFEFb/7bFitMDyg6EqiKOU3/Umq3KRy7MHzqv84LHf1c2VCAltWyuLbfXWce9jd8CSHL
9 I8Jwpw4lmOb/idGfEFrMLT8Ms18pKA4Thrb2TE7yLh4fINDOjP+yJJvZohNwIDAQAB
10 -----END PUBLIC KEY-----
11
12 $ openssl asn1parse -i < [PUBLIC KEY]
13 Error in encoding
14
15
16
17 -----BEGIN ALGORITHM-----
18 MA0GCSqGSIb3DQEBBQUA
19 -----END ALGORITHM-----
20
21 $ openssl asn1parse -i < [ALGORITHM]
22 0:d=0 hl=2 l= 13 cons: SEQUENCE
23 2:d=1 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
24 13:d=1 hl=2 l= 0 prim: NULL
25
26
27
28 -----BEGIN DATA-----
29 zch9oiPXht87ReC7vHITJtHuKvgGzDFUdcxvDZxm4bYjcdRc4jkuGskoRMMQEC8Vag2NUsH0xAu
30 jqmUJV4bLdpdXplY7qVj+0LzJhOi1F6PV9RWyO4pB50qoZ2k/kN+wYabobfqu5kRywA5fIJRXKc
31 vr538Gznjgj0CY+6QfnWGTwDF+i2DUtghKy0LSnjgIo7w3LYXjMRcPy/fMctC3HClmSLOk0Q9BY
32 pXQgHqmJcqydE/Z6o/SI8QlNwKYKL0WvgJUbxMP0uM7k20mduCK7RtzMYt1CgFn0A==
33 -----END DATA-----
34
35
36
37 -----BEGIN SIGNATURE-----
38 A4GBAGvDoGZWhCkwokfjDVhktNgZI2unxollhirX28TiSvKOhrtTHwM1i+X7dHd8YIb4UMrviT8
39 Nb8wtDJHsATaTtOoAuAzUmqxOy1+JEa/lOa2kqPOCPR0T5HLRSQVHxlnHYX89JAh9228rcglhZ/
40 wJfKsY6aRY/LY0zc6O41iUxITX
41 -----END SIGNATURE-----
42
43 $ openssl asn1parse -i < [SIGNATURE]
44 0:d=0 hl=3 l= 129 prim: BIT STRING
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698