README 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. This directory contains test data for testing net::VerifySignedData().
  2. When adding or changing test data, run the script
  3. $ python annotate_test_data.py
  4. This script will apply a uniform formatting. For instance it will add a
  5. comment showing what the parsed ASN.1 looks like, and reformat the base64 to
  6. have consistent line breaks.
  7. The general format for the test files is as follows:
  8. <A description of the test>
  9. -----BEGIN PUBLIC KEY-----
  10. <base64-encoded, DER-encoded, SPKI>
  11. -----END PUBLIC KEY-----
  12. -----BEGIN ALGORITHM-----
  13. <base64-encoded, DER-encoded, AlgorithmIdentifier for the signature.>
  14. -----END ALGORITHM-----
  15. -----BEGIN DATA-----
  16. <base64-encoded data that is being verified>
  17. -----END DATA-----
  18. -----BEGIN SIGNATURE-----
  19. <base64-encoded, DER-encoded, BIT STRING of the signature>
  20. -----END SIGNATURE-----
  21. Comments for a PEM block should be placed immediately below that block.
  22. The script will also insert a comment after the block describing its parsed
  23. ASN.1 structure (your extra comments need to be above the script-generated
  24. comments or they will be stripped).