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

Side by Side Diff: net/data/verify_signed_data_unittest/README

Issue 1246703005: Add a script for formatting the VerifySignedData() test data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sign_openssl
Patch Set: fix (don't use matching for comment) 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
« no previous file with comments | « no previous file | net/data/verify_signed_data_unittest/annotate_test_data.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 This directory contains test data for testing net::VerifySignedData().
2
3 When adding or changing test data, run the script
4 $ python annotate_test_data.py
5
6 This script will apply a uniform formatting. For instance it will add a
7 comment showing what the parsed ASN.1 looks like, and reformat the base64 to
8 have consistent line breaks.
9
10 The general format for the test files is as follows:
11
12
13 <A description of the test>
14
15 -----BEGIN PUBLIC KEY-----
16 <base64-encoded, DER-encoded, SPKI>
17 -----END PUBLIC KEY-----
18
19 -----BEGIN ALGORITHM-----
20 <base64-encoded, DER-encoded, AlgorithmIdentifier for the signature.>
21 -----END ALGORITHM-----
22
23 -----BEGIN DATA-----
24 <base64-encoded data that is being verified>
25 -----END DATA-----
26
27 -----BEGIN SIGNATURE-----
28 <base64-encoded, DER-encoded, BIT STRING of the signature>
29 -----END SIGNATURE-----
30
31
32 Comments for a PEM block should be placed immediately below that block.
33 The script will also insert a comment after the block describing its parsed
34 ASN.1 structure (your extra comments need to be above the script-generated
35 comments or they will be stripped).
OLDNEW
« no previous file with comments | « no previous file | net/data/verify_signed_data_unittest/annotate_test_data.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698