OLD | NEW |
(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). |
OLD | NEW |