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

Unified 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, 5 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/verify_signed_data_unittest/README
diff --git a/net/data/verify_signed_data_unittest/README b/net/data/verify_signed_data_unittest/README
new file mode 100644
index 0000000000000000000000000000000000000000..2acf6e62a02f89d92796df3f61e6156eca353830
--- /dev/null
+++ b/net/data/verify_signed_data_unittest/README
@@ -0,0 +1,35 @@
+This directory contains test data for testing net::VerifySignedData().
+
+When adding or changing test data, run the script
+ $ python annotate_test_data.py
+
+This script will apply a uniform formatting. For instance it will add a
+comment showing what the parsed ASN.1 looks like, and reformat the base64 to
+have consistent line breaks.
+
+The general format for the test files is as follows:
+
+
+ <A description of the test>
+
+ -----BEGIN PUBLIC KEY-----
+ <base64-encoded, DER-encoded, SPKI>
+ -----END PUBLIC KEY-----
+
+ -----BEGIN ALGORITHM-----
+ <base64-encoded, DER-encoded, AlgorithmIdentifier for the signature.>
+ -----END ALGORITHM-----
+
+ -----BEGIN DATA-----
+ <base64-encoded data that is being verified>
+ -----END DATA-----
+
+ -----BEGIN SIGNATURE-----
+ <base64-encoded, DER-encoded, BIT STRING of the signature>
+ -----END SIGNATURE-----
+
+
+Comments for a PEM block should be placed immediately below that block.
+The script will also insert a comment after the block describing its parsed
+ASN.1 structure (your extra comments need to be above the script-generated
+comments or they will be stripped).
« 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