• Home
Name Date Size #Lines LOC

..--

READMED03-May-20241.1 KiB3624

annotate_test_data.pyD03-May-20244.3 KiB16599

ecdsa-prime256v1-sha512-spki-params-null.pemD03-May-20241.3 KiB3630

ecdsa-prime256v1-sha512-unused-bits-signature.pemD03-May-20241.6 KiB4436

ecdsa-prime256v1-sha512-using-ecdh-key.pemD03-May-20241.4 KiB3932

ecdsa-prime256v1-sha512-using-ecmqv-key.pemD03-May-20241.4 KiB3932

ecdsa-prime256v1-sha512-using-rsa-algorithm.pemD03-May-20241.4 KiB3931

ecdsa-prime256v1-sha512-wrong-signature-format.pemD03-May-20241.4 KiB3831

ecdsa-prime256v1-sha512.pemD03-May-20241.5 KiB4032

ecdsa-secp384r1-sha256-corrupted-data.pemD03-May-20241.9 KiB4437

ecdsa-secp384r1-sha256.pemD03-May-20242.6 KiB7556

ecdsa-using-rsa-key.pemD03-May-20241.9 KiB4236

rsa-pkcs1-sha1-bad-key-der-length.pemD03-May-20241.3 KiB3529

rsa-pkcs1-sha1-bad-key-der-null.pemD03-May-20241.7 KiB4336

rsa-pkcs1-sha1-key-params-absent.pemD03-May-20241.6 KiB4033

rsa-pkcs1-sha1-using-pss-key-no-params.pemD03-May-20241.7 KiB4235

rsa-pkcs1-sha1-wrong-algorithm.pemD03-May-20241.6 KiB3933

rsa-pkcs1-sha1.pemD03-May-20241.8 KiB4436

rsa-pkcs1-sha256-key-encoded-ber.pemD03-May-20242.2 KiB5344

rsa-pkcs1-sha256-spki-non-null-params.pemD03-May-20242 KiB5042

rsa-pkcs1-sha256-using-ecdsa-algorithm.pemD03-May-20242 KiB4638

rsa-pkcs1-sha256-using-id-ea-rsa.pemD03-May-20242 KiB4539

rsa-pkcs1-sha256.pemD03-May-20242.8 KiB7758

rsa-pss-sha256-using-pss-key-with-params.pemD03-May-20243.3 KiB7266

rsa-pss-sha256-wrong-salt.pemD03-May-20242.5 KiB6254

rsa-pss-sha256.pemD03-May-20244.2 KiB9383

rsa-using-ec-key.pemD03-May-20241.9 KiB4337

rsa2048-pkcs1-sha512.pemD03-May-20243.2 KiB8465

README

1This directory contains test data for testing net::VerifySignedData().
2
3When adding or changing test data, run the script
4  $ python annotate_test_data.py
5
6This script will apply a uniform formatting. For instance it will add a
7comment showing what the parsed ASN.1 looks like, and reformat the base64 to
8have consistent line breaks.
9
10The 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
32Comments for a PEM block should be placed immediately below that block.
33The script will also insert a comment after the block describing its parsed
34ASN.1 structure (your extra comments need to be above the script-generated
35comments or they will be stripped).
36