diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-09-07 11:22:51 +0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-09-06 22:22:51 -0500 |
commit | b5b6bd13a22ee48eec55817867a2c8737addeee0 (patch) | |
tree | b35fea98a38ef18daa097d88a496c2f2502eea0f /docs/development/test-vectors.rst | |
parent | ca723c42d0e48c4a17aaed2505c2a5be80e1165f (diff) | |
download | cryptography-b5b6bd13a22ee48eec55817867a2c8737addeee0.tar.gz cryptography-b5b6bd13a22ee48eec55817867a2c8737addeee0.tar.bz2 cryptography-b5b6bd13a22ee48eec55817867a2c8737addeee0.zip |
fix coverage by adding two artificial DSA public keys (#4984)
* fix coverage by adding two artificial DSA public keys
One key removes the optional parameters from the structure to cover a
branch conditional, and the other key has its BITSTRING padding value
set to a non-zero value.
* lexicographic? never heard of it
Diffstat (limited to 'docs/development/test-vectors.rst')
-rw-r--r-- | docs/development/test-vectors.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst index f4387215..7584881a 100644 --- a/docs/development/test-vectors.rst +++ b/docs/development/test-vectors.rst @@ -86,6 +86,11 @@ Custom asymmetric vectors * ``asymmetric/PEM_Serialization/dsa_public_key.pem`` and ``asymmetric/DER_Serialization/dsa_public_key.der`` - Contains a DSA 2048 bit key generated using OpenSSL from ``dsa_private_key.pem``. +* ``asymmetric/DER_Serialization/dsa_public_key_no_params.der`` - Contains a + DSA public key with the optional parameters removed. +* ``asymmetric/DER_Serialization/dsa_public_key_invalid_bit_string.der`` - + Contains a DSA public key with the bit string padding value set to 2 rather + than the required 0. * ``asymmetric/PKCS8/unenc-dsa-pkcs8.pem`` and ``asymmetric/DER_Serialization/unenc-dsa-pkcs8.der`` - Contains a DSA 1024 bit key generated using OpenSSL. |