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

Side by Side Diff: net/data/verify_certificate_chain_unittest/target-signed-by-512bit-rsa.pem

Issue 2289363004: Add error information to VerifySignedData(). (Closed)
Patch Set: rebase onto origin/master Created 4 years, 3 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
1 [Created by: generate-target-signed-by-512bit-rsa.py] 1 [Created by: generate-target-signed-by-512bit-rsa.py]
2 2
3 Certificate chain with 1 intermediate and a trusted root. The target 3 Certificate chain with 1 intermediate and a trusted root. The target
4 certificate is signed using a weak RSA key (512-bit modulus), and so 4 certificate is signed using a weak RSA key (512-bit modulus), and so
5 verification is expected to fail. 5 verification is expected to fail.
6 6
7 Certificate: 7 Certificate:
8 Data: 8 Data:
9 Version: 3 (0x2) 9 Version: 3 (0x2)
10 Serial Number: 1 (0x1) 10 Serial Number: 1 (0x1)
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 150302120000Z 242 150302120000Z
243 -----BEGIN TIME----- 243 -----BEGIN TIME-----
244 MTUwMzAyMTIwMDAwWg== 244 MTUwMzAyMTIwMDAwWg==
245 -----END TIME----- 245 -----END TIME-----
246 246
247 FAIL 247 FAIL
248 -----BEGIN VERIFY_RESULT----- 248 -----BEGIN VERIFY_RESULT-----
249 RkFJTA== 249 RkFJTA==
250 -----END VERIFY_RESULT----- 250 -----END VERIFY_RESULT-----
251 251
252 Signature verification failed 252 RSA modulus too small
253 Unacceptable modulus length for RSA key
254 VerifySignedData failed
253 -----BEGIN ERRORS----- 255 -----BEGIN ERRORS-----
254 U2lnbmF0dXJlIHZlcmlmaWNhdGlvbiBmYWlsZWQ= 256 UlNBIG1vZHVsdXMgdG9vIHNtYWxsClVuYWNjZXB0YWJsZSBtb2R1bHVzIGxlbmd0aCBmb3IgUlNBIGtl eQpWZXJpZnlTaWduZWREYXRhIGZhaWxlZA==
255 -----END ERRORS----- 257 -----END ERRORS-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698